
8
Examples
# Configure the OSPF domain ID as 234 for VPN instance
vpn1
.
<Sysname> system-view
[Sysname] ospf 100 vpn-instance vpn1
[Sysname-ospf-100] domain-id 234
ip binding vpn-instance
Use the
ip binding vpn-instance
command to associate an interface with a VPN instance.
Use the
undo ip binding vpn-instance
command to remove the association.
Syntax
ip binding vpn-instance
vpn-instance-name
undo ip binding vpn-instance
Default
No VPN instance is associated with an interface.
Views
Interface view
Predefined user roles
network-admin
Parameters
vpn-instance-name
: Specifies the name of a VPN instance, a string of 1 to 31 case-sensitive characters.
Usage guidelines
Perform this configuration on interfaces connected to a VPN site or a PE.
Associating a VPN instance with on an interface or removing the association clears the settings on the
interface. You have to reconfigure the settings for the interface. To view the settings on an interface, use
the
display this
command.
The associated VPN instance must have been created by using the
ip vpn-instance
command in system
view.
To modify the VPN instance associated with an interface, you must use the
undo ip binding vpn-instance
command to remove the association, and then use the
ip binding vpn-instance
command to associate the
new VPN instance.
Examples
# Associate VLAN-interface 2 with the VPN instance
vpn1
.
<Sysname> system-view
[Sysname] interface vlan-interface 2
[Sysname-Vlan-interface2] ip binding vpn-instance vpn1
Related commands
ip vpn-instance
(system view)