14-20
Use the
undo ip binding vpn-instance
command to remove the association.
By default, an interface is associated with no VPN instance; it belongs to the public network.
When configured on an interface, the
ip binding vpn-instance
command clears the IP address of the
interface. Therefore, you must re-configure the IP address of the interface after configuring the
command.
z
In an MPLS L3VPN application, you need to associate VPN instances with the interfaces
connecting the PEs.
z
In a tunneling application, you need to associate VPN instances with the tunnel interfaces
connecting the peer MCE devices or CE devices.
Examples
# Associate Vlan-interface 1 with the VPN instance named “vpn1”.
<Sysname> system-view
[Sysname] interface Vlan-interface1
[Sysname-Vlan-interface1] ip binding vpn-instance vpn1
# Associate Tunnel 0 with the VPN instance named “vpn2”.
<Sysname> system-view
[Sysname] interface Tunnel 0
[Sysname-Tunnel0] ip binding vpn-instance vpn2
# Associate Management Ethernet interface with the VPN instance named “vpn3”.
<Sysname> system-view
[Sysname] interface M-GigabitEthernet 0/0/0
[Sysname-M-GigabitEthernet0/0/0] ip binding vpn-instance vpn3
ip vpn-instance
Syntax
ip vpn-instance vpn-instance-name
undo ip vpn-instance vpn-instance-name
View
System view
Default Level
2: System level
Parameters
vpn-instance-name
: Name of the VPN instance, a case-insensitive string of 1 to 31 characters.
Description
Use the
ip vpn-instance
command to create a VPN instance and enter VPN instance view.
Use the
undo ip vpn-instance
command to delete a VPN instance.
A VPN instance takes effect only after you configure an RD for it.