382
Parameters
vpn-instance-name: Name of the VPN instance to be associated, a case-sensitive string of 1 to 31
characters.
Description
Use ip binding vpn-instance to associate an interface with a VPN instance.
Use undo ip binding vpn-instance 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 reconfigure the IP address of the interface after configuring the command.
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
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 ip vpn-instance to create a VPN instance and enter VPN instance view.
Use undo ip vpn-instance to delete a VPN instance.
A VPN instance takes effect only after you configure an RD for it.
Related command: route-distinguisher.
Examples
# Create a VPN instance named vpn1.
<Sysname> system-view
[Sysname] ip vpn-instance vpn1
[Sysname-vpn-instance-vpn1]
ipv4-family vpn-instance
Syntax
ipv4-family vpn-instance vpn-instance-name