09-MPLS Command Reference

HomeSupportResource CenterRoutersH3C SR6600-X Router SeriesH3C SR6600-X Router SeriesTechnical DocumentsReference GuidesCommand ReferencesH3C SR6600 SR6600-X Routers Command References-R7607-6W10009-MPLS Command Reference
Table of Contents
Related Documents
14-Static SR over MPLS commands
Title Size Download
14-Static SR over MPLS commands 43.46 KB

Static SR over MPLS commands

display mpls static-sr-mpls

Use display mpls static-sr-mpls to display static SRLSP and adjacency path information.

Syntax

display mpls static-sr-mpls [ lsp lsp-name | adjacency adjacency-path-name ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

lsp lsp-name: Specifies a static SRLSP by its name, a case-sensitive string of 1 to 15 characters.

adjacency adjacency-path-name: Specifies an adjacency path by its name, a case-sensitive string of 1 to 15 characters.

Usage guidelines

If you do not specify a static SRLSP or adjacency path, this command displays information about all static SRLSPs and adjacency paths.

Examples

# Display static SRLSP and adjacency path information.

<Sysname> display mpls static-sr-mpls

Name           : lsp1

Type           : LSP

In-Label       : -

Out-Label      : 60,70,80

Out-Interface  : GE2/1/1

Nexthop        : 20.1.1.2

State          : Up

 

Name           : adj1

Type           : Adjacency

In-Label       : 40

Out-Label      : -

Out-Interface  : GE2/1/1

Nexthop        : 20.1.1.2

State          : Up

Table 1 Command output

Field

Description

Name

Name of the static SRLSP or adjacency path.

Type

Information type:

·     LSP—Static SRLSP information.

·     Adjacency—Adjacency path information.

In-Label

Incoming label.

Out-Label

Outgoing label.

Out-Interface

Output interface.

Nexthop

Next hop address.

State

Status of the static SRLSP or adjacency path:

·     Down.

·     Up.

 

Related commands

static-sr-mpls lsp

static-sr-mpls adjacency

mpls te static-sr-mpls

Use mpls te static-sr-mpls to bind a static SRLSP to an MPLS TE tunnel interface.

Use undo mpls te static-sr-mpls to unbind a static SRLSP from an MPLS TE tunnel interface.

Syntax

mpls te static-sr-mpls lsp-name [ backup ]

undo mpls te static-sr-mpls lsp-name

Default

An MPLS TE tunnel interface does not use any static SRLSPs.

Views

Tunnel interface view

Predefined user roles

network-admin

mdc-admin

Parameters

lsp-name: Specifies a static SRLSP by its name, a case-sensitive string of 1 to 15 characters. The specified static SRLSP must be already created by using the static-sr-mpls lsp command.

backup: Specifies the backup static SRLSP. If you do not specify this keyword, this command specifies the main static SRLSP.

Usage guidelines

This command takes effect only if you have configured the mpls te signaling static command in tunnel interface view.

Execute this command only on the ingress node of a static SRLSP.

If you execute the mpls te static-sr-mpls and mpls te static-cr-lsp commands on a device, only the mpls te static-cr-lsp command takes effect. For the mpls te static-sr-mpls command to take effect, execute the undo mpls te static-cr-lsp command.

Examples

# Bind static SRLSP static-sr-3 to MPLS TE tunnel interface 0.

<Sysname> system-view

[Sysname] interface tunnel 0 mode mpls-te

[Sysname-Tunnel0] mpls te static-sr-mpls static-sr-3

Related commands

display mpls te tunnel-interface

mpls te signaling

static-sr-mpls lsp

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

mdc-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 4095.

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, static PWs, 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, static PW, 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

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-13>

undo static-sr-mpls lsp lsp-name

Default

No static SRLSPs exist.

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

lsp-name: Specifies the static SRLSP name, a case-sensitive string of 1 to 15 characters.

out-label out-label-value&<1-13>: Specifies a space-separated list of up to 13 outgoing labels. The outgoing labels represent the incoming MPLS labels of the nodes that a static SRLSP traverses, from the nearest to the farthest away from the ingress node. The value range for the out-label-value argument is 0, 3, and 16 to 1048575.

Usage guidelines

Execute this command only on the ingress node of a static SRLSP.

Examples

# Configure static SRLSP lsp1, and specify the outgoing labels as 100, 200, and 300.

<Sysname> system-view

[Sysname] static-sr-mpls lsp lsp1 out-label 100 200 300

Related commands

static-sr-mpls adjacency

display static-sr-mpls

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网