218
Step Command
Remarks
4.
Set the maximum
number of active routes.
routing-table
limit
number
{
warn-threshold
|
simply-alert
}
By default, the maximum number
of active routes for a VPN
instance is 1000100.
Setting the maximum number of
active routes for a VPN instance
can prevent the PE from learning
too many routes.
5.
Apply an import routing
policy.
import route-policy
route-policy
By default, all routes matching the
import target attribute are
accepted.
The specified routing policy must
have been created.
For information about routing
policies, see
Layer 3—IP
Routing
Configuration Guide.
6.
Apply an export routing
policy.
export route-policy
route-policy
By default, routes to be advertised
are not filtered.
The specified routing policy must
have been created.
For information about routing
policies, see
Layer 3—IP
Routing
Configuration Guide.
7.
Apply a tunnel policy to
the VPN instance.
tnl-policy
tunnel-policy-name
By default, only one tunnel is
selected (no load balancing) in
this order: LSP tunnel, GRE
tunnel, and CR-LSP tunnel.
The specified tunnel policy must
have been created.
For information about tunnel
policies, see "Configuring tunnel
policies."
Configuring routing between a PE and a CE
You can configure static routing, RIP, OSPF, IS-IS, EBGP, or IBGP between a PE and a CE.
Configuring static routing between a PE and a CE
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Configure a static
route for a VPN
instance.
ip route-static
vpn-instance
s-vpn-instance-name
dest-address
{
mask-length
|
mask
} {
interface-type
interface-number
[
next-hop-address
]
|
next-hop-address
[
public
]
[
track
track-entry-number
] |
vpn-instance
d-vpn-instance-name
next-hop-address
[
track
track-entry-number
] } [
permanent
]
[
preference
preference
] [
tag
tag-value
]
[
description
text
]
By default, no static route is
configured for a VPN
instance.
Perform this configuration on
the PE. On the CE, configure
a common static route.
For more information about
static routing, see
Layer
3—IP Routing Configuration
Guide
.