342
•
The VPN instance determines which routes it can accept and redistribute according to the
import-extcommunity
in the VPN target.
•
The VPN instance determines how to change the VPN targets attributes for routes to be advertised
according to the
export-extcommunity
in the VPN target.
When you configure route related attributes for a VPN instance, follow these guidelines:
•
Route related attributes configured in VPN instance view are applicable to both IPv4 VPNs and IPv6
VPNs.
•
You can configure route related attributes for IPv6 VPNs in both VPN instance view and IPv6 VPN
view. Those configured in IPv6 VPN view take precedence.
•
A single
vpn-target
command can configure up to eight VPN targets. You can configure up to 64
VPN targets for a VPN instance.
•
You can define the maximum number of routes for a VPN instance to support, preventing too many
routes from being redistributed into the PE.
•
Create a routing policy before associating it with a VPN instance. Otherwise, the switch cannot
filter the routes to be received and advertised.
To configure route related attributes for a VPN instance:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enter VPN instance view
ip vpn-instance
vpn-instance-name
—
Enter IPv6 VPN view
ipv6-family
Optional
Configure VPN targets
vpn-target
vpn-target
&<1-8>
[
both
|
export-extcommunity
|
import-extcommunity
]
Required
Set the maximum number of routes
supported
routing-table
limit
number
{
warn-threshold
|
simply-alert
}
Optional
Apply an import routing policy
import route-policy
route-policy
Optional
By default, all routes matching the
import target attribute are
accepted.
Apply an export routing policy
export route-policy
route-policy
Optional
By default, routes to be advertised
are not filtered.
Configuring a tunneling policy for a VPN instance
When multiple tunnels exist in an MPLS L3VPN network, you can configure a tunneling policy to specify
the type and number of tunnels to be used by using the
tunnel select-seq
command or the
preferred-path
command.
With the
tunnel select-seq
command, you can specify the tunnel selection preference order and the
number of tunnels for load balancing.
With the
preferred-path
command, you can configure preferred tunnels that each correspond to a tunnel
interface.
After a tunneling policy is applied on a PE, the PE selects tunnels in this order: