Configuring an ldp instance, Configuring routing between pe and ce, Configuration prerequisites – H3C Technologies H3C S10500 Series Switches User Manual
Page 257: Configuring static routing between pe and ce

246
Configuring an LDP instance
LDP instances are for carrier’s carrier network applications.
This task is to configure the LDP capability for an existing VPN instance, create an LDP instance for the
VPN instance, and configure LDP parameters for the LDP instance.
Follow these steps to configure an LDP instance:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enable LDP for a VPN instance,
create an LDP instance, and enter
MPLS LDP VPN instance view
mpls ldp vpn-instance
vpn-instance-name
Required
Disabled by default
Configure LDP parameters except
LDP GR for the instance
For configuration information, see
the chapter “MPLS basics
configuration.”
Optional
NOTE:
•
Except the commands for LDP GR and LDP NSR, 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
“MPLS basics configuration.”
•
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
Follow these steps to configure static routing between PE and CE:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Configure static routes for a
specified 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.