13
If you want to associate the static LSP with an LDP LSP, make sure the egress node of the static
LSP has a route to the destination.
28B
Configuration procedure
To configure a static LSP:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Configure the ingress
node of the static LSP.
static-lsp ingress
lsp-name
destination ip-address
{
mask
|
mask-length
} {
nexthop
next-hop-ip-address
|
outgoing-interface
interface-type
interface-number
}
out-label out-label
If you specify a next hop for the
static LSP, make sure the ingress
node has an active route to the
specified next hop address.
3.
Configure the transit
node of the static LSP.
static-lsp transit
lsp-name in-label
in-label
{
nexthop
next-hop-ip-address
|
outgoing-interface
interface-type
interface-number
}
out-label out-label
If you specify a next hop for the
static LSP, make sure the transit
node has an active route to the
specified next hop address.
4.
Configure the egress
node of the static LSP.
static-lsp egress lsp-name
in-label
in-label
[
destination
ip-address
{
mask
|
mask-length
} ]
You do not need to configure this
command if the outgoing label
configured on the penultimate hop
of the static LSP is 0 or 3.
29B
Displaying static LSPs
Execute
display
commands in any view.
Task Command
Display static LSP information.
display mpls static-lsp
[
lsp-name
lsp-name
]
30B
Static LSP configuration example
142B
Network requirements
Switch A, Switch B, and Switch C all support MPLS.
Establish static LSPs between Switch A and Switch C, so that subnets 11.1.1.0/24 and 21.1.1.0/24
can access each other over MPLS.