R3102-R3103-HP 6600/HSR6600 Routers MPLS Command Reference Guide

309
Usage guidelines
You can specify an import routing policy when the route redistribution control provided by the extended
community attributes is not enough.
An import routing policy specified in VPN instance view applies to both the IPv4 VPN and IPv6 VPN.
An import routing policy specified in IPv4 VPN view applies to only the IPv4 VPN.
An import routing policy specified in IPv4 VPN view takes precedence over that specified in VPN
instance view. If you specify an import routing policy in both IPv4 VPN view and VPN instance view, the
IPv4 VPN uses the policy specified in IPv4 VPN view.
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: 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.