
21
import route-policy
Description
Use the
import route-policy
command to apply an import routing policy to a VPN instance.
Use the
undo import route-policy
command to remove the application.
By default, all routes permitted by the import target attribute are accepted.
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 IPv4 VPN view is applicable 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 policy specified in IPv4 VPN view is applied to the IPv4 VPN.
Syntax
import route-policy
route-policy
undo import route-policy
View
VPN instance view, IPv4 VPN view
Default level
2: System level
Parameters
route-policy
: Specifies the name of the import routing policy for the VPN instance, which is a string of 1 to
63 characters.
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
ip binding vpn-instance
Description
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.
By default, an interface is associated with no VPN instance. It belongs to the public network.
When configured on an interface, the
ip binding vpn-instance
command clears the IP address of the
interface. Therefore, you must reconfigure the IP address of the interface after configuring the command.
In an MPLS L3VPN application, you need to associate VPN instances with the interfaces connecting the
PEs.
In a tunneling application, you need to associate VPN instances with the tunnel interfaces connecting the
peer MCE devices or CE devices.