
22
Syntax
ip binding vpn-instance
vpn-instance-name
undo ip binding vpn-instance
vpn-instance-name
View
VLAN interface view, Tunnel interface view, Layer 3 Ethernet interface
Default level
2: System level
Parameters
vpn-instance-name
: Specifies the name of the VPN instance to be associated, which is a case-insensitive
string of 1 to 31 characters.
Examples
# Associate VLAN-interface 1 with the VPN instance
vpn1
.
<Sysname> system-view
[Sysname] interface Vlan-interface1
[Sysname-Vlan-interface1] ip binding vpn-instance vpn1
# Associate Tunnel 0 with the VPN instance
vpn2.
<Sysname> system-view
[Sysname] interface Tunnel 0
[Sysname-Tunnel0] ip binding vpn-instance vpn2
# Associate the management Ethernet interface with the VPN instance
vpn3
.
<Sysname> system-view
[Sysname] interface M-GigabitEthernet 0/0/0
[Sysname-M-Ethernet0/0/0] ip binding vpn-instance vpn3
ip vpn-instance
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.
Related command:
route-distinguisher
.
Syntax
ip vpn-instance
vpn-instance-name
undo ip vpn-instance
vpn-instance-name
View
System view
Default level
2: System level