H3C Technologies H3C SR8800 User Manual

Page 47

Advertising
background image

36

10.1.1.0/24 Direct 0 0 10.1.1.1 Pos2/1/1

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 GE3/1/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 Pos2/1/1

21.1.1.0/24 OSPF 10 3 10.1.1.2 Pos2/1/1

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 Pos 2/1/1

[RouterA-Pos2/1/1] mpls

[RouterA-Pos2/1/1] mpls ldp

[RouterA-Pos2/1/1] 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 Pos 2/1/1

[RouterB-Pos2/1/1] mpls

[RouterB-Pos2/1/1] mpls ldp

[RouterB-Pos2/1/1] quit

[RouterB] interface Pos 2/1/2

[RouterB-Pos2/1/2] mpls

[RouterB-Pos2/1/2] mpls ldp

[RouterB-Pos2/1/2] 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 Pos 2/1/1

[RouterC-Pos2/1/1] mpls

[RouterC-Pos2/1/1] mpls ldp

[RouterC-Pos2/1/1] quit

# After the configurations, 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

Advertising