NOTE
It is recommended to perform either Step 4 or Step 5.
Procedure
Step 1
Run:
system-view
The system view is displayed.
Step 2
Run:
ip vpn-instance
vpn-instance-name
The VPN instance view is displayed.
Step 3
Run:
vpn-target
vpn-target
&<1-8> [
both
|
export-extcommunity
|
import-extcommunity
]
The VPN target extended community attribute for the VPN instance is created.
VPN target is the extended community attribute of the Border Gateway Protocol (BGP). It
controls the import and export of VPN routes. You can configure a maximum of 8 VPN targets
with a command.
Step 4
(Optional) Run:
routing-table limit
number
{
alert-percent
|
simply-alert
}
The maximum number of routes of the VPN instance is configured.
You can define the maximum number of routes for a VPN instance to prevent the PE from
importing too many routes from the CE.
NOTE
If the
routing-table limit
command is run, the system gives a prompt when the number of routes injected
into the routing table of the VPN instance exceeds the maximum. If the
routing-table limit
command is
run to increase the maximum number of routes supported in a VPN instance or the
undo routing-table
limit
command is run to remove the limit on the routing table, for excess routes, the following operations
are required:
l
For the excessive static routes, you need to reconfigure them manually.
l
For the excessive routes learnt from CEs through the IGP multi-instance routing protocol, you need to
re-initiate the multi-instance process of the routing protocol on the PE.
For the remote cross routes learnt through the MP-IBGP and the BGP routes learnt from CEs, the system
automatically refreshes them.
Step 5
(Optional) Run:
prefix limit
number
{
alert-percent
[
route-unchanged
] |
simply-alert
}
The maximum number of prefixes of the VPN instance is configured.
You can define the maximum number of prefixes for a VPN instance to avoid importing too
many prefixes from the CE.
Step 6
(Optional) Run:
limit-log-interval
interval
The frequency of displaying logs when the number of routes exceeds the threshold is configured.
Step 7
(Optional) Run:
import route-policy
policy-name
Quidway S7700 Smart Routing Switch
Configuration Guide - VPN
3 BGP MPLS IP VPN Configuration
Issue 01 (2011-07-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
102