14-22
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.
Description
Use the
peer allow-as-loop
command to allow the local AS number to appear in the AS-PATH
attribute of a received route and to set the allowed maximum number of repetitions.
Use the
undo peer allow-as-loop
command to remove the configuration.
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
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
: IP address of a peer.
group-name
: Name of a peer group, a string of 1 to 47 characters.
as-number
as-number
: Specifies an AS number, which ranges from 1 to 4294967295.
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.
Examples
# Add the peer with the IP address 1.1.1.1 to the peer group named “test”.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-vpn1] peer 1.1.1.1 group test
refresh bgp vpn-instance
Syntax
refresh bgp vpn-instance
vpn-instance-name
{
ip-address
|
all
|
external
|
group
group-name
}
{
export
|
import
}