
10
[Sysname] ip vpn-instance vpn1
[Sysname-vpn-instance-vpn1] import route-policy poly-1
# 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.