
6
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter VPN instance view.
ip vpn-instance
vpn-instance-name
N/A
3.
(Optional) Enter IPv4 VPN
view.
ipv4-family
N/A
4.
Configure route targets for the
VPN instance.
vpn-target
vpn-target
&<1-8>
[
both
|
export-extcommunity
|
import-extcommunity
]
By default, no route target is
configured for the VPN instance.
5.
(Optional.) Configure the
maximum number of routes for
the VPN instance.
routing-table
limit
number
{
warn-threshold
|
simply-alert
}
By default, the maximum route
number is not configured.
Setting the maximum number of
routes for a VPN instance is for
preventing too many routes from
being redistributed into the PE.
6.
(Optional.) Apply a routing
policy to filter incoming routes
for the VPN instance.
import route-policy
route-policy
By default, all routes matching the
import target attribute are
accepted.
Make sure the routing policy
already exists. Otherwise, the
device does not filter received
routes.
7.
(Optional.) Apply a routing
policy to filter outgoing routes
for the VPN instance.
export route-policy
route-policy
By default, no routing policy is
applied to filter the routes to be
advertised.
Make sure the routing policy
already exists. Otherwise, the
device does not filter routes to be
advertised.
NOTE:
•
Route related attributes configured in VPN instance view are applicable to both IPv4 VPNs and IPv6
VPNs.
•
You can configure route related attributes for IPv4 VPNs in both VPN instance view and IPv4 VPN view.
Those configured in IPv4 VPN view take precedence.
Configuring routing on an MCE device
MCE implements service isolation through route isolation. MCE routing configuration includes:
•
MCE-VPN site routing configuration
•
MCE-PE routing configuration
Configuration prerequisites
Before you configure routing on an MCE, complete the following tasks:
•
Configure VPN instances, and bind the VPN instances with the interfaces connected to the VPN
sites and the PE.