397
Step Command
Remarks
3.
Enter IPv4 VPN view.
ipv4-family
Optional.
4.
Associate the current VPN
instance with one or more
route targets.
vpn-target
vpn-target
&<1-8>
[
both
|
export-extcommunity
|
import-extcommunity
]
A single
vpn-target
command can
configure up to eight route targets.
You can configure up to 64 route
targets for a VPN instance.
5.
Configure the maximum
number of routes for the VPN
instance.
routing-table
limit
number
{
warn-threshold
|
simply-alert
}
Optional.
Not configured by default.
Setting the maximum number of
routes for a VPN instance to
support is for preventing too many
routes from being redistributed into
the PE.
6.
Apply an import routing
policy to the current VPN
instance.
import route-policy
route-policy
Optional.
By default, all routes permitted by
the import target attribute can be
redistributed into the VPN instance.
7.
Apply an export routing
policy to the current VPN
instance.
export route-policy
route-policy
Optional.
By default, all VPN instance routes
permitted by the export target
attribute can be redistributed.
NOTE:
•
Only when BGP runs between the MCE and PE can the route target attribute be advertised to the PE
together with the routing information. In other cases, configuring this attribute makes no sense.
•
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
MCE implements service isolation through route isolation. MCE routing configuration includes:
•
MCE-VPN site routing configuration
•
MCE-PE routing configuration
On the PE in an MCE network environment, disable routing loop detection to avoid route loss during
route calculation and disable route redistribution between routing protocols to save system resources.
Static routing, RIP, OSPF, IS-IS, EBGP, or IBGP can be used between an MCE and a VPN site or a PE.
Configuration prerequisites
Before you configure routing on an MCE, complete the following tasks:
•
On the MCE, configure VPN instances, and bind the VPN instances with the interfaces connected
to the VPN sites and those connected to the PE.
•
Configure the link layer and network layer protocols on related interfaces to ensure IP connectivity.