H3C Technologies H3C S10500 Series Switches User Manual

Page 93

Advertising
background image

82

[SwitchB-Vlan-interface2] mpls

[SwitchB-Vlan-interface2] mpls ldp

[SwitchB-Vlan-interface2] quit

# Configure MPLS and MPLS LDP on Switch C.

[SwitchC] mpls lsr-id 3.3.3.9

[SwitchC] mpls

[SwitchC-mpls] quit

[SwitchC] mpls ldp

[SwitchC-mpls-ldp] quit

[SwitchC] interface vlan-interface 1

[SwitchC-Vlan-interface1] mpls

[SwitchC-Vlan-interface1] mpls ldp

[SwitchC-Vlan-interface1] quit

# After the configurations, two local LDP sessions are established, one between Switch A and Switch B
and the other between Switch B and Switch C. Execute the display mpls ldp session command on each

switch to view the LDP session information, and execute the display mpls ldp peer command to view the

LDP peer information. Take Switch A as an example:

[SwitchA] 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

[SwitchA] 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 Vlan-interface2

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

4.

Allow all static routes and IGP routes to trigger LDP to establish LSPs.

# Configure the LSP establishment triggering policy on Switch A.

[SwitchA] mpls

[SwitchA-mpls] lsp-trigger all

[SwitchA-mpls] return

# Configure the LSP establishment triggering policy on Switch B.

[SwitchB] mpls

[SwitchB-mpls] lsp-trigger all

[SwitchB-mpls] quit

# Configure the LSP establishment triggering policy on Switch C.

[SwitchC] mpls

[SwitchC-mpls] lsp-trigger all

[SwitchC-mpls] quit

Advertising