388
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
peer as-path-acl (IPv6 MBGP address family view)
Syntax
peer
{
ipv6-address
|
ipv6-group-name
}
as-path-acl
as-path-acl-number
{
export
|
import
}
undo peer
{
ipv6-address
|
ipv6-group-name
}
as-path-acl
as-path-acl-number
{
export
|
import
}
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.
as-path-acl-number
: Specifies an AS path list number, in the range of 1 to 256.
import
: Filters incoming IPv6 MBGP routes.
export
: Filters outgoing IPv6 MBGP routes.
Description
Use
peer as-path-acl
to specify an AS path list to filter routes incoming from or outgoing to an IPv6
MBGP peer or a peer group.
Use
undo peer as-path-acl
to remove the configuration.
By default, no AS path list is specified for filtering the routes from/to an IPv6 MBGP peer or a peer group.
Examples
# Specify AS path list 3 to filter routes outgoing to the IPv6 MBGP peer 1:2::3:4.