beautypg.com

H3C Technologies H3C S10500 Series Switches User Manual

Page 288

background image

277

[PE1-Vlan-interface13] quit

# Configure the P switch.

[P] mpls lsr-id 2.2.2.9

[P] mpls

[P-mpls] quit

[P] mpls ldp

[P-mpls-ldp] quit

[P] interface vlan-interface 13

[P-Vlan-interface13] mpls

[P-Vlan-interface13] mpls ldp

[P-Vlan-interface13] quit

[P] interface vlan-interface 12

[P-Vlan-interface12] mpls

[P-Vlan0interface12] mpls ldp

[P-Vlan-interface12] quit

# Configure PE 2.

[PE2] mpls lsr-id 3.3.3.9

[PE2] mpls

[PE2-mpls] quit

[PE2] mpls ldp

[PE2-mpls-ldp] quit

[PE2] interface vlan-interface 12

[PE2-Vlan-interface12] mpls

[PE2-Vlan-interface12] mpls ldp

[PE2-Vlan-interface12] quit

After the configurations, P establishes an LDP session with PE 1 and PE 2 respectively. Issue the display
mpls ldp session command. The output shows that the session status is Operational. Issue the display

mpls ldp lsp command. The output shows the LSPs established by LDP. Take PE 1 as an example:

[PE1] display mpls ldp session

LDP Session(s) in Public Network

Total number of sessions: 1

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

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

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

2.2.2.9:0 Operational DU Passive Off Off 5/5

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

LAM : Label Advertisement Mode FT : Fault Tolerance

[PE1] display mpls ldp lsp

LDP LSP Information

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

SN DestAddress/Mask In/OutLabel Next-Hop In/Out-Interface

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

1 1.1.1.9/32 3/NULL 127.0.0.1 -------/InLoop0

2 2.2.2.9/32 NULL/3 172.1.1.2 -------/Vlan-interface13

3 3.3.3.9/32 NULL/1024 172.1.1.2 -------/Vlan-interface13

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

A '*' before an LSP means the LSP is not established