HP 6125XLG R2306-HP 6125XLG Blade Switch MCE Command Reference - Page 13

ip binding vpn-instance, Related commands, Syntax, Default, Views, Predefined user roles, Parameters - command reference

Page 13 highlights

# Apply import routing policy poly-2 to the IPv4 VPN of VPN instance vpn2. system-view [Sysname] ip vpn-instance vpn2 [Sysname-vpn-instance-vpn2] ipv4-family [Sysname-vpn-ipv4-vpn2] import route-policy poly-2 # Apply import routing policy poly-3 to the IPv6 VPN of VPN instance vpn3. system-view [Sysname] ip vpn-instance vpn3 [Sysname-vpn-instance-vpn3] ipv6-family [Sysname-vpn-ipv6-vpn3] import route-policy poly-3 Related commands • export route-policy • route-policy (Layer 3-IP Routing Command Reference) ip binding vpn-instance Use ip binding vpn-instance to associate an interface with a VPN instance. Use undo ip binding vpn-instance 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 This command or its undo form clears the IP address and routing protocol configuration on the interface. After executing this command or its undo form, use the display this command to view the current configuration, and reconfigure the IP address and routing protocol on the interface. 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, you must remove the previous association by using the undo ip binding vpn-instance command, and then use the ip binding vpn-instance command to associate the new VPN instance with the interface. Examples # Associate VLAN-interface 2 with the VPN instance vpn1. system-view 10

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29

10
# Apply import routing policy
poly-2
to the IPv4 VPN of VPN instance
vpn2
.
<Sysname> system-view
[Sysname] ip vpn-instance vpn2
[Sysname-vpn-instance-vpn2] ipv4-family
[Sysname-vpn-ipv4-vpn2] import route-policy poly-2
# Apply import routing policy
poly-3
to the IPv6 VPN of VPN instance
vpn3
.
<Sysname> system-view
[Sysname] ip vpn-instance vpn3
[Sysname-vpn-instance-vpn3] ipv6-family
[Sysname-vpn-ipv6-vpn3] import route-policy poly-3
Related commands
export route-policy
route-policy
(
Layer 3—IP Routing Command Reference
)
ip binding vpn-instance
Use
ip binding vpn-instance
to associate an interface with a VPN instance.
Use
undo ip binding vpn-instance
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
This command or its undo form clears the IP address and routing protocol configuration on the interface.
After executing this command or its undo form, use the
display this
command to view the current
configuration, and reconfigure the IP address and routing protocol on the interface.
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, you must remove the previous association by using
the
undo ip binding vpn-instance
command, and then use the
ip binding vpn-instance
command to
associate the new VPN instance with the interface.
Examples
# Associate VLAN-interface 2 with the VPN instance
vpn1
.
<Sysname> system-view