
24
undo peer
{
group-name |
ip-address
}
allow-as-loop
View
BGP-VPN instance view
Default level
2: System level
Parameters
group-name
: Specifies the name of the peer group, which is 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.
Examples
# 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 vpn-instance vpn1
[Sysname-bgp-vpn1] peer 1.1.1.1 allow-as-loop 2
peer group
Description
Use the
peer group
command to add a peer to a peer group.
Use the
undo peer group
command to remove a peer from a peer group.
Syntax
peer
ip-address
group
group-name
[
as-number
as-number
]
undo peer
ip-address
group
group-name
View
BGP-VPN instance view
Default level
2: System level
Parameters
ip-address
: Specifies the IP address of a peer.
group-name
: Specifies the name of a peer group, which is a string of 1 to 47 characters.
as-number
as-number
: Specifies an AS number, which ranges from 1 to 4,294,967,295.
Examples
# Add peer 1.1.1.1 into peer group test.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] group test external
[Sysname-bgp] peer 1.1.1.1 as-number 200