439
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] peer 1:2::3:4 as-number 100
[Sysname-bgp-af-ipv6] quit
[Sysname-bgp] ipv6-family multicast
[Sysname-bgp-af-ipv6-mul] peer 1:2::3:4 enable
[Sysname-bgp-af-ipv6-mul] peer 1:2::3:4 advertise-ext-community
peer allow-as-loop (IPv6 MBGP address family view)
Syntax
peer { ipv6-group-name | ipv6-address } allow-as-loop [ number ]
undo peer { ipv6-group-name | ipv6-address } allow-as-loop
View
IPv6 MBGP address family view
Default level
2: System level
Parameters
ipv6-group-name: Specifies an IPv6 MBGP peer group by its name, a string of 1 to 47 characters.
ipv6-address: Specifies an IPv6 MBGP peer by its IP address.
number: Specifies the number of times that the local AS number can appear in the AS PATH of routes
from the peer or the peer group, in the range of 1 to 10. The default number is 1.
Description
Use peer allow-as-loop to allow the local AS number to exist in the AS_PATH attribute of routes from a
peer or a peer group, and to configure the times that the local AS number can appear.
Use undo peer allow-as-loop to disable the function.
The local AS number cannot appear in routes from the peer or the peer group.
Examples
# Configure the number of times that the local AS number can appear in the AS path of routes from the
peer as 2.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] peer 1:2::3:4 as-number 100
[Sysname-bgp-af-ipv6] quit
[Sysname-bgp] ipv6-family multicast
[Sysname-bgp-af-ipv6-mul] peer 1:2::3:4 enable
[Sysname-bgp-af-ipv6-mul] peer 1:2::3:4 allow-as-loop 2