Command Manual – MPLS
Quidway S8500 Series Routing Switches
Chapter 3 MPLS L2VPN Configuration Commands
Huawei Technologies Proprietary
3-5
Example
# Create a static LSP with the destination IP address of 202.25.38.1 for the ingress
LSR.
[Quidway-mpls] static-lsp ingress bj-sh l2vpn nexthop 1.1.1.1 out-label 100
3.1.6 static-lsp transit l2vpn
Syntax
static-lsp
transit
lsp-name
l2vpn
incoming-interface
vlan-interface vlan-id
in-label
in-label
nexthop
next-hop-addr
out-label
out-label
undo static-lsp transit lsp-name
View
MPLS view
Parameter
lsp-name
: Name of the LSP.
vlan-id
: ID of the VLAN whose interface is to be used to create the LSP.
next-hop-addr
: Address of the next hop.
in-label
: Value of the in-label, ranging from 16 to 1,023.
out-label
: Value of the out-label, ranging from 16 to 1,023.
Description
Use the
static-lsp transit
command to create a static L2VPN LSP for the midway
transmitting LSR.
Use the
undo static-lsp transit
command to remove the static L2VPN LSP created for
the midway transmitting LSR.
You need to create two LSPs (for transmitting and receiving) before creating a remote
CCC connection. You also need to enable the two LSPs to traverse through each of the
midway LSRs.
Related command:
static-lsp egress l2vpn
,
static-lsp ingress l2vpn
.
Example
# Create a static L2VPN LSP for the interface of VLAN 201 on the midway transmitting
LSR, with the in-label of 123 and the out-label of 253.
[Quidway-mpls] static-lsp transit bj-sh l2vpn incoming-interface
vlan-interface 201 in-label 123 nexthop 202.34.114.7 out-label 253