H3C Technologies H3C S7500E Series Switches User Manual
Page 78

2-36
# Configure MPLS on Switch C.
[SwitchC] mpls lsr-id 3.3.3.9
[SwitchC] mpls
[SwitchC-mpls] quit
[SwitchC] interface vlan-interface 3
[SwitchC-Vlan-interface3] mpls
[SwitchC-Vlan-interface3] quit
Create a static LSP from Switch A to Switch C
# Configure the LSP ingress, Switch A.
[SwitchA] static-lsp ingress AtoC destination 3.3.3.9 32 nexthop 10.1.1.2 out-label 30
# Configure the LSP transit node, Switch B.
[SwitchB] static-lsp transit AtoC incoming-interface vlan-interface 2 in-label 30 nexthop
20.1.1.2 out-label 50
# Configure the LSP egress, Switch C.
[SwitchC] static-lsp egress AtoC incoming-interface vlan-interface 3 in-label 50
Create a static LSP from Switch C to Switch A
# Configure the LSP ingress, Switch C.
[SwitchC] static-lsp ingress CtoA destination 1.1.1.9 32 nexthop 20.1.1.1 out-label 40
# Configure the LSP transit node, Switch B.
[SwitchB] static-lsp transit CtoA incoming-interface vlan-interface 3 in-label 40 nexthop
10.1.1.1 out-label 70
# Configure the LSP egress, Switch A.
[SwitchA] static-lsp egress CtoA incoming-interface vlan-interface 2 in-label 70
Verify the configuration
# After the above configurations, execute the display mpls static-lsp command on each switch to
view the static LSP information. The following takes Switch A as an example:
[SwitchA] display mpls static-lsp
total statics-lsp : 2
Name FEC I/O Label I/O If State
AtoC 3.3.3.9/32 NULL/30 -/Vlan2 Up
CtoA -/- 70/NULL Vlan2/- Up
# On Switch A, check the connectivity of the LSP from Switch A to Switch C.
[SwitchA] ping lsp ipv4 3.3.3.9 32
LSP Ping FEC: LDP IPV4 PREFIX 3.3.3.9/32 : 100 data bytes, press CTRL_C to break
Reply from 20.1.1.2: bytes=100 Sequence=1 time = 76 ms
Reply from 20.1.1.2: bytes=100 Sequence=2 time = 75 ms
Reply from 20.1.1.2: bytes=100 Sequence=3 time = 75 ms
Reply from 20.1.1.2: bytes=100 Sequence=4 time = 75 ms
Reply from 20.1.1.2: bytes=100 Sequence=5 time = 75 ms
--- FEC: LDP IPV4 PREFIX 3.3.3.9/32 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 75/75/76 ms
# On Switch C, check the connectivity of the LSP from Switch C to Switch A.
[SwitchC] ping lsp ipv4 1.1.1.9 32
LSP Ping FEC: LDP IPV4 PREFIX 1.1.1.9/32 : 100 data bytes, press CTRL_C to break
Reply from 10.1.1.1: bytes=100 Sequence=1 time = 75 ms