
35
[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
[RouterC] mpls
[RouterC-mpls] quit
[RouterC] mpls ldp
[RouterC-mpls-ldp] quit
[RouterC] interface serial 2/1/0
[RouterC-Serial2/1/0] mpls
[RouterC-Serial2/1/0] mpls ldp
[RouterC-Serial2/1/0] quit
After the configuration is complete, two local LDP sessions are established, one between
Router A and Router B and the other between Router B and Router C.
# Execute the
display mpls ldp session
command on each router to view the LDP session
information, and execute the
display mpls ldp peer
command to view the LDP peer
information. Take Router A as an example:
[RouterA] display mpls ldp session
LDP Session(s) in Public Network
Total number of sessions: 1
----------------------------------------------------------------
Peer-ID Status SsnRole FT MD5 KA-Sent/Rcv
----------------------------------------------------------------
2.2.2.9:0 Operational Passive Off Off 5/5
----------------------------------------------------------------
FT : Fault Tolerance
[RouterA] display mpls ldp peer
LDP Peer Information in Public network
Total number of peers: 1
-----------------------------------------------------------------
Peer-ID Transport-Address Discovery-Source
----------------------------------------------------------------
2.2.2.9:0 2.2.2.9 Serial2/1/0
----------------------------------------------------------------
4.
Allow all static routes and IGP routes to trigger establishment of LSPs: