beautypg.com

H3C Technologies H3C SR8800 User Manual

Page 151

background image

140

CAUTION:

You must configure IGP shortcut or a static route for the MPLS TE tunnel, so that IP routing prefers the
MPLS TE tunnel interface as the outgoing interface.

You must configure the tunnel tailend LSR ID as the tunnel destination.

6.

Configure LDP on Router B and Router C
# Configure Router B.

[RouterB] mpls

[RouterB-mpls] mpls ldp

[RouterB-mpls] quit

[RouterB] interface GigabitEthernet 3/1/1

[RouterB-GigabitEthernet3/1/1] mpls

[RouterB-GigabitEthernet3/1/1] mpls ldp

[RouterB-GigabitEthernet3/1/1] quit

[RouterB] mpls ldp remote-peer C

[RouterB-mpls-ldp-remote-c] remote-ip 3.3.3.3

[RouterB-mpls-ldp-remote-c] prefix-label advertise

[RouterB-mpls-ldp-remote-c] quit

# Configure Router C.

[RouterC] mpls

[RouterC-mpls] mpls ldp

[RouterC-mpls] quit

[RouterC] interface GigabitEthernet 3/1/1

[RouterC-GigabitEthernet3/1/1] mpls

[RouterC-GigabitEthernet3/1/1] mpls ldp

[RouterC-GigabitEthernet3/1/1] quit

[RouterC] mpls ldp remote-peer b

[RouterC-mpls-ldp-remote-b] remote-ip 2.2.2.2

[RouterC-mpls-ldp-remote-b] prefix-label advertise

[RouterC-mpls-ldp-remote-b] quit

# Execute the display mpls ldp session command on Router B. You can see that a remote session
is established between Router B and Router C.

[RouterB] display mpls ldp session verbose

LDP Session(s) in Public Network

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

Peer LDP ID : 1.1.1.1:0 Local LDP ID : 2.2.2.2:0

TCP Connection : 2.2.2.2 -> 1.1.1.1

Session State : Operational Session Role : Active

Session FT Flag : Off MD5 Flag : Off

Reconnect Timer : --- Recovery Timer : ---

Negotiated Keepalive Timer : 45 Sec

Keepalive Message Sent/Rcvd : 437/437 (Message Count)

Label Advertisement Mode : Downstream Unsolicited

Label Resource Status(Peer/Local) : Available/Available

Peer Discovery Mechanism : Basic