- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
01-MPLS Basics Commands | 337.23 KB |
Basic MPLS configuration commands
display mpls ldp session all statistics
display mpls statistics interface·
graceful-restart (MPLS LDP view)
graceful-restart timer neighbor-liveness
graceful-restart timer reconnect
graceful-restart timer recovery
reset mpls statistics interface·
|
NOTE: · These interface types support MPLS capability and LDP capability: Layer 3 Ethernet interface (GE interface and XGE interface), ATM interface, POS interface, Layer 3 aggregate interface, Mp-group interface, MFR interface, tunnel interface, HDLC interface, VLAN interface, and RPR logical interface. · Except for the commands 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. For how to create an IP prefix list, see Layer 3—IP Routing Command Reference.
Description
Use the accept-label command to configure a label acceptance control policy.
Use the undo accept-label command to restore the default.
By default, an LSR accepts all label bindings received from its LDP peers.
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, you need to 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.
Examples
# Configure the router 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. For how to create an IP prefix list, see Layer 3—IP Routing Command Reference.
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 the advertise-label command to configure a label advertisement control policy.
Use the undo advertise-label command 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.
Examples
# Configure label advertisement control policies so that the router:
· 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 peerC permit 3.3.3.9 32
[Sysname] ip ip-prefix peerD 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 mask-length: Specifies a FEC by a destination address and the mask length of the destination address. The mask-length argument ranges from 0 to 32.
nexthop nexthop-address: Specifies a next hop address for the FEC. If you specify a next hop address, the BFD detects 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. The value ranges from 1 to 4294967295.
Description
Use the bfd enable command to enable BFD to detect the connectivity of the LSPs for a FEC.
Use the undo bfd enable command to disable BFD detection of the LSP connectivity for a FEC.
By default, BFD detection for LSPs is disabled.
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, and the BFD packets use the MPLS LSR ID as the source address. Therefore, before enabling BFD for an LSP, you need to configure an IP address for the loopback interface and configure the MPLS LSR ID as the IP address of the loopback interface, and 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
display mpls ilm [ label ] [ verbose ] [ slot slot-number ] [ include text | { | { begin | exclude | include } regular-expression } ]
View
Any view
Default level
1: Monitor level
Parameters
label: Displays the incoming label mapping (ILM) entry with the specified incoming label, in the range of 16 to 1048575.
verbose: Displays the detailed information.
slot slot-number: Displays the ILM entries on a card. slot-number indicates the number of the slot that holds the card.
include text: Display the ILM entries that contain 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 the display mpls ilm command to display information about the 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 60
Inlabel In-Interface Token VRF-Index Oper LSP-Type Swap-Label
-----------------------------------------------------------------------------
60 GE4/1/1 1 0 NULL STATIC LSP -
# Display all ILM entries.
<Sysname> display mpls ilm
Total ILM Entry: 2
Inlabel In-Interface Token VRF-Index Oper LSP-Type Swap-Label
-----------------------------------------------------------------------------
60 GE4/1/1 1 0 NULL STATIC LSP -
80 GE4/1/2 2 0 NULL STATIC LSP -
Field |
Description |
Inlabel |
Incoming label |
In-Interface |
Incoming interface |
Token |
NHLFE entry index |
VRF-Index |
VRF index |
Oper |
Operation type, which can be POP, POPGO, SWAPGO, or NULL |
LSP-Type |
LSP type, which can be 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 the detailed information of all ILM entries.
<Sysname> display mpls ilm verbose
Total ILM Entry: 2
**In Label : 60
LSP Type : STATIC LSP
In Interface : GE4/1/1
VRF Index : 0
Operation : NULL
Swap Label : -
Out Interface : -
Create Time : 07:55:06:921
Last Change Time : 07:55:06:921
Tunnel ID : 0xc0001(Done)
GrCount: 0
**In Label : 80
LSP Type : STATIC LSP
In Interface : GE4/1/2
VRF Index : 0
Operation : NULL
Swap Label : -
Out Interface : -
Create Time : 07:57:26:927
Last Change Time : 07:57:26:927
Tunnel ID : 0xc0002(Done)
GrCount: 0
Service : Statistics(Succeeded)
Field |
Description |
In Label |
Incoming label |
LSP Type |
LSP type, which can be LDP LSP, CR-LDP, RSVP LSP, BGP LSP, L3VPN LSP, STATIC LSP, STATIC CR-LSP, L2VPN LSP, or BGP IPv6 LSP |
In Interface |
Incoming interface |
Operation |
Operation type, which can be POP, POPGO, SWAPGO, or NULL |
Swap Label |
Label for swapping |
Out Interface |
Outgoing interface |
Create Time |
Time when the entry was created |
Last Change Time |
Time of the last update of the entry |
Tunnel ID |
Public tunnel ID and entry status (Done or Waiting) GrCount: Number of times that GR occurs |
Service |
Service type and status, where the service type is Statistics and the service status can be Succeeded (service has been enabled successfully) or Failed (service failed to be enabled). |
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.
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 the display mpls interface command to display information about a specific 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
GE4/1/1 Up Dis 2 0
GE4/1/2 Up Dis 2 0
# Display detailed information about MPLS-enabled interface GigabitEthernet 4/1/1.
<Sysname> display mpls interface GigabitEthernet 4/1/1 verbose
No : 1
Interface : GE4/1/1
Status : Up
TE Attribute : Disable
LSPCount : 2
CR-LSPCount : 0
FRR : Disabled
Field |
Description |
No |
Sequence number |
Interface |
Name of the interface |
Status |
Status of the interface |
TE Attr/TE Attribute |
Whether TE is enabled on the interface |
LSP Count/LSPCount |
Number of LSPs on the interface |
CRLSP 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. |
|
NOTE: For more 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 ]
Any view
Default level
1: Monitor level
Parameters
all: Specifies all labels.
label-value1: Specifies a label or, when used with the label-value2 argument, the start label of a range of labels. label-value1 ranges from 16 to 262143.
to label-value2: End label of a range of labels. label-value2 ranges from 16 to 262143.
|: 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 the display mpls label command to display usage information about specified labels or all labels.
Examples
# Display the usage 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:........ ........ ........ .....
Field |
Description |
Label alloc state |
Label allocation status. |
'.' means not used |
'.' means that the label is not used. |
'$' means used |
'$' means that the label is used. |
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 LDP information.
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 the display mpls ldp command to display information about LDP.
If you do not specify any parameter, the command displays all information about LDP in detail.
Related commands: mpls ldp (interface view) and mpls ldp (system view).
Examples
# Display all LDP information 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
-----------------------------------------------------------------
Field |
Description |
LDP Global Information |
Global LDP information |
Protocol Version |
Version of the LDP protocol |
Graceful Restart |
Whether GR is enabled |
FT Reconnect Timer |
FT reconnect timer of GR |
MTU Signaling |
Whether MTU signaling is supported. Currently, the router does not support MTU signaling. |
Recovery Timer |
Setting of the GR’s recovery timer |
Nonstop Routing |
State of LDP NSR, which can be: · On—LDP NSR is enabled but the data backup is not finished yet. · Off—LDP NSR is disabled. · Ready—LDP NSR is enabled and data backup is finished. |
LDP Instance Information |
Information about LDP instances |
Instance ID |
Sequence number of the LDP instance |
VPN-Instance |
Name of the LDP-enabled VPN instance. For the default VPN, nothing is displayed. |
Instance Status |
Status of the LDP instance |
LSR ID |
ID of the LSR |
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, which can be: · Ordered · Independent |
Label Retention Mode |
Label retention mode used by the instance, which can be only Liberal at present. |
display mpls ldp cr-lsp
Syntax
display mpls ldp cr-lsp [ lspid lsr-id lsp-id ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
lspid lsr-id lsp-id: Displays information about the specified CR-LSP. lsr-id is the LSR ID of the ingress, in the form of IP address. lsp-id is the local LSP ID of the ingress, in the range of 0 to 65535.
|: 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 the display mpls ldp cr-lsp command to display information about CR-LSPs established by CR-LDP.
Related commands: display mpls lsp.
Examples
# Display information about CR-LSPs established by LDP.
<Sysname> display mpls ldp cr-lsp
Displaying All LDP CR-LSP(s) for public network
----------------------------------------------------------------
CR-LSP ID DestAddress/Mask In/OutLabel In/Out-Interface
----------------------------------------------------------------
1.1.1.9:0 2.2.2.9/32 NULL/1027 -------/GE4/1/1
2.2.2.9:0 1.1.1.9/32 1027/NULL GE4/1/1/-------
----------------------------------------------------------------
The Total LDP CR-LSP(s): 2
Field |
Description |
CR-LSP ID |
ID of the CR-LSP |
DestAddress/Mask |
Destination address and the mask of the FEC |
In/OutLabel |
Incoming label/outgoing label |
In/Out-Interface |
Incoming interface/outgoing interface |
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 of 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 of the specified FEC. dest-addr specifies a FEC by a destination address. mask-length specifies 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 the display mpls ldp fec command to display the label advertisement information of a specific FEC.
Examples
# Display the label advertisement information of FEC 3.3.3.9/32.
<Sysname> display mpls ldp fec 3.3.3.9 32
-------------------------------------------------------------------------
LDP FEC Information
-------------------------------------------------------------------------
Label Advertisement Policy:
------------------------------------------------------------------
FEC IP-prefix : prefix-from-rt1
Peer IP-prefix : peer-to-rt2
Upstream Info:
------------------------------------------------------------------
No. : 1
Upstream peer : 3.3.3.9
Stale : No
Label Request ID : NULL
Label Space ID : 0
FEC Type : Generic
Incoming Label : 1066
State : Release_Awaited (Aging)
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
Field |
Description |
Label Advertisement Policy |
Information about the label advertisement control policy |
FEC IP-prefix |
IP prefix list for checking FEC destination addresses |
Peer IP-prefix |
IP prefix list for checking LSR IDs of LDP peers |
Stale |
Whether the router 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. Currently, the router supports Generic only. |
State |
Current state, which can be: · 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 of 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 of 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 the display mpls ldp interface command to display the LDP related information of one or more LDP-enabled interfaces.
If you do not specify any parameter, the command will display the brief LDP information of all LDP-enabled interfaces.
Related commands: mpls ldp (interface view) and mpls ldp (system view).
Examples
# Display the brief LDP information of all LDP-enabled interfaces.
<Sysname> display mpls ldp interface
LDP Interface Information in Public Network
-------------------------------------------------------------------
IF-Name Status LAM Transport-Address Hello-Sent/Rcv
-------------------------------------------------------------------
GE4/1/1 Active DU 172.17.1.1 583/1017
GE4/1/1 Active DU 172.17.1.1 578/1015
GE4/1/1 Active DU 172.17.1.1 534/1444
-------------------------------------------------------------------
LAM: Label Advertisement Mode IF-Name: Interface name
# Display the detailed LDP information of all LDP-enabled interfaces.
<Sysname> display mpls ldp interface verbose
LDP Interface Information in Public Network
--------------------------------------------------------------
Interface Name : GigabitEthernet4/1/1
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 : 594/1/1033 (Message Count)
-------------------------------------------------------------
Interface Name : GigabitEthernet4/1/2
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 : GigabitEthernet4/2/1
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)
-------------------------------------------------------------
Field |
Description |
Interface Name |
Name of an LDP-enabled interface |
LDP ID |
LDP identifier. It identifies the label space of an LSR. An LDP ID consists of the LSR ID and label space ID. The label space ID can only be 0, which indicates that the entire LSR uses one label space. |
Transport Address |
LDP transport address. The device uses this address to establish a TCP connection with an LDP peer. |
Entity Status |
Status of the entity, Active or Inactive |
Label Advertisement Mode |
The router only supports the DU mode. |
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: Displays information about all LSPs established by LDP.
vpn-instance vpn-instance-name: Displays the LSP information of 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 of a FEC. dest-addr specifies the FEC destination address. mask-length specifies the maks length of the 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 the display mpls ldp lsp command 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 lsp.
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 1.1.1.4/32 3/NULL 127.0.0.1 -------/InL0
2 10.1.1.0/24 3/NULL 10.1.1.1 -------/GE4/1/1
*3 100.1.1.4/32 Liberal(1025)
--------------------------------------------------------------------------
A '*' before an LSP means the LSP is not established
A '*' before a Label means the USCB or DSCB is stale
Field |
Description |
SN |
Sequence number of the LSP. A “*” before an SN means that the LSP is not established. |
DestAddress/Mask |
Destination address and the mask of the LSP |
In/OutLabel |
Incoming label/outgoing 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. |
Next-Hop |
Address of the next hop |
In/Out-Interface |
Incoming interface/outgoing interface |
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 the display mpls ldp peer command to display information about specified or all peers of the current LSR.
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 GigabitEthernet4/1/1
168.1.1.1:0 168.1.1.1 GigabitEthernet4/1/2
100.10.1.1:0 100.10.1.1 GigabitEthernet4/2/1
--------------------------------------------------------------
Field |
Description |
Peer-ID |
LDP identifier of the peer. For more information about the LDP identifier, see the LDP ID field in Table 8. |
Transport-Address |
LDP Transport address of the peer |
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 : GigabitEthernet4/1/1
------------------------------------------------------------
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 : GigabitEthernet4/2/1
-------------------------------------------------------------
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 : GigabitEthernet4/2/2
------------------------------------------------------------
Field |
Description |
Peer LDP ID |
LDP identifier of the peer. For more information about the LDP identifier, see the LDP ID field in Table 8. |
Peer FT Flag |
Whether GR FT is enabled on the peer |
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 the display mpls ldp remote-peer command to display information about LDP remote peers.
Related commands: mpls ldp 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)
--------------------------------------------------------------------------
Field |
Description |
LDP Remote Entity Information |
Information about the remote LDP peer |
LDP ID |
Local LDP identifier. For more information about the LDP identifier, see the LDP ID field in Table 8. |
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 of 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 the display mpls ldp session command to display information about LDP all sessions.
If you do not specify any parameter, the command displays information about all public network LDP sessions.
Related commands: mpls ldp.
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
Field |
Description |
Peer-ID |
LDP identifier of the peer. For more information about the LDP identifier, see the LDP ID field in Table 8. |
Status |
Session status, including: · 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 : GigabitEthernet4/1/1
Label Acceptance Policy : prefix-from-rt1
Addresses received from peer: (Count: 3)
10.1.1.2 20.1.1.1 2.2.2.2
--------------------------------------------------------------------------
Field |
Description |
Peer LDP ID |
LDP identifier of the peer. For more information about the LDP identifier, see the LDP ID field in Table 8. |
Local LDP ID |
Local LDP identifier. For more information about the LDP identifier, see the LDP ID field in Table 8. |
Session State |
Status of the session. For more information about session states, see Table 13. |
Session Role |
Role of the current LSR in the session, Active or Passive |
Session FT Flag |
Whether GR FT is enabled on the peer for 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 devices 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 the display mpls ldp session all statistics command 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 of the incoming label ranges 0 to 1048575.
out-label out-label-value: Displays information about the LSPs using the specified label as the outgoing label. The value of the outgoing label ranges 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, or, 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 LSR as the egress.
ingress: Displays information about the LSPs taking the current LSR as the ingress.
transit: Displays information about the LSPs taking the current LSR 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 an IPv4 destination address and the address mask length. The mask length is in the range of 0 to 32.
Ipv6-dest-addr mask-length: Specifies a FEC by an IPv6 destination address and the address mask length. 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 the display mpls lsp command 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.
|
NOTE: This command supports these interface types: Layer 3 Ethernet interface (GE interface, and XGE interface), ATM interface, POS interface, Layer 3 aggregate interface, Mp-group interface, MFR interface, tunnel interface, VLAN interface, and RPR logical interface. |
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 -/-
100.10.1.0/24 3/NULL -/-
168.1.0.0/16 3/NULL -/-
172.17.0.0/16 3/NULL -/-
Field |
Description |
FEC |
Forwarding equivalence class, in either of the following forms: · IP address/mask—Assigning labels based on destination addresses. · IP address—Assigning labels based on the addresses of the next hops. |
Vrf Name |
VPN instance name: · Empty—Indicates the public network · N/A (ASBR)—Indicates an ASBR LSP · Any other value—Indicates the name of an MPLS L3VPN |
# Display detailed information about all LSPs.
<Sysname> display mpls lsp verbose
----------------------------------------------------------------
LSP Information: BGP LSP
----------------------------------------------------------------
No. : 4
VrfName : vpn1
Fec : 56.10.10.2
Nexthop : -------
In-Label : 1024
Out-Label : NULL
In-Interface : ----------
Out-Interface : ----------
LspIndex : 5121
Tunnel ID : 0x0
LsrType : Egress
Outgoing Tunnel ID : 0x0
Label Operation : POP
-------------------------------------------------------------
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 : ----------
LspIndex : 10241
Tunnel ID : 0x0
LsrType : Egress
Outgoing Tunnel ID : 0x0
Label Operation : POP
Field |
Description |
VrfName |
VPN instance name: · Empty—Indicates the public network · N/A (ASBR)—Indicates an ASBR LSP · Any other value—Indicates the name of an MPLS L3VPN |
Fec |
Forwarding equivalence class, in either of the following forms: · IP address/mask—Assigns labels based on destination addresses. · IP address—Assigns labels based on the addresses of the next hops. |
Tunnel ID |
Tunnel ID (the pubic network) |
LsrType |
Role of the LSR for the LSP, which can be Ingress, Transit, or Egress |
Outgoing Tunnel ID |
Tunnel ID (inter-AS VPN) |
Label Operation |
Label operation performed, which can be 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 of the LSPs for a FEC. destination-address is the FEC destination IP address. mask-length is the mask length of the 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 the display mpls lsp bfd ipv4 command to display the BFD information for LSPs.
Examples
# Display the BFD check information of 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
Field |
Description |
Type |
Type of the tunnel detected by BFD, which can be 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, including: · 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 the display mpls lsp statistics command to display LSP statistics.
Examples
# Display LSP statistics.
<Sysname> display mpls lsp statistics
Lsp Type Total Ingress Transit Egress
STATIC LSP 0 0 0 0
STATIC CRLSP 0 0 0 0
LDP LSP 8 2 2 4
CRLDP CRLSP 0 0 0 0
RSVP CRLSP 0 0 0 0
BGP LSP 0 0 0 0
ASBR LSP 0 0 0 0
BGP IPV6 LSP 0 0 0 0
---------------------------------------------------------------
LSP 8 2 2 4
CRLSP 0 0 0 0
Field |
Description |
Ingress |
Number of LSPs taking the current LSR as the ingress |
Transit |
Number of LSPs taking the current LSR as a transit LSR |
Egress |
Number of LSPs taking the current LSR as the egress |
display mpls nhlfe
Syntax
display mpls nhlfe [ token ] [ verbose ] [ slot slot-number ] [ include text | { | { begin | exclude | include } regular-expression } ]
View
Any view
Default level
1: Monitor level
Parameters
token: Specifies an NHLFE entry by its index, in the range of 0 to 36863.
verbose: Displays the detailed information.
slot slot-number: Displays the NHLFE entries of the card in the specified slot.
include text: Specifies NHLFE entries that contain 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 the display mpls nhlfe command to display information about the NHLFE table.
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
----------------------------------------------------------------------
GE4/2/1 2 PUSH 88.1.1.2 1 1024
# Display all NHLFE entries.
<Sysname> display mpls nhlfe
Total NHLFE Entry: 1
Out-Interface Token Oper Nexthop Deep Stack
----------------------------------------------------------------------
GE4/2/1 2 PUSH 88.1.1.2 1 1024
Field |
Description |
Total NHLFE Entry |
Total number of NHLFE entries |
Token |
NHLFE entry index |
Oper |
Label operation type, which can be PUSH, SWAP, or GO |
Deep |
Depth of the MPLS label stack |
Stack |
MPLS label |
# Display the detailed information of all NHLFE entries.
<Sysname> display mpls nhlfe verbose
Totel NHLFE Entry: 1
**Token : 1 Tunnel ID:0x7600001
VRF Index : 0
Next Hop : 1.1.1.1
Out Interface : Vlan10
AT Index : 1
Label Stack : 1024
Operation : PUSH
LSP Type : LDP LSP
Tunnel State : Done
FRR Tunnel ID : 0x0
FRR Flag : False
FRR Inner Label : -
FRR Tunnel State : Waiting
Next Tunnel ID : 0x0
Gr Count : 1
Create Time : 00:02:11:222
Last Change Time : 00:03:11:333
Service : Statistics(Succeeded)
Table 20 Output description
Field |
Description |
Total NHLFE Entry |
Total number of NHLFE entries |
Token |
Index of the NHLFE entry |
Tunnel ID |
Index of the NHLFE tunnel |
AT Index |
Adjacency table index |
Operation |
Label operation type, which can be PUSH, SWAP, or GO |
LSP Type |
LSP type, which can be LDP LSP, CR-LDP/RSVP LSP, BGP LSP, L3VPN LSP, STATIC LSP, STATIC CR-LSP, L2VPN LSP, BGP IPv6 LSP, or INVALID |
Tunnel State |
Tunneling state, Done or Waiting |
FRR Flag |
Fast reroute (FRR) flag, True or False |
FRR Tunnel State |
FRR tunnel state, Done or Waiting |
Next Tunnel ID |
ID of the nested tunnel |
Gr Count |
Number of times that GR occurs |
Create Time |
Time when the entry was created |
Last Change Time |
Time of the last update of the entry |
Service |
Service type and status, where the service type is Statistics and the service status can be Succeeded (service has been enabled successfully) or Failed (service failed to be enabled). |
display mpls nhlfe reflist
Syntax
display mpls nhlfe reflist token [ slot slot-number ] [ include text | { | { begin | exclude | include } regular-expression } ]
View
Any view
Default level
1: Monitor level
Parameters
token: Specifies an NHLFE entry by its index.
slot slot-number: Displays the usage information of the NHLFE entries on the specified card. slot-number is the number of the slot that holds the card.
include text: Displays the usage information of 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 the display mpls nhlfe reflist command to display the usage information of the NHLFE entries.
Examples
# Display the usage information of the specified NHLFE entry.
<Sysname> display mpls nhlfe reflist 11
Total reference node: 8
No. Type Key-Info
-------------------------------------------------------------
1 ILM 1023(Inlabel) GE3/1/1(In-If)
2 FTN 1(VPN ID) 2.2.2.2/32
3 LPW ----(SRV ID) GE3/1/2(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) ----
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 22 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: 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 of 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 of 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 the display mpls route-state command to display LSP information of routes.
With no VPN instance specified, the command displays the LSP information of the public routes. With no destination address and mask specified, the command displays the LSP information of all routes.
Examples
# Display LSP-related information about all routes.
<Sysname> display mpls route-state
DEST/MASK NEXT-HOP OUT-INTERFACE STATE LSP-COUNT VPN-INDEX
--------------------------------------------------------------------------------
1.1.1.0/24 0.0.0.0 Dia1 READY 1 0
1.1.1.9/32 20.1.1.1 GE3/0/1 READY 1 0
Field |
Description |
DEST/MASK |
Destination address and mask of the route |
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 specified FEC.
include: Displays information about the LSP for the specified FEC.
dest-addr mask-length: Specifies a FEC by a destination address and the mask length of the destination address. The mask-length argument ranges from 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 the display mpls static-lsp command to display information about static LSPs.
Related commands: display mpls lsp and display mpls statistics lsp.
Examples
# Display brief information about 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 -/GE4/1/1 Up
Field |
Description |
I/O Label |
Incoming/outgoing label |
I/O If |
Incoming/outgoing interface |
State |
Status of the LSP |
# Display detailed information about 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 : GigabitEthernet4/1/1
NextHop : 30.1.1.2
Static-Lsp Type: IPTN
Lsp Status : Up
Field |
Description |
No |
Sequence number |
LSR-Type |
Role of the LSR for the LSP, which can be 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 the display mpls statistics interface command to display MPLS statistics for a specific or all interfaces.
To display statistics, set a statistics interval first. By default, the interval is 0 and the system does not read MPLS statistics, in which case the value of every statistical item is 0.
Related commands: statistics interval.
Examples
# Display MPLS statistics for all interfaces.
<Sysname> display mpls statistics interface all
Statistics for Interface IN :
Incoming Interface GigabitEthernet4/1/1
Octets : 0
Packets : 0
Errors : 0
Disables : 0
Failed Label Lookup : 0
Start Time : 2007/04/28 10:23:55
End Time : 2007/04/28 10:23:55
Statistics for Interface OUT :
Outgoing Interface GigabitEthernet4/1/1
Octets : 0
Packets : 0
Errors : 0
Disables : 0
Start Time : 2007/04/28 10:23:55
End Time : 2007/04/28 10:23:55
Statistics for Interface IN :
Incoming Interface GigabitEthernet4/1/2
Octets : 0
Packets : 0
Errors : 0
Disables : 0
Failed Label Lookup : 0
Start Time : 2007/04/28 10:24:04
End Time : 2007/04/28 10:24:04
Statistics for Interface OUT :
Outgoing Interface GigabitEthernet4/1/2
Octets : 0
Packets : 0
Errors : 0
Disables : 0
Start Time : 2007/04/28 10:24:04
End Time : 2007/04/28 10:24:04
Statistics for Interface IN :
Incoming Interface GigabitEthernet4/2/1
Octets : 0
Packets : 0
Errors : 0
Disables : 0
Failed Label Lookup : 0
Start Time : 2007/04/28 10:24:10
End Time : 2007/04/28 10:24:10
Statistics for Interface OUT :
Outgoing Interface GigabitEthernet4/2/1
Octets : 0
Packets : 0
Errors : 0
Disables : 0
Start Time : 2007/04/28 10:24:10
End Time : 2007/04/28 10:24:10
Table 26 Output description
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 statistics |
End Time |
End time of 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 the display mpls statistics lsp command to display MPLS statistics for a specific or all LSPs.
To display the statistics, set the statistics interval first. By default, the interval is 0 and the system does not collect LSP statistics, in which case the value of every statistical item is 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 : 2007/05/20 15:52:30
End Time : 2007/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 : 2007/05/20 15:52:30
End Time : 2007/05/20 15:52:30
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: · For an ingress, no statistics is collected in the incoming direction and the start time and end time in the InSegment part of the command output are both 0. · For an egress, no statistics is 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 the du-readvertise command to enable label readvertisement for DU mode.
Use the undo du-readvertise command to disable the function.
By default, label readvertisement is enabled in DU mode.
Examples
# Enable DU mode label readvertisement for the public network LDP instance.
<Sysname> system-view
[Sysname] mpls ldp
[Sysname-mpls-ldp] du-readvertise
# Enable DU mode label readvertisement for the 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 readvertisement interval in seconds, in the range of 1 to 65535.
Description
Use the du-readvertise timer command to set the interval for label readvertisement in DU mode.
Use the undo du-readvertise timer command to restore the default.
By default, the interval for label readvertisement in DU mode is 30 seconds.
Examples
# Set the DU mode label readvertisement 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 readvertisement 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 the graceful-restart command to enable MPLS LDP Graceful Restart (GR).
Use the undo graceful-restart command to disable MPLS LDP GR.
By default, MPLS LDP GR is disabled.
Enabling and 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 the graceful-restart mpls ldp command to gracefully restart MPLS LDP.
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.
Enable the MPLS LDP GR capability before using this command.
Related commands: graceful-restart (MPLS LDP view).
Examples
# Gracefully restart MPLS LDP.
<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 the graceful-restart timer neighbor-liveness command to set the LDP neighbor liveness time.
Use the undo graceful-restart timer neighbor-liveness command 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, you need to increase the LDP neighbor liveness time appropriately 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 the graceful-restart timer reconnect command to set the FT reconnect time.
Use the undo graceful-restart timer reconnect command to restore the default.
By default, the FT reconnect time is 300 seconds.
refers to the maximum time that the stale state 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 the graceful-restart timer recovery command to set the LDP recovery time.
Use the undo graceful-restart timer recovery command 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 the hops-count command to set the maximum hop count for loop detection.
Use the undo hops-count command to restore the default.
By default, the maximum hop count for loop detection is 32.
You must configure the 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 to the penultimate hop an explicit null label, whose value is 0.
implicit-null: Specifies the egress to distribute to the penultimate hop an implicit null label, whose value is 3.
non-null: Specifies the egress to distribute to the penultimate hop a normal label, whose value is not less than 1024.
Description
Use the label advertise command to specify what type of label the egress should distribute to the penultimate hop.
Use the undo label advertise command 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, where an LSR can advertise label bindings to its connected LSRs at anytime.
ordered: Specifies the ordered label distribution control mode, where 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 the label-distribution command to specify the label distribution control mode.
Use the undo label-distribution command 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 the loop-detect command to enable loop detection.
Use the undo loop-detect command to disable loop detection.
By default, loop detection is disabled.
Enable loop detection before enabling LDP on any interfaces.
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 are 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 the lsp-trigger command to configure the LSP establishment triggering policy.
Use the undo lsp-trigger command 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 more information about IP address 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 the lsr-id command to configure an LDP LSR ID.
Use the undo lsr-id command 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: Enters and displays the password in cipher text.
plain: Enters the password in plain text and displays the password in cipher text.
peer-lsr-id: Specifies the MPLS LSR ID of a peer.
password: Specifies the password. This argument is case sensitive. If plain is specified, it must be a string of 1 to 16 characters. If cipher is specified, it must be a ciphertext string of 1 to 53 characters.
Description
Use the md5-password command to enable LDP MD5 authentication and set the password.
Use the undo md5-password command 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 also remove the sessions and all LSPs based on the sessions.
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 the authentication password as pass in plain text.
[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 the VPN instance vpn1, and configure the authentication password as pass in plain text.
<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 the mpls command in system view to enable MPLS globally and enter MPLS view.
Use the undo mpls command in system view to disable MPLS globally.
Use the mpls command in interface view to enable MPLS for the interface.
Use the undo mpls command 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 GigabitEthernet 4/1/1.
<Sysname> System-view
[Sysname] interface GigabitEthernet 4/1/1
[Sysname-GigabitEthernet4/1/1] mpls
mpls ldp (interface view)
Syntax
mpls ldp
undo mpls ldp
View
Interface view
Default level
2: System level
Parameters
None
Description
Use the mpls ldp command to enable LDP on an interface.
Use the undo mpls ldp command 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, 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 the chapter “MPLS L3VPN configuration commands.”
|
NOTE: This command supports these interface types: Layer 3 Ethernet interface (GE interface, and XGE interface), ATM interface, POS interface, Layer 3 aggregate interface, Mp-group interface, MFR interface, tunnel interface, HDLC interface, VLAN interface, and RPR logical interface. |
Examples
# Enable LDP for interface GigabitEthernet 4/1/1.
<Sysname> System-view
[Sysname] interface GigabitEthernet4/1/1
[Sysname-GigabitEthernet4/1/1] mpls
[Sysname-GigabitEthernet4/1/1] mpls ldp
mpls ldp (system view)
Syntax
mpls ldp
undo mpls ldp
View
System view
Default level
2: System level
Parameters
None
Description
Use the mpls ldp command to enable LDP globally and enter MPLS LDP view.
Use the undo mpls ldp command 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 the mpls ldp remote-peer command to create a remote peer entity and enter MPLS LDP remote peer view.
Use the undo mpls ldp remote-peer command 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: Length of time for the Hello timer, in the range of 1 to 65535, in seconds.
Description
Use the mpls ldp timer hello-hold command to set a Hello timer.
Use the undo mpls ldp timer hello-hold command to restore the default.
In interface view, you configure the link Hello timer. In MPLS LDP remote peer view, you configure 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 for local sessions to 100 seconds on interface GigabitEthernet 4/1/1.
<Sysname> System-view
[Sysname] interface GigabitEthernet 4/1/1
[Sysname-GigabitEthernet4/1/1] mpls
[Sysname-GigabitEthernet4/1/1] mpls ldp
[Sysname-GigabitEthernet4/1/1] mpls ldp timer hello-hold 100
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: Length of time for the Keepalive timer, in the range of 1 to 65535, in seconds.
Description
Use the mpls ldp timer keepalive-hold command to set a keepalive timer.
Use the undo mpls ldp timer keepalive-hold command to restore the default.
In interface view, you configure the link keepalive timer. In MPLS LDP remote peer view, you configure the targeted keepalive timer.
By default, both the link keepalive timer and targeted keepalive timer are set to 45 seconds.
If more than one link with LDP enabled exists between two LSRs when, for example, the two LSRs are connected through multiple interfaces, the Keepalive timers of all the links must be identical for 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 for local sessions to 50 seconds on interface GigabitEthernet 4/1/1.
<Sysname> System-view
[Sysname] interface GigabitEthernet 4/1/1
[Sysname-GigabitEthernet4/1/1] mpls
[Sysname-GigabitEthernet4/1/1] mpls ldp
[Sysname-GigabitEthernet4/1/1] mpls ldp timer keepalive-hold 50
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: Specifies the IP address to be used as the LDP transport address.
interface: Specifies that LDP uses the IP address of the current interface as the LDP transport address.
Description
Use the mpls ldp transport-address command to configure an LDP transport address.
Use the undo mpls ldp transport-address command 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 GigabitEthernet 4/1/1, configure the link Hello transport address as the IP address of the current interface.
<Sysname> System-view
[Sysname] interface GigabitEthernet 4/1/1
[Sysname-GigabitEthernet4/1/1] mpls
[Sysname-GigabitEthernet4/1/1] mpls ldp
[Sysname-GigabitEthernet4/1/1] mpls ldp transport-address interface
# Configure the targeted Hello transport address as 10.1.1.1.
[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 the mpls lspv command to enable the LSP verification function and enter MPLS LSPV view.
Use the undo mpls lspv command 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 the mpls lsr-id command to configure the ID of an LSR.
Use the undo mpls lsr-id command to remove the ID of an LSR.
By default, no LSR ID is configured.
Your must configure the LSR ID of an LSR before configuring any other MPLS commands.
H3C recommens using 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 the mpls mtu command to specify the MPLS MTU of an interface.
Use the undo mpls mtu command to restore the default.
By default, the MPLS MTU is not configured for an interface. 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 may 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 may fail.
The commands do not apply to TE tunnel interfaces.
Examples
# Configure the MPLS MTU of interface GigabitEthernet 3/1/1 as 1000.
<Sysname> system-view
[Sysname] mpls
[Sysname-mpls] quit
[Sysname] interface GigabitEthernet 3/1/1
[Sysname-GigabitEthernet3/1/1] mpls
[Sysname-GigabitEthernet3/1/1] mpls mtu 1000
path-vectors
Syntax
path-vectors pv-number
undo path-vectors
View
MPLS LDP VPN instance view, MPLS LDP view
Default level
2: System level
Parameters
pv-number: Path vector length, in the range of 1 to 32.
Description
Use the path-vectors command to configure the path vector length.
Use the undo path-vectors command 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 LSP path vector length to 3 for the public network LDP instance.
<Sysname> system-view
[Sysname] mpls ldp
[Sysname-mpls-ldp] path-vectors 3
# Set the LSP path vector length 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 mask-length: Specifies a FEC by a destination IP address and the mask length of the destination address. The mask-length argument ranges from 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 ranges from 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 ranges from 1 to 9 and defaults to 3.
Description
Use the periodic-tracert command to enable periodic LSP tracert for a FEC.
Use the undo periodic-tracert command 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 the LSP 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 count argument ranges from 1 to 4294967295 and defaults to 5.
-exp exp-value: Specifies the EXP value for the echo request messages. The exp-value argument ranges from 0 to 7 and default to 0.
-h ttl-value: Specifies the TTL value for the echo request messages. The ttl-value argument ranges from 1 to 255 and defaults to 255.
-m wait-time: Specifies the interval for sending echo request messages. The wait-time argument ranges from 1 to 10000 milliseconds, and default to 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 response” 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 packet-size argument ranges from 65 to 8100 bytes and defaults to 100 bytes.
-t time-out: Specifies the timeout interval for the response to an echo request message. The time-out argument ranges from 0 to 65535 milliseconds and defaults to 2000 milliseconds.
-v: Displays detailed response information.
ipv4 dest-addr mask-length: Specifies a FEC by an IPv4 destination address and the mask length of the destination address. The mask-length argument ranges from 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 the ping lsp ipv4 command to check LSP connectivity.
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 the prefix-label advertise command to configure LDP to advertise prefix-based labels through remote sessions.
Use the undo prefix-label advertise command to restore the default.
By default, LDP does not advertise prefix-based label through a remote session.
A router can advertise prefix-based labels to its remote peers through remote sessions only after you have configured the prefix-label advertise command. However, a router can receive labels advertised by its remote peers no matter whether you have configured this command or not.
After the router receives labels advertised by the peer, the corresponding LDP LSP can be established if the following conditions are satisfied:
· 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: IP address of the remote peer.
Description
Use the remote-ip command to configure the LDP remote peer IP address.
Use the undo remote-ip command to remove the configuration.
The LDP remote peer IP address must be the MPLS LSR ID of the remote peer. Two peers use their respective MPLS LSR ID 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 the remote-ip bfd command to enable BFD to detect the IP connectivity to the remote LDP peer.
Use the undo remote-ip bfd command to disable BFD detection of the IP connectivity to the remote LDP peer.
By default, BFD detection is disabled.
Examples
# Enable BFD to detect the IP connectivity to the remote LDP peer 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 the reset mpls ldp command to reset LDP sessions.
With no parameters specified, the command resets all sessions of the public network LDP instance.
Examples
# Reset the sessions of all public network LDP instances.
<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 sessions 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 the reset mpls statistics interface command to clear MPLS statistics for a specific or all MPLS interfaces.
Related commands: display mpls statistics interface.
Examples
# Clear MPLS statistics for interface GigabitEthernet 4/1/1.
<Sysname> reset mpls statistics interface GigabitEthernet 4/1/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 the reset mpls statistics lsp command to clear LSP statistics.
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 the static-lsp egress command to configure a static LSP taking the current LSR as the egress.
Use the undo static-lsp egress command 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 static LSP bj-sh, taking the current LSR as the egress, GigabitEthernet4/0/1 as the incoming interface, and 233 as the incoming label.
<Sysname> system-view
[Sysname] static-lsp egress bj-sh incoming-interface GigabitEthernet 4/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 the static-lsp ingress command to configure a static LSP taking the current LSR as the ingress.
Use the undo static-lsp ingress command to remove a static LSP taking the current LSR as the ingress.
When you configure a static LSP on the local 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.
Do not specify the public address of an interface on the local LSR as the next hop address.
Related commands: display mpls static-lsp, static-lsp egress, and static-lsp transit.
Examples
# Configure static LSP 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 the static-lsp transit command to configure a static LSP taking the current LSR as a transit LSR.
Use the undo static-lsp transit command 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 static LSP bj-sh, taking the local LSR as a transit LSR, interface GigabitEthernet 4/2/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 4/2/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: LSP statistics reading interval, in the range of 30 to 65535, in seconds.
Description
Use the statistics interval command to set the interval for reading collected statistics.
Use the undo statistics interval command 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 exp-value argument ranges from 0 to 7 and defaults to 0.
-h ttl-value: Specifies the TTL value for the echo request messages. The ttl-value argument ranges from 1 to 255 and defaults to 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 response” 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 time-out argument ranges from 0 to 65535 milliseconds and defaults to 2000 milliseconds.
ipv4 dest-addr mask-length: Specifies a FEC by an IPv4 destination address and the mask length of the destination address. The mask-length argument ranges from 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 the tracert lsp ipv4 command to locate MPLS LSP errors on the LSP for a FEC.
Examples
# Locate errors along the LSP for FEC 3.3.3.9.
<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 the ttl expiration enable command to enable the router to send back an ICMP TTL exceeded message in response to an MPLS TTL expired packet.
Use the undo ttl expiration enable command to disable sending back ICMP TTL exceeded messages for MPLS TTL expired packets.
By default, this function is enabled.
Related commands: ttl expiration pop.
Examples
# Disable the system from sending ICMP TTL exceeded messages for received MPLS TTL expired packets.
<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 the ttl expiration pop command 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 the undo ttl expiration pop command 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 router 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: Enables MPLS IP TTL propagation for public network packets.
vpn: Enables MPLS IP TTL propagation for VPN packets.
Description
Use the ttl propagate command to enable MPLS IP TTL propagation for public network packets or VPN packets.
Use the undo ttl propagate command 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