HP MSR2000/3000/4000 Router Series MPLS Configuration Guide
29
Configure LDP to establish LSPs between Router A and Router C, so subnets 11.1.1.0 / 24 a n d 21.1.1. 0 / 24
can reach each other over MPLS.
Configure LDP to establish LSPs for only destinations 1.1.1.9/32, 2.2.2.9/32, 3.3.3.9/32, 11.1.1. 0 / 24 ,
and 21.1.1.0/24 on Router A, Router B, and Router C.
Figure 16 Network diagram
Configuration considerations
• LDP assigns labels according to routing information. To establish LDP LSPs, you must configure a
routing protocol to make sure the LSRs can reach each other. This example uses OSPF.
• Enable LDP on each LSR.
• To control the number of LSPs, configure an LSP generation policy on each LSR.
Configuration procedure
1. Configure IP addresses and masks for interfaces, including the loopback interfaces, as shown
in Figure 16. (Details not
shown.)
2. Configure OSPF on each router to ensure IP connectivity between them:
# Configure Router A.
<RouterA> system-view
[RouterA] ospf
[RouterA-ospf-1] area 0
[RouterA-ospf-1-area-0.0.0.0] network 1.1.1.9 0.0.0.0
[RouterA-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255
[RouterA-ospf-1-area-0.0.0.0] network 11.1.1.0 0.0.0.255
[RouterA-ospf-1-area-0.0.0.0] quit
[RouterA-ospf-1] quit
# Configure Router B.
<RouterB> system-view
[RouterB] ospf
[RouterB-ospf-1] area 0
[RouterB-ospf-1-area-0.0.0.0] network 2.2.2.9 0.0.0.0
[RouterB-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255
[RouterB-ospf-1-area-0.0.0.0] network 20.1.1.0 0.0.0.255
[RouterB-ospf-1-area-0.0.0.0] quit
[RouterB-ospf-1] quit
# Configure Router C.
<RouterC> system-view