static-sr-mpls adjacency
Use static-sr-mpls adjacency to configure an adjacency path for static SR.
Use undo static-sr-mpls adjacency to delete an adjacency path.
Syntax
static-sr-mpls adjacency adjacency-path-name in-label label-value { nexthop ip-address | outgoing-interface interface-type interface-number }
undo static-sr-mpls adjacency adjacency-path-name
Default
No adjacency paths exist.
Views
System view
Predefined user roles
network-admin
Parameters
adjacency-path-name: Specifies the adjacency path name, a case-sensitive string of 1 to 15 characters.
in-label label-value: Specifies the incoming label, in the range of 16 to 15999.
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 transit node of a static SRLSP.
If you specify the next hop address, make sure the following requirements are met:
The device has a route to reach the next hop address.
MPLS is enabled on the output interface of the route.
If you specify an output interface, make sure the following requirements are met:
The interface is up.
The interface can receive direct routes.
MPLS is enabled on the interface.
On a device, the incoming label specified by this command must be different than other static LSPs and static CRLSPs. If not, the configured adjacency path is unavailable. The adjacency path cannot become available even if you change the incoming label of the static LSP or static CRLSP. To resolve this problem, you must delete the existing adjacency path and configure a new one with a different incoming label.
Examples
# Configure adjacency path adj1, and specify the incoming label as 100 and the next hop address as 12.2.1.2.
<Sysname> system-view [Sysname] static-sr-mpls adjacency adj1 in-label 100 nexthop 12.2.1.2
Related commands
static-sr-mpls lsp
display static-sr-mpls