H3C Technologies H3C S10500 Series Switches User Manual

Page 296

Advertising
background image

285

[Spoke-PE2-Vlan-interface5] mpls

[Spoke-PE2-Vlan-interface5] mpls ldp

[Spoke-PE2-Vlan-interface5] quit

# Configure the Hub-PE.

[Hub-PE] mpls lsr-id 2.2.2.9

[Hub-PE] mpls

[Hub-PE-mpls] quit

[Hub-PE] mpls ldp

[Hub-PE-mpls-ldp] quit

[Hub-PE] interface vlan-interface 4

[Hub-PE-Vlan-interface4] mpls

[Hub-PE-Vlan-interface4] mpls ldp

[Hub-PE-Vlan-interface4] quit

[Hub-PE] interface vlan-interface 5

[Hub-PE-Vlan-interface5] mpls

[Hub-PE-Vlan-interface5] mpls ldp

[Hub-PE-Vlan-interface5] quit

After the configuration, LDP sessions are established between Spoke-PE 1 and Hub-PE, and between

Spoke-PE 2 and Hub-PE. 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. The following takes Spoke-PE 1 as an example:

[Spoke-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

[Spoke-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-interface4

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

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

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

A '*' before a Label means the USCB or DSCB is stale

3.

Configure VPN instances on the spoke-PEs and the hub-PE to allow CEs to access the PEs.

# Configure Spoke-PE 1.

[Spoke-PE1] ip vpn-instance vpn1

[Spoke-PE1-vpn-instance-vpn1] route-distinguisher 100:1

[Spoke-PE1-vpn-instance-vpn1] vpn-target 111:1 import-extcommunity

[Spoke-PE1-vpn-instance-vpn1] vpn-target 222:2 export-extcommunity

Advertising