static-sr-mpls lsp
Use static-sr-mpls lsp to configure a static SRLSP.
Use undo static-sr-mpls lsp to delete a static SRLSP.
Syntax
static-sr-mpls lsp lsp-name out-label out-label-value&<1-n>
undo static-sr-mpls lsp lsp-name
Default
No static SRLSPs exist.
Views
System view
Predefined user roles
network-admin
Parameters
lsp-name: Specifies the static SRLSP name, a case-sensitive string of 1 to 15 characters.
out-label out-label-value&<1-n>: Specifies a space-separated list of up to n outgoing labels from outer to inner in the label stack. The value range for the out-label-value argument is 0, 3, and 16 to 1048575. The value of n is 7.
nexthop ip-address: Specifies the next hop address.
outgoing-interface interface-type interface-number: Specifies an output interface by its type and number. The output interface must be a P2P interface.
Usage guidelines
Execute this command only on the ingress node of a static SRLSP.
The outgoing labels specified by this command represent the incoming labels of the adjacency paths that a static SRLSP traverses in sequence. The outer most label must use the incoming label of the first adjacency path that the static SRLSP traverses.
Examples
# Configure static SRLSP lsp1, specify the outgoing labels as 100 and 200.
<Sysname> system-view [Sysname] static-sr-mpls lsp lsp1 out-label 100 200
Related commands
static-sr-mpls adjacency
display static-sr-mpls