R0106-HP MSR Router Series MPLS Configuration Guide(V7)

39
[RouterC-ospf-1-area-0.0.0.0] quit
[RouterC-ospf-1] quit
# Verify that the routers have learned the routes to each other. For example, on Router A:
[RouterA] display ip routing-table
Destinations : 21 Routes : 21
Destination/Mask Proto Pre Cost NextHop Interface
0.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0
1.1.1.9/32 Direct 0 0 127.0.0.1 InLoop0
2.2.2.9/32 OSPF 10 1 10.1.1.2 S2/1/0
3.3.3.9/32 OSPF 10 2 10.1.1.2 S2/1/0
10.1.1.0/24 Direct 0 0 10.1.1.1 S2/1/0
10.1.1.0/32 Direct 0 0 10.1.1.1 S2/1/0
10.1.1.1/32 Direct 0 0 127.0.0.1 InLoop0
10.1.1.255/32 Direct 0 0 10.1.1.1 S2/1/0
11.1.1.0/24 Direct 0 0 11.1.1.1 GE2/1/1
11.1.1.0/32 Direct 0 0 11.1.1.1 GE2/1/1
11.1.1.1/32 Direct 0 0 127.0.0.1 InLoop0
11.1.1.255/32 Direct 0 0 11.1.1.1 GE2/1/1
20.1.1.0/24 OSPF 10 2 10.1.1.2 S2/1/0
21.1.1.0/24 OSPF 10 3 10.1.1.2 S2/1/0
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0
127.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
127.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0
224.0.0.0/4 Direct 0 0 0.0.0.0 NULL0
224.0.0.0/24 Direct 0 0 0.0.0.0 NULL0
255.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0
3. Enable MPLS and LDP:
# Configure Router A.
[RouterA] mpls lsr-id 1.1.1.9
[RouterA] mpls ldp
[RouterA-ldp] quit
[RouterA] interface serial 2/1/0
[RouterA-Serial2/1/0] mpls enable
[RouterA-Serial2/1/0] mpls ldp enable
[RouterA-Serial2/1/0] quit
# Configure Router B.
[RouterB] mpls lsr-id 2.2.2.9
[RouterB] mpls ldp
[RouterB-ldp] quit
[RouterB] interface serial 2/1/0
[RouterB-Serial2/1/0] mpls enable
[RouterB-Serial2/1/0] mpls ldp enable
[RouterB-Serial2/1/0] quit
[RouterB] interface serial 2/1/1
[RouterB-Serial2/1/1] mpls enable