01-VPN instance commands
Chapters Download (35.11 KB)
Use description to configure a description for a VPN instance.
Use undo description to restore the default.
Syntax
description text
undo description
Default
No description is configured for a VPN instance.
Views
VPN instance view
Predefined user roles
network-admin
context-admin
Parameters
text: Configures the description for the VPN instance, a case-sensitive string of 1 to 79 characters.
Usage guidelines
If you execute this command multiple times, the most recent configuration takes effect.
Examples
# Set the description for VPN instance vpn1 to This is vpn1.
<Sysname> system-view
[Sysname] ip vpn-instance vpn1
[Sysname-vpn-instance-vpn1] description This is vpn1
Use display ip vpn-instance to display VPN instance information.
Syntax
display ip vpn-instance [ instance-name vpn-instance-name ]
Views
Any view
Predefined user roles
network-admin
network-operator
context-admin
context-operator
Parameters
instance-name vpn-instance-name: Specifies a VPN instance by its name, a case-sensitive string of 1 to 31 characters. If you do not specify a VPN instance, this command displays brief information about all VPN instances.
Examples
# Display brief information about all VPN instances.
<Sysname> display ip vpn-instance
Total VPN-Instances configured : 1
VPN-Instance Name RD Create time
management 1000000000:1 2016/10/31
Table 1 Command output
Field |
Description |
VPN-Instance Name |
Name of the VPN instance. |
RD |
Route distinguisher of the VPN instance. |
Create time |
Time when the VPN instance was created. |
Use ip binding vpn-instance to associate an interface with a VPN instance.
Use undo ip binding vpn-instance to restore the default.
Syntax
ip binding vpn-instance vpn-instance-name
undo ip binding vpn-instance
Default
An interface is not associated with a VPN instance and belongs to the public network.
Views
Interface view
Predefined user roles
network-admin
context-admin
Parameters
vpn-instance-name: Specifies a VPN instance by its name, a case-sensitive string of 1 to 31 characters.
Usage guidelines
This command or its undo form clears the IP address and routing protocol configuration on the interface. You must reconfigure the IP address and routing protocol for the interface after executing this command. To view the configuration of an interface, execute the display this command in interface view.
The specified VPN instance must have been created by using the ip vpn-instance command in system view.
To associate a new VPN instance with an interface, first execute the undo ip binding vpn-instance command to remove the existing association.
Examples
# Associate interface GigabitEthernet 1/0/1 with VPN instance vpn1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] ip binding vpn-instance vpn1
Related commands
ip vpn-instance (system view)
Use ip vpn-instance to create a VPN instance and enter its view, or enter the view of an existing VPN instance.
Use undo ip vpn-instance to delete a VPN instance.
Syntax
ip vpn-instance vpn-instance-name
undo ip vpn-instance vpn-instance-name
Default
No VPN instances exist.
Views
System view
Predefined user roles
network-admin
context-admin
Parameters
vpn-instance-name: Specifies a name for the VPN instance, a case-sensitive string of 1 to 31 characters.
Examples
# Create VPN instance vpn1 and enter its view.
<Sysname> system-view
[Sysname] ip vpn-instance vpn1