09-MPLS Command Reference

HomeSupportSwitchesH3C S12500 Switch SeriesReference GuidesCommand ReferencesH3C S12500 Command References-Release1828P04-6W18209-MPLS Command Reference
01-Basic MPLS Commands
Title Size Download
01-Basic MPLS Commands 305.68 KB

Basic MPLS commands 1

accept-label 1

advertise-label 2

bfd enable· 3

display mpls ilm·· 4

display mpls interface· 5

display mpls label 6

display mpls ldp· 7

display mpls ldp fec· 9

display mpls ldp interface· 11

display mpls ldp lsp· 13

display mpls ldp peer 14

display mpls ldp remote-peer 16

display mpls ldp session· 17

display mpls ldp session all statistics 19

display mpls lsp· 20

display mpls lsp bfd ipv4· 23

display mpls lsp statistics 24

display mpls nhlfe· 25

display mpls nhlfe reflist 26

display mpls route-state· 28

display mpls static-lsp· 29

display mpls statistics interface· 30

display mpls statistics lsp· 32

du-readvertise· 34

du-readvertise timer 35

graceful-restart (MPLS LDP view) 35

graceful-restart mpls ldp· 36

graceful-restart timer neighbor-liveness 37

graceful-restart timer reconnect 37

graceful-restart timer recovery· 38

hops-count 39

label advertise· 39

label-distribution· 40

loop-detect 41

lsp-trigger 41

lsr-id· 42

md5-password· 43

mpls 44

mpls ldp (interface view) 45

mpls ldp (system view) 45

mpls ldp remote-peer 46

mpls ldp timer hello-hold· 47

mpls ldp timer keepalive-hold· 47

mpls ldp transport-address 48

mpls lspv· 49

mpls lsr-id· 50

mpls mtu· 50

path-vectors 51

periodic-tracert 52

ping lsp ipv4· 53

prefix-label advertise· 54

remote-ip· 55

remote-ip bfd· 55

reset mpls ldp· 56

reset mpls statistics interface· 57

reset mpls statistics lsp· 57

static-lsp egress 58

static-lsp ingress 58

static-lsp transit 59

statistics interval 60

tracert lsp ipv4· 61

ttl expiration enable· 62

ttl expiration pop· 62

ttl propagate· 63

 


Except for the command for the LDP GR feature, all commands in MPLS LDP view are available in MPLS LDP VPN instance view. The difference is that the commands serve the public network LDP in MPLS LDP view but serve the MPLS LDP VPN instance in MPLS LDP VPN instance view.

accept-label

Syntax

accept-label peer peer-id ip-prefix ip-prefix-name

undo accept-label peer peer-id

View

MPLS LDP view, MPLS LDP VPN instance view

Default level

2: System level

Parameters

peer peer-id: Specifies an LDP peer. peer-id is the LSR ID of the LDP peer.

ip-prefix ip-prefix-name: Specifies the IP prefix list to be used for filtering received FEC-label bindings. ip-prefix-name is the name of the IP prefix list, a string of 1 to 19 characters.

Description

Use accept-label to configure a label acceptance control policy.

Use undo accept-label to restore the default.

By default, an LSR accepts all label bindings received from its LDP peers.

A label acceptance control policy is for filtering the FEC-label bindings received. With such a policy configured, an upstream LSR filters the label bindings received from the specified downstream LSR by the specified IP prefix list, and accepts and saves only bindings with the FEC destinations permitted by the specified IP prefix list.

When the label acceptance control configuration on an LSR is changed (for example, the label acceptance control policy is deleted by using the undo accept-label command), execute the reset mpls ldp command to reset LDP sessions, so that the downstream LSR re-advertises its label bindings and the upstream LSR can obtain the label bindings not accepted before.

Related commands: ip ip-prefix (Layer 3—IP Routing Command Reference).

Examples

# Configure the switch to accept only the label bindings of FECs with destination addresses on segments 10.1.1.0/24 and 10.2.1.0/24 from LDP peer 1.1.1.9.

<Sysname> system-view

[Sysname] ip ip-prefix prefix-from-RTA index 1 permit 10.1.1.0 24

[Sysname] ip ip-prefix prefix-from-RTA index 2 permit 10.2.1.0 24

[Sysname] mpls ldp

[Sysname-mpls-ldp] accept-label peer 1.1.1.9 ip-prefix prefix-from-RTA

advertise-label

Syntax

advertise-label ip-prefix ip-prefix-name [ peer peer-ip-prefix-name ]

undo advertise-label ip-prefix ip-prefix-name

View

MPLS LDP view, MPLS LDP VPN instance view

Default level

2: System level

Parameters

ip-prefix ip-prefix-name: Specifies an IP prefix list to be used for filtering the label bindings to be advertised. ip-prefix-name is the name of the IP prefix list, a string of 1 to 19 characters.

peer peer-ip-prefix-name: Specifies a list of LDP peers. peer-ip-prefix-name is the IP prefix list name, a string of 1 to 19 characters. If you do not specify the LDP peer list, the label advertisement control policy is for all LDP peers.

Description

Use advertise-label to configure a label advertisement control policy.

Use undo advertise-label to restore the default.

By default, an LSR does not filter label bindings to be advertised.

When advertising label bindings to peers, an LSR follows these rules:

·     If the IP prefix of a label binding to be advertised fails the IP prefix checking, the LSR does not advertise the label binding to any peer.

·     If the IP prefix of a label binding to be advertised passes the IP prefix checking and the peer list is not specified, the LSR will advertise the label binding to all peers.

·     If the IP prefix of a label binding to be advertised passes the IP prefix checking and a peer list is specified, the LSR will advertise the label binding to the peers that pass the peer list checking.

·     If the IP prefix of a label binding to be advertised passes the checking of more than one IP prefix lists (which are specified by executing the advertise-label command for multiple times), the LSR will advertise the label binding based on the configuration by the first advertise-label command.

Related commands: ip ip-prefix (Layer 3—IP Routing Command Reference).

Examples

# Configure label advertisement control policies so that the switch:

·     Advertises label bindings for FEC 10.1.1.0/24 to the LDP peer with the LSR ID 3.3.3.9

·     Advertises label bindings for FEC 10.2.1.0/24 to the LDP peer with the LSR ID 4.4.4.9.

·     Does not advertise label bindings of other segments to any peers.

<Sysname> system-view

[Sysname] ip ip-prefix prefix-to-C permit 10.1.1.0 24

[Sysname] ip ip-prefix prefix-to-D permit 10.2.1.0 24

[Sysname] ip ip-prefix peer-C permit 3.3.3.9 32

[Sysname] ip ip-prefix peer-D permit 4.4.4.9 32

[Sysname] mpls ldp

[Sysname-mpls-ldp] advertise-label ip-prefix prefix-to-C peer peer-C

[Sysname-mpls-ldp] advertise-label ip-prefix prefix-to-D peer peer-D

bfd enable

Syntax

bfd enable destination-address mask-length [ nexthop nexthop-address [ discriminator local local-id remote remote-id ] ]

undo bfd enable destination-address mask-length [ nexthop nexthop-address ]

View

MPLS LSPV view

Default level

2: System level

Parameters

destination-address: Destination address of the FEC.

mask-length: Destination address mask of the FEC, in the range of 0 to 32.

nexthop nexthop-address: Specifies the next hop address of the FEC. If you specify the FEC next hop, the BFD inspects the specified LSP; if you do not specify it, the BFD detects all LSPs for the FEC.

discriminator: Specifies the discriminator values of the BFD session.

local local-id: Specifies the local discriminator value of the BFD session.

remote remote-id: Specifies the remote discriminator value of the BFD session, in the range of 1 to 4294967295.

Description

Use bfd enable to enable BFD to check the connectivity of the LSPs of the specified FEC.

Use undo bfd enable to disable BFD for the LSPs of the specified FEC.

By default, BFD is not configured for connectivity check of LSPs.

Enable LSP verification by using the mpls lspv command before executing the bfd enable command.

The BFD session parameters are those configured on the loopback interface whose IP address is configured as the MPLS LSR ID. The BFD packets will use the MPLS LSR ID as the source address. Before enabling BFD for an LSP, configure an IP address for the loopback interface and configure the MPLS LSR ID as the IP address of the loopback interface. You can also configure BFD session parameters for the loopback interface as needed.

Examples

# Enable BFD to check the connectivity of the LSPs to destination 1.1.1.9/32.

<Sysname> system-view

[Sysname] mpls lspv

[Sysname-mpls-lspv] bfd enable 1.1.1.9 32

display mpls ilm

Syntax

In standalone mode:

display mpls ilm [ label ] [ verbose ] [ slot slot-number ] [ include text | { | { begin | exclude | include } regular-expression } ]

In IRF mode:

display mpls ilm [ label ] [ verbose ] [ chassis chassis-number slot slot-number ] [ include text | { | { begin | exclude | include } regular-expression } ]

View

Any view

Default level

1: Monitor level

Parameters

label: Incoming label in the range of 16 to 1048575.

verbose: Displays the detailed information.

slot slot-number: Displays the ILM entries on a card. The slot-number argument represents the number of the slot that holds the card. Use this option when your switch is operating in standalone mode.

chassis chassis-number slot slot-number: Displays the ILM entries of a card on an IRF member switch. The chassis-number argument represents the ID of the IRF member switch, and the slot-number argument represents the number of the slot that holds the card. You can display the chassis number and slot number with the display device command. Use this option when your switch is operating in IRF mode.

include text: Displays incoming label mapping (ILM) entries containing a specific string.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

·     begin: Displays the first line that matches the specified regular expression and all lines that follow.

·     exclude: Displays all lines that do not match the specified regular expression.

·     include: Displays all lines that match the specified regular expression.

·     regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display mpls ilm to display information about ILM entries.

With no incoming label specified, the command displays information about all ILM entries.

Examples

# Display the ILM entry with a specific incoming label.

<Sysname> display mpls ilm 1024

Inlabel In-Interface        Token   VRF-Index Oper   LSP-Type      Swap-Label

--------------------------------------------------------------------------

1024    Vlan1000            2         0       POP    NORMAL        -

Table 1 Command output

Field

Description

Inlabel

Incoming label.

In-Interface

Incoming interface.

Token

NHLFE entry index.

Oper

Operation type: POP, POPGO, SWAPGO, or NULL.

LSP-Type

LSP type: LDP LSP, CR-LDP, RSVP LSP, BGP LSP, L3VPN LSP, STATIC LSP, STATIC CR-LSP, L2VPN LSP, or BGP IPv6 LSP.

Swap-Label

Label for swapping.

 

display mpls interface

Syntax

display mpls interface [ interface-type interface-number ] [ verbose ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

interface-type interface-number: Specifies an interface by its type and number. If you do not specify an interface, the command displays MPLS information about all MPLS-enabled interfaces.

verbose: Displays detailed information. If you do not specify this keyword, the command displays the brief information.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display mpls interface to display MPLS information about one or all interfaces with MPLS enabled.

Related commands: display mpls statistics interface and mpls.

Examples

# Display brief MPLS related information about all interfaces with MPLS enabled.

<Sysname> display mpls interface

Interface   Status     TE Attr    LSP Count   CRLSP Count

Vlan1000    Up         En         0           0       

Vlan1001    Up         En         0           0       

# Display detailed information about MPLS-enabled interface.

<Sysname> display mpls interface vlan-interface 1000 verbose

No             : 1

Interface      : Vlan1000

Status         : Down

TE Attribute   : Disable

LSPCount       : 0

CR-LSPCount    : 0

FRR            : Disabled

Table 2 Command output

Field

Description

TE Attr/TE Attribute

Whether TE is enabled on the interface.

LSP Count/LSPCount

Number of LSPs on the interface.

CR-LSP Count/CR-LSPCount

Number of CR-LSPs on the interface.

FRR

Whether FRR is enabled on the interface. If FRR is enabled, the output will also include the bound tunnels.

For information about FRR, see MPLS Configuration Guide.

 

display mpls label

Syntax

display mpls label { label-value1 [ to label-value2 ] | all } [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

label-value1: Specifies a label, or, when used with the label-value2 argument, the start label of a range of labels. The value range for this argument is 16 to 262143.

to label-value2: Specifies the end label of a range of labels. The value range for the label-value2 argument is 16 to 262143.

all: Specifies all labels.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display mpls label to display usage information about specified labels or all labels.

Examples

# Display information about labels in the range of 900 to 1500.

<Sysname> display mpls label 900 to 1500

Label alloc state: '.' means not used, '$' means used

------------------------------Static Label--------------------------------

900:........ ........ ........ ........  ........ ........ ........ ........

964:........ ........ ........ ........  ........ ........ ........ ....

------------------------------Dynamic Label-------------------------------

1024:...$.... ........ ........ ........  ........ ........ ........ ........

1088:........ ........ ........ ........  ........ ........ ........ ........

1152:........ ........ ........ ........  ........ ........ ........ ........

1216:........ ........ ........ ........  ........ ........ ........ ........

1280:........ ........ ........ ........  ........ ........ ........ ........

1344:........ ........ ........ ........  ........ ........ ........ ........

1408:........ ........ ........ ........  ........ ........ ........ ........

1472:........ ........ ........ .....

display mpls ldp

Syntax

display mpls ldp [ all [ verbose ] ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

all: Displays all information about LDP .

verbose: Displays detailed information.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display mpls ldp to display information about LDP.

If you do not specify any parameter, the command will display all information about LDP in detail.

Related commands: mpls ldp (interface view) and mpls ldp (system view).

Examples

# Display all information about LDP in detail.

<Sysname> display mpls ldp all verbose

                           LDP Global Information

---------------------------------------------------------------

 Protocol Version        : V1           Neighbor Liveness    : 60 Sec

 Graceful Restart        : Off          FT Reconnect Timer   : 60 Sec

 MTU Signaling           : Off          Recovery Timer       : 60 Sec

 Nonstop Routing         : Off

                          LDP Instance Information

 ---------------------------------------------------------------

 Instance ID            : 0          VPN-Instance         :

 Instance Status        : Active     LSR ID               : 1.1.1.1

 Hop Count Limit        : 32         Path Vector Limit    : 32

 Loop Detection         : Off

 DU Re-advertise Timer  : 30 Sec     DU Re-advertise Flag : On

 DU Explicit Request    : Off        Request Retry Flag   : On

 Label Distribution Mode: Ordered    Label Retention Mode : Liberal

 -----------------------------------------------------------------

Table 3 Command output

Field

Description

Protocol Version

Version of the LDP protocol.

Neighbor Liveness

Setting of the GR neighbor liveness timer.

Graceful Restart

Whether GR is enabled.

FT Reconnect Timer

Setting of the GR's FT reconnect timer.

MTU Signaling

Whether MTU signaling is supported. The switch does not support MTU signaling.

Recovery Timer

Setting of the GR's recovery timer.

Nonstop Routing

State of LDP NSR. The switch does not support the LDP NSR function.

Instance ID

Sequence number of the LDP instance.

VPN-Instance

Instance name of the LDP-enabled VPN. For the default VPN, nothing is displayed.

Hop Count Limit

Maximum hop count for loop detection.

Path Vector Limit

Maximum path vector length.

Loop Detection

Whether loop detection is enabled.

DU Re-advertise Timer

Label re-advertisement interval for DU mode.

DU Re-advertise Flag

Whether label re-advertisement is enabled for DU mode.

DU Explicit Request

Whether explicit request transmission is enabled for DU mode.

Request Retry Flag

Whether request retransmission is enabled.

Label Distribution Mode

Label distribution control mode of the instance: Ordered or Independent.

Label Retention Mode

Label retention mode used by the instance. The switch only supports the Liberal mode.

 

display mpls ldp fec

Syntax

display mpls ldp fec [ vpn-instance vpn-instance-name ] dest-addr mask-length [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

vpn-instance vpn-instance-name: Displays the label advertisement information for the specified VPN. vpn-instance-name is the instance name of an MPLS L3VPN, a case-sensitive string of 1 to 31 characters.

dest-addr mask-length: Displays the label advertisement information for the specified FEC. dest-addr is the destination address of the FEC. mask-length is the mask length of the FEC destination address, in the range of 0 to 32.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display mpls ldp fec to display the label advertisement information for a specific FEC.

Examples

# Display the label advertisement information for FEC 3.3.3.9/32.

<Sysname> display mpls ldp fec 3.3.3.9 32

 -------------------------------------------------------------------------

                            LDP FEC Information

 -------------------------------------------------------------------------

 Upstream Info:

 ------------------------------------------------------------------

 No.               : 1

 Upstream peer     : Null

 Stale             : No

 Label Request ID  : NULL

 Label Space ID    : 0

 FEC Type          : Generic

 Incoming Label    : Null

 State             : Established

 Hop Count         : 1

 Path Vector Count : 0

 Path Vector       : NULL

 

 Downstream Info:

 ------------------------------------------------------------------

 No.               : 1

 Downstream Peer   : 2.2.2.9

 Stale             : No

 Label Request ID  : NULL

 Label Type        : Generic

 Outgoing Label    : 1036

 State             : Established

 Hop Count         : 2

 Path Vector Count : 1

 Path Vector       : 2.2.2.9

 Received MTU      : 1500

 OutIfCount        : 2

 OutGoing Info     : Interface                  Nexthop

                     Vlan200                    21.21.21.2

                     Vlan100                    12.12.12.2

Table 4 Command output

Field

Description

Stale

Whether the switch is in GR process.

Label Space ID

0 indicates that the entire LSR uses one label space.

Label Type

Label type, including Generic, ATM, and FR. The switch supports Generic only.

State

Current state:

·     Established—Active state.

·     IDLE—Inactive state.

·     Release_Awaited—Waiting to a Release message.

·     Established (Sending Mapping)—Sending the mapping message.

·     Established (Delay to withdraw)—Delay to withdraw the incoming label.

·     IDLE (Sending Release)—Sending the release message.

·     Release_Awaited (Sending Withdraw)—Sending the withdraw message.

·     Release_Awaited (Aging)—Aging the label.

Path Vector Count

Number of LSRs included in the path vector.

OutIfCount

Number of outbound interfaces.

Interface

Outbound interface.

 

display mpls ldp interface

Syntax

display mpls ldp interface [ all [ verbose ] | [ vpn-instance vpn-instance-name ] [ interface-type interface-number | verbose ] ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

all: Displays all information.

verbose: Displays detailed information.

vpn-instance vpn-instance-name: Displays the LDP related information for the specified VPN. vpn-instance-name is the instance name of an MPLS L3VPN, a case-sensitive string of 1 to 31 characters.

interface-type interface-number: Display the LDP information for an interface.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display mpls ldp interface to display the LDP related information for one or more LDP-enabled interfaces.

If you do not specify any parameter, the command displays the brief LDP information for all LDP-enabled interfaces.

Related commands: mpls ldp (interface view) and mpls ldp (system view).

Examples

# Display the brief LDP information for all LDP-enabled interfaces.

<Sysname> display mpls ldp interface

     LDP Interface Information in Public Network

 -------------------------------------------------------------------

 IF-Name         Status       LAM   Transport-Address   Hello-Sent/Rcv

 -------------------------------------------------------------------

 Vlan1000        Active       DU    172.17.1.1          583/1017

 Vlan1001        Active       DU    172.17.1.1          578/1015

 Vlan1002        Active       DU    172.17.1.1          531/444

 -------------------------------------------------------------------

 LAM: Label Advertisement Mode         IF-Name: Interface name

# Display the detailed LDP information for all LDP-enabled interfaces.

<Sysname> display mpls ldp interface verbose

     LDP Interface Information in Public Network

 --------------------------------------------------------------

 Interface Name : Vlan-interface1000

 LDP ID         : 172.17.1.1:0          Transport Address : 172.17.1.1

 Entity Status  : Active                Interface MTU     : 1500

 

 Configured Hello Timer     : 15 Sec

 Negotiated Hello Timer     : 15 Sec

 Configured Keepalive Timer : 45 Sec

 Label Advertisement Mode   : Downstream Unsolicited

 Hello Message Sent/Rcvd    : 591/1033 (Message Count)

 -------------------------------------------------------------

 Interface Name : Vlan-interface1001

 LDP ID         : 172.17.1.1:0          Transport Address : 172.17.1.1

 Entity Status  : Active                Interface MTU     : 1500

 Configured Hello Timer     : 15 Sec

 Negotiated Hello Timer     : 15 Sec

 Configured Keepalive Timer : 45 Sec

 Label Advertisement Mode   : Downstream Unsolicited

 Hello Message Sent/Rcvd    : 586/1031 (Message Count)

 -----------------------------------------------------------

 Interface Name : Vlan-interface1002

 LDP ID         : 172.17.1.1:0          Transport Address : 172.17.1.1

 Entity Status  : Active                Interface MTU     : 1500

 Configured Hello Timer     : 15 Sec

 Negotiated Hello Timer     : 15 Sec

 Configured Keepalive Timer : 45 Sec

 Label Advertisement Mode   : Downstream Unsolicited

 Hello Message Sent/Rcvd    : 539/452 (Message Count)

 -------------------------------------------------------------

Table 5 Command output

Field

Description

LDP ID

LDP identifier. It identifies the label space of an LSR.

An LDP ID consists of the LSR ID and label space ID. Now, the label space ID can only be 0, which indicates that the entire LSR uses one label space.

Transport Address

LDP transport address. The switch uses this address to establish a TCP connection with an LDP peer.

Entity Status

Entity status, Active or Inactive.

Hello Message Sent/Rcvd

Counts of hello messages sent/received on the interface.

 

display mpls ldp lsp

Syntax

display mpls ldp lsp [ all | [ vpn-instance vpn-instance-name ] [ destination-address mask-length ] ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

all: Specifies all LSPs established by LDP.

vpn-instance vpn-instance-name: Displays the LSP information for the specified VPN. vpn-instance-name is the instance name of an MPLS L3VPN, a case-sensitive string of 1 to 31 characters.

dest-addr mask-length: Displays the LSP information for an FEC. dest-addr is the destination address of the FEC. mask-length is the length of the mask for the FEC destination address, in the range of 0 to 32.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display mpls ldp lsp to display information about LSPs established by LDP.

If you do not specify any parameter, the command displays information about all LSPs established by LDP.

Related commands: display mpls ldp.

Examples

# Display information about all LSPs established by LDP.

<Sysname> display mpls ldp lsp

                              LDP LSP Information

-------------------------------------------------------------------------------

 SN     DestAddress/Mask    In/OutLabel   Next-Hop        In/Out-Interface

-------------------------------------------------------------------------------

 1      3.3.3.3/32          3/NULL        127.0.0.1       -------/InLoop0

 2      10.1.1.0/24         3/NULL        10.1.1.1         -------/GE3/0/1

*3      100.1.1.1/32        Liberal(1025)        

--------------------------------------------------------------------------

A '*' before an LSP means the LSP is not established

A '*' before a Label means the USCB or DSCB is stale

Table 6 Command output

Field

Description

In/OutLabel

In/out label. A * before a label means that the LSP is in process of GR. Liberal(number) means that the LSP is unavailable and the label value is number.

 

display mpls ldp peer

Syntax

display mpls ldp peer [ all [ verbose ] | [ vpn-instance vpn-instance-name ] [ peer-id | verbose ] ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

all: Display information about all peers.

verbose: Displays detailed information.

vpn-instance vpn-instance-name: Displays information about all peers on the specified VPN. vpn-instance-name is the instance name of an MPLS L3VPN, a case-sensitive string of 1 to 31 characters.

peer-id: Displays information about a peer. peer-id is the LSR ID of the peer.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display mpls ldp peer to display information about specified peers or all peers.

Related commands: mpls ldp (interface view) and mpls ldp (system view).

Examples

# Display brief information about all peers.

<Sysname> display mpls ldp peer

         LDP Peer Information in Public network

 Total number of peers: 3

 --------------------------------------------------------------

 Peer-ID                Transport-Address  Discovery-Source

 --------------------------------------------------------------

 172.17.1.2:0           172.17.1.2         Vlan1000

 168.1.1.1:0            168.1.1.1          Vlan1001

 100.10.1.1:0           100.10.1.1         Vlan1002

 --------------------------------------------------------------

Table 7 Command output

Field

Description

Peer-ID

LDP identifier of the peer. See Table 5 for detailed description of LDP ID.

Discovery-Source

Interface that discovers the peer.

 

# Display detailed information about all peers.

<Sysname> display mpls ldp peer verbose

        LDP Peer Information in Public network

 ---------------------------------------------------------------

 Peer LDP ID         : 172.17.1.2:0

 Peer Max PDU Length : 4096            Peer Transport Address : 172.17.1.2

 Peer Loop Detection : Off             Peer Path Vector Limit : 0

 Peer FT Flag        : Off             Peer Keepalive Timer   : 45 Sec

 Recovery Timer      : ----            Reconnect Timer        : ----

 

 Peer Label Advertisement Mode : Downstream Unsolicited

 Peer Discovery Source         : Vlan-interface1000

------------------------------------------------------------

 Peer LDP ID         : 168.1.1.1:0

 Peer Max PDU Length : 4096            Peer Transport Address : 168.1.1.1

 Peer Loop Detection : Off             Peer Path Vector Limit : 0

 Peer FT Flag        : Off             Peer Keepalive Timer   : 45 Sec

 Recovery Timer      : ----            Reconnect Timer        : ----

 

 Peer Label Advertisement Mode : Downstream Unsolicited

 Peer Discovery Source         : Vlan-interface1001

-------------------------------------------------------------

 Peer LDP ID         : 100.10.1.1:0

 Peer Max PDU Length : 4096            Peer Transport Address : 100.10.1.1

 Peer Loop Detection : Off             Peer Path Vector Limit : 0

 Peer FT Flag        : Off             Peer Keepalive Timer   : 45 Sec

 Recovery Timer      : ----            Reconnect Timer        : ----

 

 Peer Label Advertisement Mode : Downstream Unsolicited

 Peer Discovery Source         : Vlan-interface1002

 ------------------------------------------------------------

Table 8 Command output

Field

Description

Peer LDP ID

LDP identifier of the peer. See Table 5 for detailed description of LDP ID.

Peer FT Flag

Whether the GR FT function is enabled.

Peer Discovery Source

Interface that discovers the peer.

 

display mpls ldp remote-peer

Syntax

display mpls ldp remote-peer [ remote-name remote-peer-name ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

remote-name remote-peer-name: Displays information about a remote peer. remote-peer-name indicates the name of the remote peer, a case-insensitive string of 1 to 32 characters.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display mpls ldp remote-peer to display information about remote LDP peers.

Related commands: mpls ldp (interface view), mpls ldp (system view), and remote-ip.

Examples

# Display information about remote peer BJI.

<Sysname> display mpls ldp remote-peer remote-name BJI

                        LDP Remote Entity Information                   

--------------------------------------------------------------------------

 

 Remote Peer Name  : BJI

 Remote Peer IP    : 3.3.3.3          LDP ID : 1.1.1.1:0

 Transport Address : 1.1.1.1

 

 Configured Keepalive Timer : 45 Sec

 Configured Hello Timer     : 45 Sec

 Negotiated Hello Timer     : 45 Sec

 Hello Message Sent/Rcvd    : 3/2 (Message Count)

--------------------------------------------------------------------------

Table 9 Command output

Field

Description

LDP ID

Local LDP identifier. See Table 5 for detailed description of LDP ID.

Transport Address

Local LDP transport address used to establish a TCP connection with this remote peer.

Hello Message Sent/Rcvd

Counts of hello messages sent to/received from this remote peer.

 

display mpls ldp session

Syntax

display mpls ldp session [ all [ verbose ] | [ vpn-instance vpn-instance-name ] [ peer-id | verbose ] ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

all: Displays all information.

verbose: Displays detailed information.

vpn-instance vpn-instance-name: Displays information about all LDP sessions of the specified VPN. vpn-instance-name is the instance name of an MPLS L3VPN, a case-sensitive string of 1 to 31 characters.

peer-id: Displays the LDP session information for a peer. peer-id indicates the LSR ID of the peer.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display mpls ldp session to display information about LDP sessions.

If you do not specify any parameter, the command displays information about all public network LDP sessions.

Related commands: mpls ldp (interface view) and mpls ldp (system view).

Examples

# Display information about all public network LDP sessions.

<Sysname> display mpls ldp session

               LDP Session(s) in Public Network

 Total number of sessions: 1

 

--------------------------------------------------------------------------

 Peer-ID            Status        LAM  SsnRole  FT   MD5  KA-Sent/Rcv    

--------------------------------------------------------------------------

 1.1.1.1:0          Operational   DU   Active   Off  Off  4582/4582      

--------------------------------------------------------------------------

 LAM : Label Advertisement Mode         FT  : Fault Tolerance              

Table 10 Command output

Field

Description

Peer-ID

LDP identifier of the peer. See Table 5 for detailed description of LDP ID.

Status

Session status:

·     Non Existent—The TCP connection is not established yet.

·     Initialized—The TCP connection is established.

·     Open-Received—Received an acceptable initialization message.

·     Open-Sent—Sent an initialization message.

·     Operational—The LDP session is established.

SsnRole

Role of the current LSR in the session, Active or Passive.

KA-Sent/Rcv

Counts of keepalive messages sent by/received on the local LSR.

 

# Display detailed information about all public network LDP sessions.

<Sysname> display mpls ldp session verbose

             LDP Session(s) in Public Network               

--------------------------------------------------------------------------

 Peer LDP ID     : 1.1.1.1:0            Local LDP ID   : 3.3.3.3:0

 TCP Connection  : 3.3.3.3 -> 1.1.1.1

 Session State   : Operational          Session Role   : Active

 Session FT Flag : Off                  MD5 Flag       : Off

 Reconnect Timer : ---                  Recovery Timer : ---

                                                            

 Negotiated Keepalive Timer        : 45 Sec

 Keepalive Message Sent/Rcvd       : 6/6 (Message Count)

 Label Advertisement Mode          : Downstream Unsolicited

 Label Resource Status(Peer/Local) : Available/Available

 Peer Discovery Mechanism          : Extended

 Session existed time              : 000:00:01  (DDD:HH:MM)

 LDP Extended Discovery Source     : Remote peer: 1

                                                                  

 Addresses received from peer: (Count: 2)

 10.1.1.1            1.1.1.1                                      

                                                                

--------------------------------------------------------------------------

 Peer LDP ID     : 2.2.2.2:0            Local LDP ID   : 3.3.3.3:0

 TCP Connection  : 3.3.3.3 -> 2.2.2.2

 Session State   : Operational          Session Role   : Active

 Session FT Flag : Off                  MD5 Flag       : Off

 Reconnect Timer : ---                  Recovery Timer : ---

                                                                    

 Negotiated Keepalive Timer        : 45 Sec

 Keepalive Message Sent/Rcvd       : 25/25 (Message Count)

 Label Advertisement Mode          : Downstream Unsolicited

 Label Resource Status(Peer/Local) : Available/Available

 Peer Discovery Mechanism          : Basic

 Session existed time              : 000:00:06  (DDD:HH:MM)

 LDP Basic Discovery Source        : Vlan-interface1001

                                                                     

 Addresses received from peer: (Count: 3)

 10.1.1.2            20.1.1.1            2.2.2.2                     

                                                                    

--------------------------------------------------------------------------

Table 11 output description

Field

Description

Peer LDP ID

LDP identifier of the peer. See Table 5 for detailed description of LDP ID.

Local LDP ID

Local LDP identifier. See Table 5 for detailed description of LDP ID.

Session State

See Table 10 to view the session states.

Session Role

Role of the current LSR in the session, Active or Passive.

Session FT Flag

Whether GR FT is enabled on the peer of the session.

MD5 Flag

Whether MD5 authentication is enabled on the peer.

Reconnect Timer

FT reconnect timer.

Recovery Timer

LDP recovery timer.

Label Resource Status(Peer/Local)

Whether the local and peer switches have free labels.

Peer Discovery Mechanism

Discovery mechanism of the peer: Basic or Extended.

Session existed time

Length of time that elapsed since the session is established.

LDP Basic Discovery Source

Interface where the session is established. The value is the name of the interface for basic discovery and name of the remote peer for extended discovery..

LDP Extended Discovery Source

Label Acceptance Policy

Label acceptance control policy.

 

display mpls ldp session all statistics

Syntax

display mpls ldp session all statistics [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display mpls ldp session all statistics to display statistics about all LDP sessions.

Examples

# Display statistics about all LDP sessions.

<Sysname> display mpls ldp session all statistics

Total number of sessions : 1024

Session(s) in Non-Existent state  : 100

Session(s) in Initialized state   : 200

Session(s) in Open-Received state : 400

Session(s) in Open-Sent state     : 300

Session(s) in Operational state   : 24

display mpls lsp

Syntax

display mpls lsp [ incoming-interface interface-type interface-number ] [ outgoing-interface interface-type interface-number ] [ in-label in-label-value ] [ out-label out-label-value ] [ asbr | [ vpn-instance vpn-instance-name ] [ protocol { bgp | bgp-ipv6 | crldp | ldp | rsvp-te | static | static-cr } ] ] [ egress | ingress | transit ] [ { exclude | include } { ipv4-dest-addr mask-length | ipv6-dest-addr prefix-length } ] [ verbose ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

incoming-interface interface-type interface-number: Displays information about the LSPs using the specified interface as the incoming interface.

outgoing-interface interface-type interface-number: Displays information about the LSPs using the specified interface as the outgoing interface.

in-label in-label-value: Displays information about the LSPs using the specified label as the incoming label. The value range for the incoming label is 0 to 1048575.

out-label out-label-value: Displays information about the LSPs using the specified label as the outgoing label. The value range for the outgoing label is 0 to 1048575.

asbr: Displays information about the LSPs established by ASBRs.

vpn-instance vpn-instance-name: Displays information about the LSPs on the specified VPN. vpn-instance-name is the instance name of an MPLS L3VPN, a case-sensitive string of 1 to 31 characters.

protocol: Displays information about the LSPs established by a specific protocol.

bgp: Displays information about BGP LSPs.

bgp-ipv6: Displays information about IPv6 BGP LSPs (BGP4+ LSPs).

crldp: Displays information about CR-LSPs established by CR-LDP.

ldp: Displays information about LDP LSPs.

rsvp-te: Displays information about CR-LSPs established by RSVP-TE.

static: Displays information about static LSPs.

static-cr: Displays information about static CR-LSPs.

egress: Displays information about the LSPs taking the current switch as the egress.

ingress: Displays information about the LSPs taking the current switch as the ingress.

transit: Displays information about the LSPs taking the current switch as a transit LSR.

exclude: Displays information about the LSPs other than the one for the specified FEC.

include: Displays information about the LSP for the specified FEC.

ipv4-dest-addr mask-length: Specifies a FEC by its IPv4 destination address and the length of the mask. The mask length is in the range of 0 to 32.

Ipv6-dest-addr mask-length: Specifies a FEC by its IPv6 destination address and the length of the mask. The mask length is in the range of 0 to 128.

verbose: Displays detailed information.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

·     begin: Displays the first line that matches the specified regular expression and all lines that follow.

·     exclude: Displays all lines that do not match the specified regular expression.

·     include: Displays all lines that match the specified regular expression.

·     regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display mpls lsp to display information about LSPs.

With no parameters specified, the command displays information about all LSPs.

Related commands: display mpls lsp, display mpls static-lsp, and display mpls statistics lsp.

Examples

# Display information about all LSPs.

<Sysname> display mpls lsp

-----------------------------------------------------------------------

                 LSP Information: L3VPN LSP

-----------------------------------------------------------------------

FEC              In/Out Label  In/Out IF Route-Distinguisher   Vrf Name

100.1.1.1        1025/1024     -/-       100:1                 N/A (ASBR)

 

-----------------------------------------------------------------------

                 LSP Information: LDP LSP

-----------------------------------------------------------------------

FEC              In/Out Label  In/Out IF                       Vrf Name

100.10.1.0/24    3/NULL        -/InLoop0

168.1.0.0/16     3/NULL        -/Vlan11

172.17.0.0/16    3/NULL        -/Vlan12

Table 12 Command output

Field

Description

FEC

Forwarding equivalence class, in either of the following forms:

·     IP address/mask—Classifies packets to FECs based on destination addresses.

·     IP address—Classifies packets to FECs based on next hop addresses.

Vrf Name

MPLS L3VPN name.

This field displays nothing for a public network or N/A (ASBR) for an ASBR LSP.

 

# Display detailed information about all LSPs.

<Sysname> display mpls lsp verbose

-------------------------------------------------------------

                 LSP Information: LDP LSP

-------------------------------------------------------------

  No.                 :  1

  VrfName            :

  Fec                 :  1.1.1.9/32

  Nexthop             :  127.0.0.1

  In-Label            :  3

  Out-Label           :  NULL

  In-Interface        :  ----------

  Out-Interface       :  InLoopBack0

  LspIndex            :  10241

  Tunnel ID           :  0x0

  LsrType             :  Egress

  Outgoing Tunnel ID  :  0x0

  Label Operation     :  POP

Table 13 Command output

Field

Description

VrfName

MPLS L3VPN name.

This field displays nothing for a public network or N/A (ASBR) for an ASBR LSP.

Fec

Forwarding equivalence class, in either of the following forms:

·     IP address/mask—Classifies packets to FECs based on destination addresses.

·     IP address—Classifies packets to FECs based on the addresses of the next hops.

Tunnel ID

Tunnel ID (the public network).

LsrType

Role of the LSR for the LSP: Ingress, Transit, or Egress.

Outgoing Tunnel ID

Tunnel ID (inter-AS VPN).

Label Operation

Label operation performed: POP, PUSH, or SWAP.

 

display mpls lsp bfd ipv4

Syntax

display mpls lsp bfd [ ipv4 destination-address mask-length ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

destination-address mask-length: Displays the BFD information for the LSPs for the specified FEC. destination-address is the destination IP address of the FEC. mask-length is the mask length of the FEC destination address, in the range of 0 to 32.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display mpls lsp bfd ipv4 to display the BFD information for LSPs.

Examples

# Display the BFD check information for the LSPs for destination 1.1.1.9/32.

<Sysname> display mpls lsp bfd ipv4 1.1.1.9 32

 

               MPLS BFD Session(s) Information

-----------------------------------------------------------------------------

 FEC            : 1.1.1.9/32        Type           : LSP

 Local Discr    : 1                 Remote Discr   : 1

 Tunnel ID      : 0xd2007           NextHop        : 11.1.1.2

 Session State  : Up                Source IP      : 1.1.1.1

 Session Role   : Active

 

 FEC            : 1.1.1.9/32        Type           : LSP

 Local Discr    : 2                 Remote Discr   : 2

 Tunnel ID      : 0xd2008           NextHop        : 12.1.1.2

 Session State  : Up                Source IP      : 1.1.1.1

 Session Role   : Active

 

 Total Session Num: 2

Table 14 Command output

Field

Description

Type

Type of the tunnel detected by BFD: LSP or TE Tunnel.

Local Discr

Local discriminator value of the BFD session.

Remote Discr

Remote discriminator value of the BFD session.

Session State

BFD session state:

·     Init—The BFD session is in the initialization state.

·     Up—The BFD session is up.

·     Down—The BFD session is down.

Source IP

IP address of the active end (ingress LSR) of the BFD session.

Session Role

Role of the current LSR in the session, Active or Passive.

·     Active—Initiator of the BFD session.

·     Passive—Responder of the BFD session.

 

display mpls lsp statistics

Syntax

display mpls lsp statistics [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display mpls lsp statistics to display LSP statistics.

Examples

# Display LSP statistics.

<Sysname> display mpls lsp statistics

Lsp Type       Total     Ingress   Transit   Egress

STATIC LSP     1         1         0         0

STATIC CRLSP   1         1         0         0

LDP LSP        0         0         0         0

CRLDP CRLSP    0         0         0         0

RSVP CRLSP     1         1         0         0

BGP LSP        0         0         0         0

ASBR LSP       0         0         0         0

BGP IPV6 LSP   0         0         0         0

---------------------------------------------------------------

LSP            1         1         0         0

CRLSP          2         2         0         0

Table 15 Command output

Field

Description

Ingress

Number of LSPs taking the current switch as ingress.

Transit

Number of LSPs taking the current switch as transit LSR.

Egress

Number of LSPs taking the current switch as egress.

 

display mpls nhlfe

Syntax

In standalone mode:

display mpls nhlfe [ token ] [ verbose ] [ slot slot-number ] [ include text | { | { begin | exclude | include } regular-expression } ]

In IRF mode:

display mpls nhlfe [ token ] [ verbose ] [ chassis chassis-number slot slot-number ] [ include text | { | { begin | exclude | include } regular-expression } ]

View

Any view

Default level

1: Monitor level

Parameters

token: NHLFE entry index in the range of 0 to 65535.

verbose: Displays the detailed information.

slot slot-number: Displays the NHLFE entries on a card. The slot-number argument represents the number of the slot that holds the card. Use this option when your switch is operating in standalone mode.

chassis chassis-number slot slot-number: Displays the NHLFE entries of a card on an IRF member switch. The chassis-number argument represents the ID of the IRF member switch, and the slot-number argument represents the number of the slot that holds the card. You can display the chassis number and slot number with the display device command. Use this option when your switch is operating in IRF mode.

include text: Displays NHLFE entries including a specific string.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display mpls nhlfe to display information about NHLFE entries.

With the token argument not specified, the command displays information about all NHLFE entries.

Examples

# Display information about a specific NHLFE entry.

<Sysname> display mpls nhlfe 2

Out-Interface       Token      Oper     Nexthop         Deep Stack

----------------------------------------------------------------------

Vlan1000            2          PUSH     88.1.1.2        1    1024

# Display information about all NHLFE entries.

<Sysname> display mpls nhlfe

Total NHLFE Entry: 1

 

Out-Interface       Token      Oper     Nexthop         Deep Stack

----------------------------------------------------------------------

Vlan1000            2          PUSH     88.1.1.2        1    1024

Table 16 Command output

Field

Description

Out-Interface

Outgoing interface.

Token

NHLFE entry index.

Oper

Label operation type: PUSH, SWAP, or GO.

Deep

Depth of the MPLS label stack.

Stack

MPLS label.

 

display mpls nhlfe reflist

Syntax

In standalone mode:

display mpls nhlfe reflist token [ slot slot-number ] [ include text | { | { begin | exclude | include } regular-expression } ]

In IRF mode:

display mpls nhlfe reflist token [ chassis chassis-number slot slot-number ] [ include text | { | { begin | exclude | include } regular-expression } ]

View

Any view

Default level

1: Monitor level

Parameters

token: NHLFE entry index in the range of 0 to 65535.

slot slot-number: Displays the usage information for the NHLFE entries on a card. The slot-number argument represents the number of the slot that holds the card. Use this option when your switch is operating in standalone mode.

chassis chassis-number slot slot-number: Displays the usage information for the NHLFE entries of a card on an IRF member switch. The chassis-number argument represents the ID of the IRF member switch, and the slot-number argument represents the number of the slot that holds the card. You can display the chassis number and slot number with the display device command. Use this option when your switch is operating in IRF mode.

include text: Displays the usage information for the NHLFE entries that contains a specific string. text is the specified string.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display mpls nhlfe reflist to display the usage information for the NHLFE entries.

Examples

# Display the usage information for the specified NHLFE entry.

<Sysname> display mpls nhlfe reflist 11

Total reference node: 8

No.     Type            Key-Info

-------------------------------------------------------------

1       ILM             1023(Inlabel)         Vlan1000(In-If)

2       FTN             1(VPN ID)             2.2.2.2/32

3       LPW             ----(SRV ID)          Vlan1001(Private-If)

4       VPW             1(VSI ID)             1(Link ID)

5       FRR             11(Token)             ----

6       INN             11(Token)             ----

7       OAM             1(Index)              ----

8       BFD             1(BFD Discr)          ----

Table 17 Command output

Field

Description

Total reference node

Total number of associated nodes.

Type

Type of the associated node.

Key-Info

Key parameters of the entry.

 

 

NOTE:

An asterisk (*) before the number of a node entry means that the node is invalid and is to be deleted.

 

Table 18 Types of associated nodes and their key parameters

Node type

Description

Key parameter

FTN

FEC to NHLFE mapping.

·     VPN ID—VPN instance ID

·     Address prefix/mask

ILM

Incoming label mapping.

·     In-Label—Incoming label

·     In-If—Incoming interface

LPW

Sending entries of VPWS PW.

·     SRV ID—Service instance ID

·     Private-If—Private network interface

VPW

Sending entries of VPLS PW.

·     VSI ID—Virtual switching instance ID

·     Link ID

FRR

Primary NHLFE of FRR.

Token: Token of the primary NHLFE

INN

Inner-layer NHLFE of layered LSP.

Token: Token of the inner NHLFE

OAM

Check through OAM the connectivity of the CR-LSP corresponding to the NHLFE.

Index: OAM instance index

BFD

Check the connectivity of the NHLFE through BFD.

BFD Discr: Local discriminator value of the BFD session

 

display mpls route-state

Syntax

display mpls route-state [ vpn-instance vpn-instance-name ] [ dest-addr mask-length ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

vpn-instance vpn-instance-name: Displays the LSP information for the routes on the specified VPN. vpn-instance-name is the instance name of an MPLS L3VPN, a case-sensitive string of 1 to 31 characters.

dest-addr mask-length: Displays the LSP information for routes to a destination address. dest-addr is the destination IP address. The mask length is in the range of 0 to 32.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display mpls route-state to display the LSP information for routes.

With no VPN instance specified, the command displays the LSP information for the public routes. With no destination address and mask specified, the command displays the LSP information for all routes.

Examples

# Display LSP-related information for all routes.

<Sysname> display mpls route-state

DEST/MASK   NEXT-HOP    OUT-INTERFACE  STATE LSP-COUNT  VPN-INDEX

-----------------------------------------------------------------

1.1.1.1/32  10.0.0.1    Vlan1000       ESTA  1           0

Table 19 Command output

Field

Description

LSP-COUNT

Number of LSPs established based on this route.

VPN-INDEX

Index number of the VPN instance.

 

display mpls static-lsp

Syntax

display mpls static-lsp [ lsp-name lsp-name ] [ { exclude | include } dest-addr mask-length ] [ verbose ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

lsp-name lsp-name: Displays information about the specified LSP. The LSP name is a string of 1 to 15 characters.

exclude: Displays information about the LSPs other than the one for the given FEC.

include: Displays information about the LSP for the given FEC.

dest-addr mask-length: Specifies a FEC by its destination address and mask length. The mask length is in the range of 0 to 32.

verbose: Displays detailed information.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

·     begin: Displays the first line that matches the specified regular expression and all lines that follow.

·     exclude: Displays all lines that do not match the specified regular expression.

·     include: Displays all lines that match the specified regular expression.

·     regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display mpls static-lsp to display information about a specific static LSP or all static LSPs.

Related commands: display mpls lsp and display mpls statistics lsp.

Examples

# Display brief information about all static LSPs.

<Sysname> display mpls static-lsp

total statics-lsp : 1

Name       FEC               I/O Label  I/O If                 State

lsp1       3.3.3.9/32        NULL/100   -/Vlan1000             Up

# Display detailed information about all static LSPs.

<Sysname> display mpls static-lsp verbose

No             : 1

LSP-Name       : lsp1

LSR-Type       : Ingress

FEC            : 3.3.3.9/32

In-Label       : NULL

Out-Label      : 100

In-Interface   : -

Out-Interface  : Vlan1000

NextHop        : 30.1.1.2

Static-Lsp Type: IPTN

Lsp Status     : Up

Table 20 Command output

Field

Description

LSR-Type

Role of the LSR for the LSP: Ingress, Egress, or Transit.

Static-Lsp Type

Type of the static LSP.

 

display mpls statistics interface

Syntax

display mpls statistics interface { interface-type interface-number | all } [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

interface-type interface-number: Displays MPLS statistics for the specified interface.

all: Displays MPLS statistics for all interfaces.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display mpls statistics interface to display MPLS statistics for one or all interfaces.

You must set the statistics reading interval by using the statistics interval command before viewing MPLS statistics. By default, the interval is 0 and the system does not read MPLS statistics, and the statistics are all 0.

Related commands: statistics interval.

Examples

# Display MPLS statistics for all interfaces.

<Sysname> display mpls statistics interface all

  Statistics for Interface IN :

  Incoming Interface Vlan-interface1000

       Octets                  : 0

       Packets                 : 0

       Errors                  : 0

       Disables                : 0

       Failed Label Lookup     : 0

       Start Time              : 2008/04/28  10:23:55

       End Time                : 2008/04/28  10:23:55

  Statistics for Interface OUT :

  Outgoing Interface Vlan-interface1000

       Octets                  : 0

       Packets                 : 0

       Errors                  : 0

       Disables                : 0

       Start Time              : 2008/04/28  10:23:55

       End Time                : 2008/04/28  10:23:55

  Statistics for Interface IN :

  Incoming Interface Vlan-interface1001

       Octets                  : 0

       Packets                 : 0

       Errors                  : 0

       Disables                : 0

       Failed Label Lookup     : 0

       Start Time              : 2008/04/28  10:24:04

       End Time                : 2008/04/28  10:24:04

  Statistics for Interface OUT :

  Outgoing Interface Vlan-interface1001

       Octets                  : 0

       Packets                 : 0

       Errors                  : 0

       Disables                : 0

       Start Time              : 2008/04/28  10:24:04

       End Time                : 2008/04/28  10:24:04

  Statistics for Interface IN :

  Incoming Interface Vlan-interface1002

       Octets                  : 0

       Packets                 : 0

       Errors                  : 0

       Disables                : 0

       Failed Label Lookup     : 0

       Start Time              : 2008/04/28  10:24:10

       End Time                : 2008/04/28  10:24:10

  Statistics for Interface OUT :

  Outgoing Interface Vlan-interface1002

       Octets                  : 0

       Packets                 : 0

       Errors                  : 0

       Disables                : 0

       Start Time              : 2008/04/28  10:24:10

       End Time                : 2008/04/28  10:24:10

Table 21 Command output

Field

Description

Statistics for Interface IN

Statistics for an interface in the incoming direction.

Statistics for Interface OUT

Statistics for an interface in the outgoing direction.

Octets

Number of bytes processed.

Packets

Number of packets processed.

Errors

Number of errors.

Disables

Number of packets dropped by the incoming interface/outgoing interface.

Start Time

Start time of the statistics.

End Time

End time of the statistics.

 

display mpls statistics lsp

Syntax

display mpls statistics lsp { index | all | name lsp-name } [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

index: Specifies an LSP by the index of the LSP. The LSP index is in the range of 0 to 4294967295.

all: Specifies all LSPs.

name lsp-name: Specifies an LSP by its name, a string of 1 to 15 characters.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display mpls statistics lsp to display MPLS statistics for all LSPs or the LSP with a specific index or name.

To use this command to view MPLS statistics, you must first set the statistics reading interval with the statistics interval command. Otherwise, the statistics are all 0.

Related commands: statistics interval.

Examples

# Display MPLS statistics for all LSPs.

<Sysname> display mpls statistics lsp all

Statistics for Lsp IN : LSP Name /LSP Index :  DynamicLsp/9217

   InSegment                         

       Octets                : 0

       Packets               : 0

       Errors                : 0

       Down                  : 0

       Start Time            : 2008/05/20  15:52:30

       End Time              : 2008/05/20  15:52:30

  Statistics for Lsp OUT : LSP Name /LSP Index :  DynamicLsp/9217

   OutSegment            

       Octets                : 0

       Packets               : 0

       Errors                : 0

       Down                  : 0

       Start Time            : 0000/00/00  00:00:00

       End Time              : 0000/00/00  00:00:00

  Statistics for Lsp IN : LSP Name /LSP Index :  DynamicLsp/9218

   InSegment                   

       Octets                : 0

       Packets               : 0

       Errors                : 0

       Down                  : 0

       Start Time            : 0000/00/00  00:00:00

       End Time              : 0000/00/00  00:00:00

  Statistics for Lsp OUT : LSP Name /LSP Index :  DynamicLsp/9218

   OutSegment                           

       Octets                : 0

       Packets               : 0

       Errors                : 0

       Down                  : 0

       Start Time            : 2008/05/20  15:52:30

       End Time              : 2008/05/20  15:52:30

Table 22 Command output

Field

Description

Statistics for Lsp IN

Statistics for LSP in the incoming direction.

Statistics for Lsp OUT

Statistics for LSP in the outgoing direction.

InSegment

Information about the LSP in the incoming direction.

OutSegment

Information about the LSP in the outgoing direction.

Octets

Bytes of data processed.

Packets

Number of packets processed.

Errors

Number of errors.

Down

Number of packets discarded.

Start Time

Start time of the statistics.

End Time

End time of the statistics.

 

 

NOTE:

·     On an ingress, no statistics are collected in the incoming direction and the start time and end time in the InSegment part of the command output are both 0.

·     On an egress, no statistics are collected in the outgoing direction and the start time and end time in the OutSegment part of the command output are both 0.

 

du-readvertise

Syntax

du-readvertise

undo du-readvertise

View

MPLS LDP view, MPLS LDP VPN instance view

Default level

2: System level

Parameters

None

Description

Use du-readvertise to enable label re-advertisement for DU mode.

Use undo du-readvertise to disable the function.

By default, label re-advertisement is enabled in DU mode.

Examples

# Enable DU mode label re-advertisement for the public network LDP instance.

<Sysname> system-view

[Sysname] mpls ldp

[Sysname-mpls-ldp] du-readvertise

# Enable DU mode label re-advertisement for LDP instance vpn1.

<Sysname> system-view

[Sysname] mpls ldp vpn-instance vpn1

[Sysname-mpls-ldp-vpn-instance-vpn1] du-readvertise

du-readvertise timer

Syntax

du-readvertise timer value

undo du-readvertise timer

View

MPLS LDP view, MPLS LDP VPN instance view

Default level

2: System level

Parameters

value: Label re-advertisement interval in the range of 1 to 65535 seconds.

Description

Use du-readvertise timer to set the interval for label re-advertisement in DU mode.

Use undo du-readvertise timer to restore the default.

By default, the interval for label re-advertisement in DU mode is 30 seconds.

Examples

# Set the DU mode label re-advertisement interval to 100 seconds for the public network LDP instance.

<Sysname> system-view

[Sysname] mpls ldp

[Sysname-mpls-ldp] du-readvertise timer 100

# Set the DU mode label re-advertisement interval to 100 seconds for LDP instance vpn1.

<Sysname> system-view

[Sysname] mpls ldp vpn-instance vpn1

[Sysname-mpls-ldp-vpn-instance-vpn1] du-readvertise timer 100

graceful-restart (MPLS LDP view)

Syntax

graceful-restart

undo graceful-restart

View

MPLS LDP view

Default level

2: System level

Parameters

None

Description

Use graceful-restart to enable MPLS LDP Graceful Restart (GR).

Use undo graceful-restart to disable MPLS LDP GR.

By default, MPLS LDP GR is disabled.

Enabling or disabling GR will cause all LDP sessions and all LSPs based on the sessions to be removed and then reestablished.

Examples

# Enable MPLS LDP GR.

<Sysname> system-view

[Sysname] mpls lsr-id 1.1.1.1

[Sysname] mpls

[Sysname-mpls] quit

[Sysname] mpls ldp

[Sysname-mpls-ldp] graceful-restart

graceful-restart mpls ldp

Syntax

graceful-restart mpls ldp

View

User view

Default level

1: Monitor level

Parameters

None

Description

Use graceful-restart mpls ldp to restart MPLS LDP gracefully.

This command is only used to test MPLS LDP GR function. It does not perform active/standby switchover. Do not use it in other cases.

The MPLS LDP GR capability is required for this command to take effect.

Related commands: graceful-restart (MPLS LDP view).

Examples

# Restart MPLS LDP gracefully.

<Sysname> graceful-restart mpls ldp

graceful-restart timer neighbor-liveness

Syntax

graceful-restart timer neighbor-liveness timer

undo graceful-restart timer neighbor-liveness

View

MPLS LDP view

Default level

2: System level

Parameters

timer: LDP neighbor liveness time in the range of 60 to 300 seconds.

Description

Use graceful-restart timer neighbor-liveness to set the LDP neighbor liveness time.

Use undo graceful-restart timer neighbor-liveness to restore the default.

By default, the LDP neighbor liveness time is 120 seconds.

Modifying the LDP neighbor liveness time will cause all LDP sessions and all LSPs based on the sessions to be removed and then reestablished.

For LDP sessions with MD5 authentication configured, give the LDP neighbor liveness time a greater value so that the TCP connection can be reestablished.

Examples

# Set the LDP neighbor liveness time to 100 seconds.

<Sysname> system-view

[Sysname] mpls ldp

[Sysname-mpls-ldp] graceful-restart timer neighbor-liveness 100

graceful-restart timer reconnect

Syntax

graceful-restart timer reconnect timer

undo graceful-restart timer reconnect

View

MPLS LDP view

Default level

2: System level

Parameters

timer: Fault Tolerance (FT) reconnect time in the range of 60 to 300 seconds.

Description

Use graceful-restart timer reconnect to set the FT reconnect time.

Use undo graceful-restart timer reconnect to restore the default.

By default, the FT reconnect time is 300 seconds.

The FT reconnect time refers to the maximum time that the stale flag will be preserved by the LSR after the TCP connection fails.

Modifying the FT reconnect time will cause all LDP sessions and all LSPs based on the sessions to be removed and then reestablished.

Examples

# Set the FT reconnect time to 100 seconds.

<Sysname> system-view

[Sysname] mpls ldp

[Sysname-mpls-ldp] graceful-restart timer reconnect 100

graceful-restart timer recovery

Syntax

graceful-restart timer recovery timer

undo graceful-restart timer recovery

View

MPLS LDP view

Default level

2: System level

Parameters

timer: LDP recovery time in the range of 3 to 300 seconds.

Description

Use graceful-restart timer recovery to set the LDP recovery time.

Use undo graceful-restart timer recovery to restore the default.

By default, the LDP recovery time is 300 seconds.

The LDP recovery time refers to the maximum time that the stale state label will be kept by the LSR after a TCP reconnection.

Modifying the LDP recovery time will cause all LDP sessions and all LSPs based on the sessions to be removed and then reestablished.

Examples

# Set the LDP recovery time to 45 seconds.

<Sysname> system-view

[Sysname] mpls ldp

[Sysname-mpls-ldp] graceful-restart timer recovery 45

hops-count

Syntax

hops-count hop-number

undo hops-count

View

MPLS LDP view, MPLS LDP VPN instance view

Default level

2: System level

Parameters

hop-number: Hop count in the range of 1 to 32.

Description

Use hops-count to set the maximum hop count for loop detection.

Use undo hops-count to restore the default.

By default, the maximum hop count for loop detection is 32.

Configure this command before enabling LDP on any interface.

The maximum hop count dictates how fast LDP detects a loop. Adjust this argument as required.

Related commands: loop-detect and path-vectors.

Examples

# Set the maximum hop count for loop detection to 25 for the public network LDP instance.

<Sysname> system-view

[Sysname] mpls ldp

[Sysname-mpls-ldp] hops-count 25

# Set the maximum hop count for loop detection to 25 for LDP instance vpn1.

<Sysname> system-view

[Sysname] mpls ldp vpn-instance vpn1

[Sysname-mpls-ldp-vpn-instance-vpn1] hops-count 25

label advertise

Syntax

label advertise { explicit-null | implicit-null | non-null }

undo label advertise

View

MPLS view

Default level

2: System level

Parameters

explicit-null: Specifies the egress to distribute an explicit null label of 0 to the penultimate hop.

implicit-null: Specifies the egress to distribute an implicit null label of 3 to the penultimate hop.

non-null: Specifies the egress to distribute a normal label of not less than 1024 to the penultimate hop. The switch (as the egress) does not support this keyword.

Description

Use label advertise to specify what type of label the egress should distribute to the penultimate hop.

Use undo label advertise to restore the default.

By default, the egress distributes an implicit null label to the penultimate hop.

The type of label for an egress to distribute depends on whether the penultimate hop supports PHP. If the penultimate hop supports PHP, you can configure the egress to distribute the explicit null or implicit null label to the penultimate hop. If the penultimate hop does not support PHP, configure the egress to distribute a normal label.

If LDP sessions have been established, use the reset mpls ldp command to reset the sessions to bring the label advertise command into effect.

Examples

# Configure the egress to distribute an explicit null label to the penultimate hop.

<Sysname> system-view

[Sysname] mpls

[Sysname-mpls] label advertise explicit-null

label-distribution

Syntax

label-distribution { independent | ordered }

undo label-distribution

View

MPLS LDP view, MPLS LDP VPN instance view

Default level

2: System level

Parameters

independent: Specifies the independent label distribution control mode. In this mode, an LSR can advertise label bindings to its connected LSRs at anytime.

ordered: Specifies the ordered label distribution control mode. In this mode, an LSR advertises to its upstream a label binding for a FEC only when it receives a label binding for the FEC from its downstream or when it is the egress of the FEC.

Description

Use label-distribution to specify the label distribution control mode.

Use undo label-distribution to restore the default.

The default mode is ordered.

You must use the reset mpls ldp command to reset LDP sessions so that this command takes effect for those sessions.

Examples

# Set the label distribution control mode to independent for the public network LDP instance.

<Sysname> system-view

[Sysname] mpls ldp

[Sysname-mpls-ldp] label-distribution independent

# Set the label distribution control mode to independent for LDP instance vpn1.

<Sysname> system-view

[Sysname] mpls ldp vpn-instance vpn1

[Sysname-mpls-ldp-vpn-instance-vpn1] label-distribution independent

loop-detect

Syntax

loop-detect

undo loop-detect

View

MPLS LDP view, MPLS LDP VPN instance view

Default level

2: System level

Parameters

None

Description

Use loop-detect to enable loop detection.

Use undo loop-detect to disable loop detection.

By default, loop detection is disabled.

Enable loop detection before enabling LDP on any interface.

Related commands: hops-count and path-vectors.

Examples

# Enable loop detection for the public network LDP instance.

<Sysname> system-view

[Sysname] mpls ldp

[Sysname-mpls-ldp] loop-detect

# Enable loop detection for LDP instance vpn1.

<Sysname> system-view

[Sysname] mpls ldp vpn-instance vpn1

[Sysname-mpls-ldp-vpn-instance-vpn1] loop-detect

lsp-trigger

Syntax

lsp-trigger [ vpn-instance vpn-instance-name ] { all | ip-prefix prefix-name }

undo lsp-trigger [ vpn-instance vpn-instance-name ] { all | ip-prefix prefix-name }

View

MPLS view

Default level

2: System level

Parameters

vpn-instance vpn-instance-name: Specifies an MPLS L3VPN by its instance name, a case-sensitive string of 1 to 31 characters.

all: Specifies that all routing entries can trigger establishment of LDP LSPs.

ip-prefix prefix-name: Specifies an IP prefix list to filter routing entries, so that static routes and IGP routes that denied by the IP prefix list cannot trigger LSP establishment. prefix-name indicates the name of the IP prefix list, a string of 1 to 19 characters.

Description

Use lsp-trigger to configure the LSP establishment triggering policy.

Use undo lsp-trigger to restore the default.

By default, only host routes with 32-bit masks can trigger establishment of LDP LSPs.

An IP prefix list affects only static routes and IGP routes.

For an LSP to be established, an exactly matching routing entry must exist on the LSR. With loopback addresses using 32-bit masks, only exactly matching host routing entries can trigger LDP to establish LSPs.

If the vpn-instance vpn-instance-name option is specified, the command configures an LSP establishment triggering policy for the specified VPN. Otherwise, the command configures an LSP establishment triggering policy for the public network.

For information about IP prefix list, see Layer 3—IP Routing Configuration Guide.

Examples

# Specify that all routing entries can trigger establishment of LDP LSPs.

<Sysname> system-view

[Sysname] mpls

[Sysname-mpls] lsp-trigger all

lsr-id

Syntax

lsr-id lsr-id

undo lsr-id

View

MPLS LDP view, MPLS LDP VPN instance view

Default level

2: System level

Parameters

lsr-id: LDP LSR ID.

Description

Use lsr-id to configure an LDP LSR ID.

Use undo lsr-id to remove a configured LDP LSR ID and all LDP sessions.

By default, the LDP LSR ID takes the value of the MPLS LSR ID.

Examples

# Configure the LDP LSR ID of the public network LDP instance as 2.2.2.3.

<Sysname> system-view

[Sysname] mpls ldp

[Sysname-mpls-ldp] lsr-id 2.2.2.3

# Configure the LDP LSR ID of LDP instance vpn1 as 4.2.2.3.

<Sysname> system-view

[Sysname] mpls ldp vpn-instance vpn1

[Sysname-mpls-ldp-vpn-instance-vpn1] lsr-id 4.2.2.3

md5-password

Syntax

md5-password { cipher | plain } peer-lsr-id password

undo md5-password peer-lsr-id

View

MPLS LDP view, MPLS LDP VPN instance view

Default level

2: System level

Parameters

cipher: Specifies a ciphertext password. This password will be displayed in cipher text.

plain: Specifies a plaintext password. This password will be displayed in cipher text.

peer-lsr-id: MPLS LSR ID of the peer.

password: Password string, case-sensitive. If you specify the plain keyword, it must be a string of 1 to 16 characters in plain text. If you specify the cipher keyword, it must be a ciphertext string of 1 to 53 characters.

Description

Use md5-password to enable LDP MD5 authentication and set the password.

Use undo md5-password to restore the default.

By default, LDP MD5 authentication is disabled.

The password configured locally must be the same as that configured on the peer.

Changing the password will cause the sessions and all LSPs based on the sessions to be removed.

This command takes effect only after MPLS LDP is enabled in the corresponding view.

Examples

# Enable LDP MD5 authentication for peer 3.3.3.3 in the public network, and configure a plaintext password of pass.

<Sysname> system-view

[Sysname] mpls ldp

[Sysname-mpls-ldp] md5-password plain 3.3.3.3 pass

# Enable LDP MD5 authentication for peer 3.3.3.3 in VPN instance vpn1, and configure a plaintext password of pass.

<Sysname> system-view

[Sysname] mpls ldp vpn-instance vpn1

[Sysname-mpls-ldp-vpn-instance-vpn1] md5-password plain 3.3.3.3 pass

mpls

Syntax

mpls

undo mpls

View

System view, interface view

Default level

2: System level

Parameters

None

Description

Use mpls in system view to enable MPLS globally and enter MPLS view.

Use undo mpls in system view to disable MPLS globally.

Use mpls in interface view to enable MPLS for the interface.

Use undo mpls in interface view to disable MPLS for the interface.

By default, MPLS capability is disabled globally and on all interfaces.

Configure the MPLS LSR ID before enabling MPLS capability. Enable MPLS globally before enabling it for an interface.

Related commands: mpls lsr-id.

Examples

# Enable MPLS globally.

<Sysname> system-view

[Sysname] mpls lsr-id 1.1.1.1

[Sysname] mpls

[Sysname-mpls] quit

# Enable MPLS for interface VLAN-interface 1.

<Sysname> system-view

[Sysname] interface vlan-interface 1

[Sysname-Vlan-interface1] mpls

mpls ldp (interface view)

Syntax

mpls ldp

undo mpls ldp

View

Interface view

Default level

2: System level

Parameters

None

Description

Use mpls ldp to enable LDP on an interface.

Use undo mpls ldp to disable LDP on an interface.

By default, LDP is disabled on an interface.

After you enable LDP on an interface, the interface will periodically send Hello messages.

Before enabling LDP in interface view, be sure to complete the following tasks:

·     Use the mpls lsr-id command in system view to set the node LSR-ID.

·     Use the mpls command in system view to enable MPLS.

·     Use the mpls ldp command in system view to enable MPLS LDP globally.

·     Use the mpls command in interface view to enable MPLS for the interface.

If the interface is bound to a VPN instance, use the mpls ldp vpn-instance command to enable LDP for the VPN instance. For more information about the mpls ldp vpn-instance command, see "MPLS L3VPN commands."

Examples

# Enable LDP for interface VLAN-interface 1.

<Sysname> system-view

[Sysname] interface vlan-interface 1

[Sysname-Vlan-interface1] mpls

[Sysname-Vlan-interface1] mpls ldp

mpls ldp (system view)

Syntax

mpls ldp

undo mpls ldp

View

System view

Default level

2: System level

Parameters

None

Description

Use mpls ldp to enable LDP globally and enter MPLS LDP view.

Use undo mpls ldp to disable LDP globally and remove all LDP instances.

By default, MPLS LDP is disabled.

To configure the mpls ldp command, first configure the MPLS LSR ID and enable MPLS globally for the LSR.

Examples

# Enable LDP globally and enter MPLS LDP view.

<Sysname> system-view

[Sysname] mpls lsr-id 1.1.1.1

[Sysname] mpls

[Sysname-mpls] quit

[Sysname] mpls ldp

[Sysname-mpls-ldp]

mpls ldp remote-peer

Syntax

mpls ldp remote-peer remote-peer-name

undo mpls ldp remote-peer remote-peer-name

View

System view

Default level

2: System level

Parameters

remote-peer-name: Name of the remote peer, a case-insensitive string of 1 to 32 characters.

Description

Use mpls ldp remote-peer to create a remote peer entity and enter MPLS LDP remote peer view.

Use undo mpls ldp remote-peer to remove a remote peer entity.

Related commands: remote-ip.

Examples

# Create a remote peer entity named BJI and enter MPLS LDP remote peer view.

<Sysname> system-view

[Sysname] mpls ldp remote-peer BJI

[Sysname-mpls-ldp-remote-bji]

mpls ldp timer hello-hold

Syntax

mpls ldp timer hello-hold value

undo mpls ldp timer hello-hold

View

Interface view, MPLS LDP remote peer view

Default level

2: System level

Parameters

value: Value of the Hello timer, in the range of 1 to 65535, in seconds.

Description

Use mpls ldp timer hello-hold to set a hello timer.

Use undo mpls ldp timer hello-hold to restore the default.

In interface view, you set the link hello timer; in MPLS LDP remote peer view, you set the targeted hello timer.

By default, the value of the link hello timer is 15 seconds, and that of the targeted hello timer is 45 seconds.

Changing the values of the hello timers does not affect any existing session.

Related commands: mpls ldp (interface view) and mpls ldp (system view).

Examples

# Set the link hello timer to 100 seconds on interface VLAN-interface 1.

<Sysname> system-view

[Sysname] interface vlan-interface 1

[Sysname-Vlan-interface1] mpls

[Sysname-Vlan-interface1] mpls ldp

[Sysname-Vlan-interface1] mpls ldp timer hello-hold 100

# Set the targeted hello timer to 1000 seconds.

<Sysname> system-view

[Sysname] mpls ldp remote-peer BJI

[Sysname-mpls-ldp-remote-bji] remote-ip 3.3.3.3

[Sysname-mpls-ldp-remote-bji] mpls ldp timer hello-hold 1000

mpls ldp timer keepalive-hold

Syntax

mpls ldp timer keepalive-hold value

undo mpls ldp timer keepalive-hold

View

Interface view, MPLS LDP remote peer view

Default level

2: System level

Parameters

value: Value of the Keepalive timer, in the range of 1 to 65535, in seconds.

Description

Use mpls ldp timer keepalive-hold to set a keepalive timer.

Use undo mpls ldp timer keepalive-hold to restore the default.

In interface view, you set the link keepalive timer; in MPLS LDP remote peer view, you set the targeted keepalive timer.

By default, both the link keepalive timer and targeted keepalive timer are 45 seconds.

If more than one LDP-enabled link exists between two LSRs (for example, when the two LSRs are connected through multiple interfaces), the keepalive timers of all the links must be identical for the sessions to be stable.

Changing the values of the keepalive timers will cause all LDP sessions and the LSPs based on the sessions to be removed and then reestablished.

Examples

# Set the link keepalive timer to 50 seconds on interface VLAN-interface 1.

<Sysname> system-view

[Sysname] interface vlan-interface 1

[Sysname-Vlan-interface1] mpls

[Sysname-Vlan-interface1] mpls ldp

[Sysname-Vlan-interface1] mpls ldp timer keepalive-hold 50

# Set the targeted keepalive timer to 1000 seconds.

<Sysname> system-view

[Sysname] mpls ldp remote-peer BJI

[Sysname-mpls-ldp-remote-bji] remote-ip 3.3.3.3

[Sysname-mpls-ldp-remote-bji] mpls ldp timer keepalive-hold 1000

mpls ldp transport-address

Syntax

In interface view:

mpls ldp transport-address { ip-address | interface }

undo mpls ldp transport-address

In MPLS LDP remote peer view:

mpls ldp transport-address ip-address

undo mpls ldp transport-address

View

Interface view, MPLS LDP remote peer view

Default level

2: System level

Parameters

ip-address: IP address for LDP to use as the LDP transport address.

interface: Specifies that LDP uses the IP address of the current interface as the LDP transport address.

Description

Use mpls ldp transport-address to configure an LDP transport address.

Use undo mpls ldp transport-address to restore the default.

By default, a transport address takes the value of the MPLS LSR ID.

In interface view, you configure the link Hello transport address. In MPLS LDP remote peer view, you configure the targeted Hello transport address.

Examples

# On interface VLAN-interface 1, configure the link Hello transport address as the IP address of the current interface.

<Sysname> system-view

[Sysname] interface vlan-interface 1

[Sysname-Vlan-interface1] mpls

[Sysname-Vlan-interface1] mpls ldp

[Sysname-Vlan-interface1] mpls ldp transport-address interface

# Configure the targeted Hello transport address to be 10.1.1.1.

<Sysname> system-view

[Sysname] mpls ldp remote-peer BJI

[Sysname-mpls-ldp-remote-bji] remote-ip 3.3.3.3

[Sysname-mpls-ldp-remote-bji] mpls ldp transport-address 10.1.1.1

mpls lspv

Syntax

mpls lspv

undo mpls lspv

View

System view

Default level

2: System level

Parameters

None

Description

Use mpls lspv to enable the LSP verification function and enter MPLS LSPV view.

Use undo mpls lspv to disable the LSP verification function.

By default, LSP verification is disabled.

Examples

# Enable LSP verification and enter MPLS LSPV view.

<Sysname> system-view

[Sysname] mpls lspv

[Sysname-mpls-lspv]

mpls lsr-id

Syntax

mpls lsr-id lsr-id

undo mpls lsr-id

View

System view

Default level

2: System level

Parameters

lsr-id: ID for identifying the LSR, in dotted decimal notation.

Description

Use mpls lsr-id to configure the ID of an LSR.

Use undo mpls lsr-id to remove the ID of an LSR.

By default, no LSR ID is configured.

Configure the LSR ID of an LSR before configuring any other MPLS commands.

H3C recommends that you use the address of a loopback interface on the LSR as the ID.

Related commands: display mpls interface.

Examples

# Set the LSR ID to 3.3.3.3.

<Sysname> system-view

[Sysname] mpls lsr-id 3.3.3.3

mpls mtu

Syntax

mpls mtu value

undo mpls mtu

View

Interface view

Default level

2: System level

Parameters

value: MPLS MTU of the interface, in the range of 46 to 65535.

Description

Use mpls mtu to specify the MPLS MTU of an interface.

Use undo mpls mtu to restore the default.

By default, the MPLS MTU of an interface is not configured. In this case, MPLS packets will be fragmented based on the MTU of the interface, and the length of a fragment will not include that of the MPLS label. Thus, after an MPLS label is inserted into a fragment, the length of the MPLS fragment might be larger than the interface MTU.

The commands are effective only when MPLS is enabled on the interface.

If the MPLS MTU is larger than the interface MTU, data forwarding might fail.

The commands do not apply to TE tunnel interfaces.

Examples

# Configure the MPLS MTU of interface VLAN-interface 2 as 1000.

<Sysname> system-view

[Sysname] mpls

[Sysname-mpls] quit

[Sysname] interface vlan-interface 2

[Sysname-Vlan-interface2] mpls

[Sysname-Vlan-interface2] mpls mtu 1000

path-vectors

Syntax

path-vectors pv-number

undo path-vectors

View

MPLS LDP view, MPLS LDP VPN instance view

Default level

2: System level

Parameters

pv-number: Path vector length in the range of 1 to 32.

Description

Use path-vectors to specify the path vector length.

Use undo path-vectors to restore the default.

By default, the path vector length is 32; that is, the number of LSR IDs in a path vector cannot exceed 32.

This command must be configured before you enable LDP on any interface.

Related commands: hops-count and loop-detect.

Examples

# Set the maximum hops of the path vector to 3 for the public network LDP instance.

<Sysname> system-view

[Sysname] mpls ldp

[Sysname-mpls-ldp] path-vectors 3

# Set the maximum hops of the path vector to 3 for LDP instance vpn1.

<Sysname> system-view

[Sysname] mpls ldp vpn-instance vpn1

[Sysname-mpls-ldp-vpn-instance-vpn1] path-vectors 3

periodic-tracert

Syntax

periodic-tracert destination-address mask-length [ -a source-ip | -exp exp-value | -h ttl-value | -m wait-time | -t time-out | -u retry-attempt ] *

undo periodic-tracert destination-address mask-length

View

MPLS LSPV view

Default level

2: System level

Parameters

destination-address: Destination IP address of the FEC.

mask-length: Length of the destination address mask of the FEC, in the range of 0 to 32.

-a source-ip: Specifies the source IP address for MPLS echo request messages. By default, the MPLS LSR ID is used as the source address of MPLS echo request messages.

-exp exp-value: Specifies the EXP value of the label. exp-value is in the range of 0 to 7 and defaults to 0.

-h ttl-value: Specifies the TTL value to be carried by MPLS echo request messages. ttl-number is in the range of 1 to 255 and defaults to 30.

-m wait-time: Specifies the interval for performing LSP tracert. wait-time is in the range of 15 to 120 and defaults to 60, in minutes.

-t time-out: Specifies the timeout time for waiting for the response of an MPLS echo request message. time-out is in the range of 0 to 65535 and defaults to 2000, in milliseconds.

-u retry-attempt: Specifies the maximum number of times that MPLS echo request messages can be sent if no response is received. retry-attempt is in the range of 1 to 9 and defaults to 3.

Description

Use periodic-tracert to enable periodic LSP tracert for a FEC. 

Use undo periodic-tracert to disable periodic LSP tracert for a FEC.

By default, the periodic LSP tracert for a FEC is not enabled.

The periodic LSP tracert function is for locating faults of an LSP periodically. It detects the consistency of the forwarding plane and control plane and records detection results into logs. You can know whether an LSP has failed by checking the logs.

If you configure BFD as well as periodic tracert for an LSP, once the periodic LSP tracert function detects an LSP fault or inconsistency of the forwarding plane and control plane, the BFD session for the LSP will be deleted and a new BFD session will be established according to the control plane.

Examples

# Enable periodic tracert for LSPs to destination 1.1.1.9/32.

<Sysname> system-view

[Sysname] mpls lspv

[Sysname-mpls-lspv] periodic-tracert 1.1.1.9 32

ping lsp ipv4

Syntax

ping lsp [ -a source-ip | -c count | -exp exp-value | -h ttl-value | -m wait-time | -r reply-mode | -s packet-size | -t time-out | -v ] * ipv4 dest-addr mask-length [ destination-ip-addr-header ]

View

Any view

Default level

0: Visit level

Parameters

-a source-ip: Specifies the source address for the echo request messages to be sent.

-c count: Specifies the number of echo request messages to be sent. The value range for the count argument is 1 to 4294967295, and the default is 5.

-exp exp-value: Specifies the EXP value for the echo request messages. The value range for the exp-value argument is 0 to 7, and the default is 0.

-h ttl-value: Specifies the TTL value for the echo request messages. The value range for the ttl-value argument is 1 to 255, and the default is 255.

-m wait-time: Specifies the interval for sending echo request messages. The value range for the wait-time argument is 1 to 10000 milliseconds, and the default is 200 milliseconds.

-r reply-mode: Specifies the reply mode of the receiver in response to the echo request messages. The reply-mode argument can be 1 or 2, where 1 means "Do not respond" and 2 means "Respond using a UDP packet". The default is 2.

-s packet-size: Specifies the payload length of the echo request messages. The value range for the packet-size argument is 65 to 8100 bytes, and the default is 100 bytes.

-t time-out: Specifies the timeout interval for the response to an echo request message. The value range for the time-out argument is 0 to 65535 milliseconds, and the default is 2000 milliseconds.

-v: Displays detailed response information.

ipv4 dest-addr mask-length: Checks the connectivity of the LSP for a FEC. dest-addr is the destination address of the FEC. The mask-length argument is the length of the FEC destination address mask, and the value range is 0 to 32.

destination-ip-addr-header: Specifies the destination address in the IP header of MPLS echo request messages. It can be any address on segment 127.0.0.0/8—any local loopback address.

Description

Use ping lsp ipv4 to check the connectivity of the LSP for a FEC.

Examples

# Check the connectivity of the LSP to destination 3.3.3.9/32.

<Sysname> ping lsp ipv4 3.3.3.9 32

LSP Ping FEC: IPV4 PREFIX 3.3.3.9/32 : 100  data bytes, press CTRL_C to break

    Reply from 100.1.2.1: bytes=100 Sequence=0 time = 31 ms

    Reply from 100.1.2.1: bytes=100 Sequence=1 time = 62 ms

    Reply from 100.1.2.1: bytes=100 Sequence=2 time = 62 ms

    Reply from 100.1.2.1: bytes=100 Sequence=3 time = 62 ms

    Reply from 100.1.2.1: bytes=100 Sequence=4 time = 62 ms

  

  --- FEC: IPV4 PREFIX 3.3.3.9/32 ping statistics ---

    5 packet(s) transmitted

    5 packet(s) received

    0.00% packet loss

    round-trip min/avg/max = 31/55/62 ms

prefix-label advertise

Syntax

prefix-label advertise

undo prefix-label advertise

View

MPLS LDP remote peer view

Default level

2: System level

Parameters

None

Description

Use prefix-label advertise to configure LDP to advertise prefix-based labels through remote sessions.

Use undo prefix-label advertise to restore the default.

By default, LDP does not advertise prefix-based label through a remote session.

A switch can advertise prefix-based labels to its remote peers through remote sessions only after you have configured the prefix-label advertise command. However, a switch can receive labels advertised by its remote peers no matter whether you have configured this command or not.

After the switch receives labels advertised by the peer, the corresponding LDP LSP can be established if the following conditions are met:

·     The FEC's outgoing interface is the MPLS TE tunnel interface.

·     The destination address of the MPLS TE tunnel, the remote peer address specified through the remote-ip command, and the LSR ID of the remote peer are the same.

·     The MPLS TE tunnel interface is enabled with the MPLS capability.

Examples

# Configure LDP to advertise prefix-based labels through a remote session.

<Sysname> system-view

[Sysname] mpls ldp remote-peer bji

[Sysname-mpls-ldp-remote-bji] prefix-label advertise

remote-ip

Syntax

remote-ip ip-address

undo remote-ip

View

MPLS LDP remote peer view

Default level

2: System level

Parameters

ip-address: Remote peer IP address.

Description

Use remote-ip to configure the remote peer IP address.

Use undo remote-ip to remove the configuration.

The remote peer IP address must be the MPLS LSR ID of the remote peer. Two peers use their MPLS LSR IDs as the transport addresses to establish the TCP connection.

Related commands: mpls ldp remote-peer.

Examples

# Configure the remote peer IP address as 3.3.3.3.

<Sysname> system-view

[Sysname] mpls ldp remote-peer BJI

[Sysname-mpls-ldp-remote-bji] remote-ip 3.3.3.3

remote-ip bfd

Syntax

remote-ip bfd

undo remote-ip bfd

View

MPLS LDP remote peer view

Default level

2: System level

Parameters

None

Description

Use remote-ip bfd to enable BFD for a remote LDP peer.

Use undo remote-ip bfd to disable BFD for a remote LDP peer.

By default, BFD is not enabled for detecting the reachability to a remote peer.

Examples

# Enable BFD for remote LDP peer named bji.

<Sysname> system-view

[Sysname] mpls ldp remote-peer bji

[Sysname-mpls-ldp-remote-bji] remote-ip bfd

reset mpls ldp

Syntax

reset mpls ldp [ all | [ vpn-instance vpn-instance-name ] [ fec mask | peer peer-id ] ]

View

User view

Default level

1: Monitor level

Parameters

all: Resets sessions of all LDP instances (including the public one and the private ones).

vpn-instance vpn-instance-name: Resets the LDP sessions of the specified VPN. vpn-instance-name specifies an MPLS L3VPN by its instance name, a case-sensitive string of 1 to 31 characters.

fec mask: Resets the LDP sessions for the specified FEC. fec mask specifies a FEC by the destination IP address and mask.

peer peer-id: Resets the LDP session with the specified peer. peer-id specifies a peer by its LSR ID.

Description

Use reset mpls ldp to reset LDP sessions.

With no parameters specified, the command resets all sessions of the public network LDP instance.

Examples

# Reset all sessions of the public network LDP instance.

<Sysname> reset mpls ldp

# Reset the sessions of all LDP instances.

<Sysname> reset mpls ldp all

# Reset the sessions of LDP instance vpn1.

<Sysname> reset mpls ldp vpn-instance vpn1

# Reset the sessions of a specific FEC.

<Sysname> reset mpls ldp 2.2.2.2 24

# Reset the session with a specific peer.

<Sysname> reset mpls ldp peer 2.2.2.9

reset mpls statistics interface

Syntax

reset mpls statistics interface { interface-type interface-number | all }

View

User view

Default level

1: Monitor level

Parameters

interface-type interface-number: Clears statistics collected for the specified interface.

all: Clears statistics collected for all interfaces.

Description

Use reset mpls statistics interface to clear MPLS statistics for the specified MPLS interfaces.

Related commands: display mpls statistics interface.

Examples

# Clear MPLS statistics for interface VLAN-interface 1.

<Sysname> reset mpls statistics interface vlan-interface 1

reset mpls statistics lsp

Syntax

reset mpls statistics lsp { index | all | name lsp-name }

View

User view

Default level

1: Monitor level

Parameters

index: Clears statistics for the LSP with the specified index number. The LSP index is in the range of 0 to 4294967295.

all: Clears statistics for all LSPs.

name lsp-name: Clears statistics for the LSP with the specified name. The LSP name is a string of 1 to 15 characters.

Description

Use reset mpls statistics lsp to clear MPLS statistics for the specified LSPs.

Related commands: display mpls statistics lsp.

Examples

# Clear MPLS statistics for LSP lsp1.

<Sysname> reset mpls statistics lsp name lsp1

static-lsp egress

Syntax

static-lsp egress lsp-name incoming-interface interface-type interface-number in-label in-label

undo static-lsp egress lsp-name

View

System view

Default level

2: System level

Parameters

lsp-name: Name for the LSP, a string of 1 to 15 characters.

incoming-interface interface-type interface-number: Specifies an incoming interface by its type and number.

in-label in-label: Specifies the incoming label, which can be 0, 3, or a value in the range of 16 to 1023.

Description

Use static-lsp egress to configure a static LSP taking the current LSR as the egress.

Use undo static-lsp egress to remove a static LSP taking the current LSR as the egress.

Related commands: display mpls static-lsp, static-lsp ingress, and static-lsp transit.

Examples

# Configure a static LSP named bj-sh, taking the current LSR as the egress, GigabitEthernet 2/0/1 as the incoming interface, and 233 as the incoming label.

<Sysname> system-view

[Sysname] static-lsp egress bj-sh incoming-interface GigabitEthernet 2/0/1 in-label 233

static-lsp ingress

Syntax

static-lsp ingress lsp-name destination dest-addr { mask | mask-length } { nexthop next-hop-addr | outgoing-interface interface-type interface-number } out-label out-label

undo static-lsp ingress lsp-name

View

System view

Default level

2: System level

Parameters

lsp-name: Name for the LSP, a string of 1 to 15 characters.

destination dest-addr: Specifies the destination IP address of an LSP.

mask: Mask of the destination IP address.

mask-length: Length of the mask for the destination address, in the range of 0 to 32.

nexthop next-hop-addr: Specifies the next hop address.

outgoing-interface interface-type interface-number: Specifies an outgoing interface by its type and number.

out-label out-label: Specifies the outgoing label, which can be 0, 3, or a value in the range of 16 to 1023.

Description

Use static-lsp ingress to configure a static LSP taking the current LSR as the ingress.

Use undo static-lsp ingress to remove a static LSP taking the current LSR as the ingress.

When you configure a static LSP on an ingress LSR, the next hop or outgoing interface specified must be consistent with the next hop or outgoing interface of the optimal route in the routing table. If you configure a static IP route for the LSP, be sure to specify the same next hop or outgoing interface for the static route and the static LSP.

The next hop address cannot be any local public network IP address.

Related commands: display mpls static-lsp, static-lsp egress, and static-lsp transit.

Examples

# Configure a static LSP named bj-sh to destination address 202.25.38.1/24, taking the current LSR as the ingress, 202.55.25.33 as the next hop address, and 237 as the outgoing label.

<Sysname> system-view

[Sysname] static-lsp ingress bj-sh destination 202.25.38.1 24 nexthop 202.55.25.33 out-label 237

static-lsp transit

Syntax

static-lsp transit lsp-name incoming-interface interface-type interface-number in-label in-label { nexthop next-hop-addr | outgoing-interface interface-type interface-number } out-label out-label

undo static-lsp transit lsp-name

View

System view

Default level

2: System level

Parameters

lsp-name: Name for the LSP, a string of 1 to 15 characters.

incoming-interface interface-type interface-number: Specifies an incoming interface by its type and number.

in-label in-label: Specifies the incoming label in the range of 16 to 1023.

nexthop next-hop-addr: Specifies the next hop address.

outgoing-interface interface-type interface-number: Specifies an outgoing interface by its type and number.

out-label out-label: Specifies the outgoing label, which can be a 0, 3, or a value in the range of 16 to 1023.

Description

Use static-lsp transit to configure a static LSP taking the current LSR as a transit LSR.

Use undo static-lsp transit to remove a static LSP taking the current LSR as a transit LSR.

The next hop address cannot be any local public network IP address.

Related commands: static-lsp egress and static-lsp ingress.

Examples

# Configure a static LSP named bj-sh, taking the local LSR as a transit LSR, interface GigabitEthernet 2/0/1 as the incoming interface, 123 as the incoming label, 202.34.114.7 as the next hop address, and 253 as the outgoing label.

<Sysname> system-view

[Sysname] static-lsp transit bj-sh incoming-interface GigabitEthernet 2/0/1 in-label 123 nexthop 202.34.114.7 out-label 253

statistics interval

Syntax

statistics interval interval-time

undo statistics interval

View

MPLS view

Default level

2: System level

Parameters

interval-time: Statistics reading interval in the range of 30 to 65535 seconds.

Description

Use statistics interval to set the interval for reading collected statistics.

Use undo statistics interval to restore the default.

By default, the LSP statistics reading interval is 0, which indicates that the system does not read collected LSP statistics.

Related commands: display mpls statistics interface and display mpls statistics lsp.

Examples

# Set the LSP statistics reading interval to 30 seconds.

<Sysname> system-view

[Sysname] mpls

[Sysname-mpls] statistics interval 30

tracert lsp ipv4

Syntax

tracert lsp [ -a source-ip | -exp exp-value | -h ttl-value | -r reply-mode | -t time-out ] * ipv4 dest-addr mask-length [ destination-ip-addr-header ]

View

Any view

Default level

0: Visit level

Parameters

-a source-ip: Specifies the source IP address for the echo request messages.

-exp exp-value: Specifies the EXP value for the echo request messages. The value range for the exp-value argument is 0 to 7, and the default is 0.

-h ttl-value: Specifies the TTL value for the echo request messages. The value range for the ttl-value argument is 1 to 255, and the default is 30.

-r reply-mode: Specifies the reply mode of the receiver in response to the echo request messages. The reply-mode argument can be 1 or 2, where 1 means "Do not respond" and 2 means "Respond using a UDP packet". The default is 2.

-t time-out: Specifies the timeout interval for the response to an echo request message. The value range for the time-out argument is 0 to 65535 milliseconds, and the default is 2000 milliseconds.

ipv4 dest-addr mask-length: Specifies to tracert the LSPs for a FEC. dest-addr is the destination address of the FEC. The mask-length argument is the length of the FEC destination address, and the value range is 0 to 32.

destination-ip-addr-header: Specifies the destination address in the IP header of the MPLS echo request messages. It can be any address on segment 127.0.0.0/8—any local loopback address.

Description

Use tracert lsp ipv4 to locate errors on the LSPs for a FEC.

Examples

# Locate an error along the LSP to 3.3.3.9/32.

<Sysname> tracert lsp ipv4 3.3.3.9 32

LSP Trace Route FEC: LDP IPV4 PREFIX 3.3.3.9/32 , press CTRL_C to break.

  TTL   Replier            Time    Type      Downstream

  0                                Ingress   10.4.5.1/[1025]

  1     10.4.5.1           1       Transit   100.3.4.1/[1024]

  2     100.1.4.2          63      Transit   100.1.2.1/[3]

  3     100.1.2.1          129     Egress

ttl expiration enable

Syntax

ttl expiration enable

undo ttl expiration enable

View

MPLS view

Default level

2: System level

Parameters

None

Description

Use ttl expiration enable to enable the switch to send back an ICMP TTL exceeded message when it receives an MPLS TTL expired packet.

Use undo ttl expiration enable to disable sending back of ICMP TTL exceeded messages for MPLS TTL expired messages.

By default, this function is enabled.

Related commands: ttl expiration pop.

Examples

# Disable the system from sending back an ICMP TTL exceeded message when it receives an MPLS TTL expired message.

<Sysname> system-view

[Sysname] mpls

[Sysname-mpls] undo ttl expiration enable

ttl expiration pop

Syntax

ttl expiration pop

undo ttl expiration pop

View

MPLS view

Default level

2: System level

Parameters

None

Description

Use ttl expiration pop to configure the system to use IP routes to send back the ICMP TTL exceeded messages for TTL-expired MPLS packets that have only one level of label.

Use undo ttl expiration pop to configure the system to use LSPs to send back the ICMP TTL exceeded messages for TTL-expired MPLS packets that have only one level of label.

By default, an ICMP TTL exceeded message is sent back along an IP route when the TTL of an MPLS packet with a one-level label stack expires.

The configuration does not take effect for an MPLS packet with multiple levels of labels. The ICMP TTL exceeded message is always sent back along the LSP when the TTL of such a packet expires.

Related commands: ttl propagate.

Examples

# Configure the switch to use LSPs to send back ICMP TTL exceeded messages for TTL-expired MPLS packets that have only one level of label.

<Sysname> system-view

[Sysname] mpls

[Sysname-mpls] undo ttl expiration pop

ttl propagate

Syntax

ttl propagate { public | vpn }

undo ttl propagate { public | vpn }

View

MPLS view

Default level

2: System level

Parameters

public: Specifies public network packets.

vpn: Specifies VPN packets.

Description

Use ttl propagate to enable MPLS IP TTL propagation for public network packets or VPN packets.

Use undo ttl propagate to disable the function.

By default, MPLS IP TTL propagation is enabled for only public network packets.

Related commands: ttl expiration pop.

Examples

# Enable MPLS IP TTL propagation for VPN packets.

<Sysname> system-view

[Sysname] mpls

[Sysname-mpls] ttl propagate vpn

 

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