3Com MSR 50 Network Router User Manual


  Open as PDF
of 2742
 
986 CHAPTER 72: BGP CONFIGURATION COMMANDS
# In BGP-VPN instance view, configure the repeating times of the local AS number
as 2 for routes from peer 1.1.1.1 (the VPN has been created).
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-vpn1] peer 1.1.1.1 allow-as-loop 2
peer as-number (BGP/BGP-VPN instance view)
Syntax peer { group-name | ip-address } as-number as-number
undo peer group-name as-number
undo peer ip-address
View BGP view/BGP-VPN instance view
Parameters group-name: Name of a peer group, a string of 1 to 47 characters.
ip-address: IP address of a peer.
as-number: AS number of the peer or peer group, in the range 1 to 65535.
Description Use the
peer as-number command to specify the AS number for a peer/peer
group.
Use the
undo peer as-number command to delete the AS number of a peer
group.
Use the
undo peer command to delete a peer.
By default, no AS number is configured for a peer/peer group.
Examples # In BGP view, specify the AS number of the peer group test as 100.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] peer test as-number 100
# In BGP-VPN instance view, specify the AS number of the peer group test as 100
(the VPN has been created).
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-vpn1] peer test as-number 100
peer as-path-acl (BGP/BGP-VPN instance view)
Syntax peer { group-name | ip-address } as-path-acl as-path-acl-number { export | import }