Step
1.
Enter system view.
2.
Enter VPN instance view.
3.
(Optional) Enter IPv4 VPN
view.
4.
Configure route targets for the
VPN instance.
5.
(Optional.) Configure the
maximum number of routes for
the VPN instance.
6.
(Optional.) Apply a routing
policy to filter incoming routes
for the VPN instance.
7.
(Optional.) Apply a routing
policy to filter outgoing routes
for the VPN instance.
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.
Command
system-view
ip vpn-instance vpn-instance-name
ipv4-family
vpn-target vpn-target&<1-8>
[ both | export-extcommunity |
import-extcommunity ]
routing-table limit number
{ warn-threshold | simply-alert }
import route-policy route-policy
export route-policy route-policy
6
Remarks
N/A
N/A
N/A
By default, no route target is
configured for the VPN instance.
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.
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.
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.