3Com MSR 50 Network Router User Manual


  Open as PDF
of 2742
 
1698 CHAPTER 98: MPLS L3VPN CONFIGURATION COMMANDS
<Sysname> system-view
[Sysname] bgp 100
[Sysname] ipv4-family vpnv4
[Sysname-bgp-af-vpnv4] peer 3.3.3.3 advertise-community
peer allow-as-loop
Syntax peer { group-name | ip-address } allow-as-loop [ number ]
undo peer { group-name | ip-address } allow-as-loop
View BGP-VPNv4 subaddress family view/BGP-L2VPN address family view
Parameter group-name: Name of the peer group, a string of 1 to 47 characters.
ip-address: IP address of the peer.
number: Maximum number that the local AS number can appear repeatedly in the
AS-PATH attribute. It ranges from 1 to 10 and defaults to 1.
Description Use the
peer allow-as-loop command to allow the local AS number to appear
in the AS-PATH attribute of a received route and to set the allowed maximum
number of repetitions.
Use the
undo peer allow-as-loop command to remove the configuration.
Example # In BGP-VPNv4 subaddress family view, allow the local AS number to appear
repeatedly in the AS-PATH attribute of a route received from peer 1.1.1.1 for up to
twice.
<Sysname> system-view
[Sysname] bgp 100
[Sysname] ipv4-family vpnv4
[Sysname-bgp-af-vpnv4] peer 1.1.1.1 allow-as-loop 2
# In BGP-L2VPN address family view, allow the local AS number to appear
repeatedly in the AS-PATH attribute of a route received from peer 1.1.1.1 for up to
twice.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] l2vpn-family
[Sysname-bgp-af-l2vpn] peer 1.1.1.1 allow-as-loop 2
peer as-path-acl (BGP-VPNv4 subaddress family view)
Syntax peer { group-name | ip-address } as-path-acl aspath-filter-number { import | export }
undo peer { group-name | ip-address } as-path-acl aspath-filter-number { import |
export }