11-32
number
: Specifies the number of times for which the local AS number can appear in routes from the
peer/peer group, in the range 1 to 10. The default number is 1.
Description
Use the
peer allow-as-loop
command to configure IPv6 BGP to allow the local AS number to exist in
the AS_PATH attribute of routes from a peer/peer group, and to configure the times for which it can
appear.
Use the
undo peer allow-as-loop
command to disable the function.
The local AS number is not allowed to exist in the AS PATH attribute of routes by default.
Examples
# Configure the number of times for which the local AS number can appear in the AS PATH of routes
from peer 1::1 as 2.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] peer 1::1 allow-as-loop 2
peer as-number (IPv6 address family view)
Syntax
peer
{
ipv6-group-name
|
ipv6-address
}
as-number
as-number
undo peer
ipv6-group-name as-number
undo peer
ipv6-address
View
IPv6 address family view
Default Level
2: System level
Parameters
ipv6-group-name
: Name of a peer group, a string of 1 to 47 characters.
ipv6-address
: IPv6 address of a peer.
as-number
: AS number of the peer/peer group, in the range 1 to 4294967295.
Description
Use the
peer as-number
command to configure an IPv6 peer/peer group.
Use the
undo peer ipv6-group-name as-number
command to delete an IPv6 peer group.
Use the
undo peer
ipv6-address
command to delete a peer.
Examples
# Configure peer group
test
in AS 200.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] group test external
[Sysname-bgp-af-ipv6] peer test as-number 200