The ip vpn-instance command creates a VPN instance and displays the VPN instance view.
The undo ip vpn-instance command deletes the specified VPN instance.
| Parameter | Description | Value |
|---|---|---|
| vpn-instance-name | Specifies the name of a VPN instance. | The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
Usage Scenario
The ip vpn-instance command needs to be run to create a VPN instance on the PE at the edge of the backbone network in the BGP/MPLS IP VPN and BGP/MPLS IPv6 VPN networking.
Configuration Impact
After the ip vpn-instance command is run, a virtual routing table is created on the PE and consumes resources on the PE .
Precautions
If the undo ip vpn-instance command is run to delete a VPN instance, all configurations of the VPN instance on the PE will be cleared automatically.
By default, The device has a default VPN instance default and the management interface GE0/0/0 is bound to the VPN instance.
Follow-up Procedure
After creating a VPN instance, perform the following configurations in the VPN instance view:
# Create a VPN instance named vrf1 and enable the IPv4 address family and IPv6 address family.
<sysname> system-view
[sysname] ip vpn-instance vrf1
[sysname-vpn-instance-vrf1] ipv4-family
[sysname-vpn-instance-vrf1-af-ipv4] route-distinguisher 100:1
[sysname-vpn-instance-vrf1-af-ipv4] vpn-target 100:100
[sysname-vpn-instance-vrf1-af-ipv4] quit
[sysname-vpn-instance-vrf1] ipv6-family
[sysname-vpn-instance-vrf1-af-ipv6] route-distinguisher 100:2
[sysname-vpn-instance-vrf1-af-ipv6] vpn-target 100:200