218
To do…
Use the command…
Remarks
Configure LDP parameters except
LDP GR for the instance
For configuration information, see
the chapter “Configuring basic
MPLS.”
Optional
NOTE:
•
Except the command for LDP GR, all commands available in MPLS LDP view can be configured in MPLS
LDP VPN instance view. For more information about MPLS LDP, see the chapter “Configuring basic
MPLS.”
•
Configurations in MPLS LDP VPN instance view affect only the LDP-enabled interface bound to the VPN
instance, while configurations in MPLS LDP view do not affect interfaces bound to VPN instances. When
configuring the transport address of an LDP instance, you need to use the IP address of the interface
bound to the VPN instance.
•
By default, LDP adjacencies on a private network are established by using addresses of the LDP-enabled
interfaces, while those on the public network are established by using the LDP LSR ID.
Configuring routing between PE and CE
You can configure static routing, RIP, OSPF, IS-IS, eBGP, or iBGP between PE and CE.
Configuration prerequisites
Before you configure routing between PE and CE, complete the following tasks:
•
Assign an IP address to the CE-PE interface of the CE.
•
Assign an IP address to the PE-CE interface of the PE.
Configuring static routing between PE and CE
To configure static routing between PE and CE:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Configure static routes for a
specific VPN instance
ip
route-static
dest-address
{
mask
|
mask-length
} {
gateway-address
|
interface-type
interface-number
[
gateway-address
] |
vpn-instance
d-vpn-instance-name
gateway-address
} [
preference
preference-value
] [
tag
tag-value
]
[
description
description-text
]
Required
Perform this configuration on PEs.
On CEs, configure normal static
routes.
ip route-static
vpn-instance
s-vpn-instance-name
&<1-5>
dest-address
{
mask
|
mask-length
}
{
gateway-address
[
public
] |
interface-type
interface-number
[
gateway-address
] |
vpn-instance
d-vpn-instance-name
gateway-address
} [
preference
preference-value
] [
tag
tag-value
]
[
description
description-text
]