R3303-HP 6600/HSR6600 Routers MPLS Command Reference Guide

314
Examples
# Apply import routing policy poly-1 to VPN instance vpn1.
<Sysname> system-view
[Sysname] ip vpn-instance vpn1
[Sysname-vpn-instance-vpn1] import route-policy poly-1
[Sysname-vpn-instance-vpn1] quit
# 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
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 vpn-instance-name
Default
An interface is associated with no VPN instance; it belongs to the public network.
Views
Interface view
Default command level
2: System level
Parameters
vpn-instance-name: Specifies the name of the VPN instance to be associated, a case-sensitive string of 1
to 31 characters.
Usage guidelines
When configured on an interface, the ip binding vpn-instance command clears the IP address of the
interface. You must re-configure the IP address of the interface after configuring the command.
Examples
# Associate interface GigabitEthernet 2/1/1 with VPN instance vpn1.
<Sysname> system-view
[Sysname] interface gigabitethernet 2/1/1
[Sysname-GigabitEthernet2/1/1] ip binding vpn-instance vpn1
ip vpn-instance
Use ip vpn-instance to create a VPN instance and enter VPN instance view.
Use undo ip vpn-instance to delete a VPN instance.