H3C Technologies H3C SR8800 User Manual

Page 156

Advertising
background image

145

[PE1-POS2/1/2] quit

# Configure PE 2.

[PE2] mpls lsr-id 3.3.3.3

[PE2] mpls

[PE2-mpls] lsp-trigger all

[PE2-mpls] quit

[PE2] mpls ldp

[PE2-mpls-ldp] quit

[PE2] interface pos 2/1/2

[PE2-POS2/1/2] mpls

[PE2-POS2/1/2] mpls ldp

[PE2-POS2/1/2] quit

After you complete the configuration, PEs should be able to set up LDP sessions. Perform the

display mpls ldp session command; you should be able to see that the session state is operational.
Take PE 1 for example:

[PE1] display mpls ldp session

LDP Session(s) in Public Network

------------------------------------------------------------------

Peer-ID Status LAM SsnRole FT MD5 KA-Sent/Rcv

------------------------------------------------------------------

3.3.3.3:0 Operational DU Passive Off Off 2/2

------------------------------------------------------------------

LAM : Label Advertisement Mode FT : Fault Tolerance

3.

Enable MPLS TE, CSPF and OSPF TE
# Configure PE 1.

[PE1] mpls

[PE1-mpls] mpls te

[PE1-mpls] mpls te cspf

[PE1-mpls] quit

[PE1] interface pos 2/1/2

[PE1-POS2/1/2] mpls te

[PE1-POS2/1/2] quit

[PE1] ospf

[PE1-ospf-1] opaque-capability enable

[PE1-ospf-1] area 0

[PE1-ospf-1-area-0.0.0.0] mpls-te enable

[PE1-ospf-1-area-0.0.0.0] quit

[PE1-ospf-1] quit

# Configure PE 2.

[PE2] mpls

[PE2-mpls] mpls te

[PE2-mpls] mpls te cspf

[PE2-mpls] quit

[PE2] interface pos 2/1/2

[PE2-POS2/1/2] mpls te

[PE2-POS2/1/2] quit

[PE2] ospf

Advertising