R3303-HP HSR6800 Routers MPLS Configuration Guide

37
[RouterC-ospf-1] quit
# Execute the display ip routing-table command on each router. The output shows that each router
has learned the routes to other routers. Take Router A as an example:
[RouterA] display ip routing-table
Routing Tables: Public
Destinations : 11 Routes : 11
Destination/Mask Proto Pre Cost NextHop Interface
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.1/32 Direct 0 0 127.0.0.1 InLoop0
11.1.1.0/24 Direct 0 0 11.1.1.1 GE2/2/1
11.1.1.1/32 Direct 0 0 127.0.0.1 InLoop0
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.1/32 Direct 0 0 127.0.0.1 InLoop0
3. Enable MPLS and MPLS LDP:
# Configure MPLS and MPLS LDP on Router A.
[RouterA] mpls lsr-id 1.1.1.9
[RouterA] mpls
[RouterA-mpls] quit
[RouterA] mpls ldp
[RouterA-mpls-ldp] quit
[RouterA] interface serial 2/1/0
[RouterA-Serial2/1/0] mpls
[RouterA-Serial2/1/0] mpls ldp
[RouterA-Serial2/1/0] quit
# Configure MPLS and MPLS LDP on Router B.
[RouterB] mpls lsr-id 2.2.2.9
[RouterB] mpls
[RouterB-mpls] quit
[RouterB] mpls ldp
[RouterB-mpls-ldp] quit
[RouterB] interface serial 2/1/0
[RouterB-Serial2/1/0] mpls
[RouterB-Serial2/1/0] mpls ldp
[RouterB-Serial2/1/0] quit
[RouterB] interface serial 2/1/1
[RouterB-Serial2/1/1] mpls
[RouterB-Serial2/1/1] mpls ldp
[RouterB-Serial2/1/1] quit
# Configure MPLS and MPLS LDP on Router C.
[RouterC] mpls lsr-id 3.3.3.9