
327
peer-address
: Specifies the IP address of the peer.
vpn-instance-name
: Specifies the name of the VPN instance, which is a case-sensitive string of 1 to 31
characters.
Examples
# Activate a nested VPN peer group named
ebgp
.
<Sysname> system-view
[Sysname] bgp 10
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-vpn1] group ebgp external
[Sysname-bgp-vpn1] quit
[Sysname-bgp] ipv4-family vpnv4
[Sysname-bgp-af-vpnv4] peer ebgp vpn-instance vpn1 enable
peer vpn-instance group
Description
Use the
peer
vpn-instance
group
command to add a peer to a nested VPN peer group.
Use the
undo peer
vpn-instance
group
command to remove a peer from a nested VPN peer group.
By default, a peer is not in any nested peer group.
This configuration takes effect only after the nested VPN function is enabled.
Deleting the VPN instance to which a peer belongs will also delete the configuration of this command.
Syntax
peer
peer-address
vpn-instance
vpn-instance-name
group
group-name
undo peer
peer-address
vpn-instance
vpn-instance-name
group
group-name
View
BGP-VPNv4 subaddress family view
Default level
2: System level
Parameters
peer-address
: Specifies the IP address of the peer.
vpn-instance-name
: Specifies the name of the VPN instance, which is a case-sensitive string of 1 to 31
characters.
group-name
: Specifies the name of the peer group, which is a case-sensitive string of 1 to 47 characters..
Examples
# Add peer 1.1.1.1 to the nested VPN peer group named
ebgp
.
<Sysname> system-view
[Sysname] bgp 10
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-vpn1] group ebgp external
[Sysname-bgp-vpn1] peer 1.1.1.1 as-number 600
[Sysname-bgp-vpn1] peer 1.1.1.1 group ebgp