201
Default level
2: System level
Parameters
group-name
: Specifies an IPv4 MBGP peer group by its name, a string of 1 to 47 characters.
ip-address
: Specifies the IP address of an IPv4 MBGP peer.
number
: Specifies the number of times the local AS number can appear in 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 number of times that the local AS number can appear.
Use
undo peer allow-as-loop
to remove the configuration.
By default, the local AS number is not allowed.
Related commands:
display bgp multicast routing-table peer
.
Examples
# In IPv4 MBGP address family view, configure the number of times that the local AS number can appear
in routes from the peer 1.1.1.1 as 2.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] peer 1.1.1.1 as-number 200
[Sysname-bgp] ipv4-family multicast
[Sysname-bgp-af-mul] peer 1.1.1.1 enable
[Sysname-bgp-af-mul] peer 1.1.1.1 allow-as-loop 2
peer as-path-acl (MBGP address family view)
Syntax
peer
{
group-name
|
ip-address
}
as-path-acl
as-path-acl-number
{
export
|
import
}
undo peer
{
group-name
|
ip-address
}
as-path-acl
as-path-acl-number
{
export
|
import
}
View
IPv4 MBGP address family view
Default level
2: System level
Parameters
group-name
: Specifies an IPv4 MBGP peer group by its name, a string of 1 to 47 characters.
ip-address
: Specifies the IP address of an IPv4 MBGP peer.
as-path-acl-number
: Specifies an AS path list by its number, in the range of 1 to 256.
export
: Filters outgoing routes.
import
: Filters incoming routes.