310
Examples
# Create a VPN instance named vpn1.
<Sysname> system-view
[Sysname] ip vpn-instance vpn1
[Sysname-vpn-instance-vpn1]
ipv4-family
Description
Use the ipv4-family command to enter BGP-VPNv4 subaddress family view or BGP VPN instance view.
Use the undo ipv4-family command to remove all configurations performed in either of the two views.
Before entering BGP VPN instance view, you must create the VPN instance.
Syntax
ipv4-family { vpnv4 | vpn-instance vpn-instance-name }
undo ipv4-family { vpnv4 | vpn-instance vpn-instance-name }
View
BGP view
Default level
2: System level
Parameters
vpnv4: Enters BGP-VPNv4 subaddress family view.
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-VPNv4 subaddress family view.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpnv4
[Sysname-bgp-af-vpnv4]
# Associate the VPN instance vpn1 with an IPv4 address family and enter BGP VPN instance view.
<Sysname> system-view
[Sysname] ip vpn-instance vpn1
[Sysname-vpn-instance-vpn1] quit
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-vpn1]