
23
Parameters
vpn-instance-name
: Specifies the name of the VPN instance, which is a case-insensitive string of 1 to 31
characters.
Examples
# Create a VPN instance named
vpn1
.
<Sysname> system-view
[Sysname] ip vpn-instance vpn1
[Sysname-vpn-instance-vpn1]
ipv4-family vpn-instance
Description
Use the
ipv4-family vpn-instance
command to enter BGP-VPN instance view.
Use the
undo ipv4-family
command to remove all the configurations performed in either of the two views.
Before entering BGP VPN instance view, make sure the corresponding VPN instance is created.
Syntax
ipv4-family
vpn-instance
vpn-instance-name
undo ipv4-family vpn-instance
vpn-instance-name
View
BGP view
Default level
2: System level
Parameters
vpn-instance
vpn-instance-name
: Associates a VPN instance with an IPv4 address family and enters BGP
VPN instance view. The
vpn-instance-name
parameter represents the VPN instance name, which is a
case-sensitive string of 1 to 31 characters.
Examples
# Enter BGP-VPN instance view.
<Sysname> system-view
[Sysname] bgp 100
[Sysname] ipv4-family vpn-instance vpn1
[Sysname-bgp-vpn1]
peer allow-as-loop
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.
Syntax
peer
{
group-name
|
ip-address
}
allow-as-loop
[
number
]