Syntax
debugging mpls lspm { agent | all | event | ftn |
interface | packet | policy | process | vpn }
undo debugging mpls lspm { agent | all | event | ftn | interface
| packet | policy | process | vpn }
View
User view
Parameter
agent:
Enables all MPLS Agent debugging.
all: Enables
all MPLS-related debugging.
event:
Enables debugging of various MPLS events.
ftn: Enables
MPLS ftn debugging.
interface:
Enables the MPLS debugging on the message sending/receiving interface.
packet:
Enables MPLS packet debugging.
policy:
Enables MPLS policy debugging.
process:
Enables debugging of MPLS internal process.
vpn: Enables
all MPLS VPN debugging.
Description
Use the debugging mpls lspm command
to enable various LSP debugging.
Use the undo debugging mpls lspm
command to disable the corresponding debugging.
By default, all debugging is disabled.
This command is used to the debug MPLS
LSPM. As debugging will affect the performance of the router, you are
recommended to use the command with caution.
Example
# Enable all MPLS LSP VPN debugging.
<H3C>
debugging mpls lspm vpn
1.1.2 display
mpls fast-forwarding cache
Syntax
display
mpls fast-forwarding cache
View
Any view
Parameter
None
Description
Use the display mpls fast-forwarding
cache command to display MPLS fast forwarding information.
Example
# Display MPLS fast forwarding information.
<H3C> display mpls
fast-forwarding cache
Syntax
display mpls interface
View
Any view
Parameter
None
Description
Use the display mpls interface
command to view all MPLS-enabled interfaces.
Related command: display mpls lsp, display
mpls statistics, display static-lsp.
Example
# Display all MPLS-enabled interfaces.
[H3C] display mpls interface
Syntax
display
mpls lsp [ verbose ] [ include text
]
View
Any view
Parameter
verbose:
Displays detailed information.
include text: Displays the information with the specified string included.
Description
Use the display mpls lsp command to
view LSP information.
By default, the display mpls lsp
command displays all LSP information.
Related command: display mpls interface,
display mpls statistics, display static-lsp.
Example
# Display all LSPs whose incoming
interfaces are Serial 3/0/0.
[H3C] display mpls lsp include incoming-interface
serial3/0/0
Syntax
display mpls static-lsp [ verbose ] [ include text ]
View
Any view
Parameter
verbose:
Displays detailed information.
include text: Displays the information with the specified string included.
Description
Use the display mpls static-lsp
command to view the information of all or one static LSP(s).
Related command: display mpls interface,
display mpls lsp, and display mpls statistics.
Example
# Display
information of the static LSP named “citiya-cityb”.
[H3C]
display mpls static-lsp include citya-cityb
Syntax
display mpls
statistics { interface { all | interface-type
interface-number } } | { lsp [ lsp-Index | all | name
lsp-name ] } }
View
Any view
Parameter
interface-type:
Type of network interface.
Interface-number: Number of network interface.
lsp-Index: LSP
index
all: All
LSPs
name
lsp-name: Name of LSP
Description
Use the display mpls statistics
command to view statistics of all or one LSP(s) and LSP statistics on all or
one interface(s).
Specifically, the displayed information
includes the numbers of octets, packets, errors and discarded packets processed
on each LSP ingress and egress, as well as the numbers of octets, packets,
errors and discarded packets received and transmitted on each MPLS-enabled
interface.
Execution of the display
mpls statistics command only displays LSP statistics of public networks.
For those packets that only carry private network labels, this command does not
work.
Related command: display mpls interface,
display mpls lsp, and display mpls static-lsp.
Example
# Display MPLS statistics.
[H3C] display mpls statistics lsp all
Building the
information...
LSP Index/LSP Name :
1/lsp1
InSegment Octets of LSP is:
0
InSegment Packets of LSP is:
0
InSegment Errors of LSP is:
0
InSegment Discard Packets of LSP
is: 0
LSP Index/LSP Name :
1/lsp1
OutSegment Octets of LSP is:
0
OutSegment Packets of LSP is:
0
OutSegment Errors of LSP is:
0
OutSegment Discard Packets of LSP
is: 0
LSP Index/LSP Name :
17416/dynamic-lsp
InSegment Octets of LSP is:
0
InSegment Packets of LSP is:
0
InSegment Errors of LSP is:
0
InSegment Discard Packets of LSP
is: 0
LSP Index/LSP Name :
17416/dynamic-lsp
OutSegment Octets of LSP is:
0
OutSegment Packets of LSP is:
0
OutSegment Errors of LSP is:
0
OutSegment Discard Packets of LSP
is: 0
# Display MPLS statistics on all
interfaces.
[H3C] display mpls statistics
interface all
Showing statistics about all MPLS
interface:
The statistics of interface : Serial0/0/0
The statistics of interface in
:
In Octets of Mpls interface is:
0
In Packets of Mpls interface
is: 0
In Errors of Mpls interface is:
0
In Discard Packets of Mpls
interface is: 0
The statistics of interface out
:
Out Octets of Mpls interface
is: 0
Out Packets of Mpls interface
is: 0
Out Errors of Mpls interface
is: 0
Out Discard Packets of Mpls
interface is: 0
The statistics of interface :
Serial0/0/1
The statistics of interface in
:
In Octets of Mpls interface is:
0
In Packets of Mpls interface
is: 0
In Errors of Mpls interface is:
0
In Discard Packets of Mpls
interface is: 0
The statistics of interface out
:
Out Octets of Mpls interface
is: 0
Out Packets of Mpls interface
is: 0
Out Errors of Mpls interface
is: 0
Out Discard Packets of Mpls
interface is: 0
Syntax
lsp-trigger {
all | ip-prefix ip-prefix }
undo lsp-trigger { all | ip-prefix [ ip-prefix ] }
View
MPLS view
Parameter
all:
Triggers LSPs at any route.
ip-prefix: Triggers
LSPs only at the routes matching the specified IP prefix list.
ip-prefix: Name
of the IP prefix list, a string of 1 to 19 characters.
Description
Use the lsp-trigger command to
configure topology-triggered LSP creation policy.
Use the undo lsp-trigger command to
remove the filtering conditions specified by parameters and disable LSP trigger
creation at any route.
By default, all kinds of routing protocols
are filtered out.
If no
topology-triggered policy is configured, LSPs can be triggered at all host
routes with 32-bit masks.
If you import an
IP-prefix rule without contents, LSPs can be triggered at all routes according
to the IP-prefix usage convention in Comware.
Related command: ip ip-prefix.
Example
# Triggers LSPs at all routes.
[H3C-mpls] lsp-trigger all
Syntax
mtu
label-including
undo mtu label-including
View
MPLS view
Parameter
None
Description
Use the mtu label-including command
to configure to include MPLS label length in outgoing interface MTU
calculation.
Use the undo mtu label-including command
to restore the default setting.
By default, MPLS label length is not
included in outgoing interface MTU calculation.
Example
# Configure to include MPLS label length in
outgoing interface MTU calculation.
[H3C-mpls] mtu label-including
Syntax
mpls
undo mpls
View
System view, routing protocol view,
interface view, virtual interface view
Parameter
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 on the interface.
Use the undo mpls command in
interface view to disable MPLS on the interface.
By default, MPLS is not enabled.
Before you
can enter MPLS view, you must configure the mpls lsr-id command first.
In addition, you can configure other MPLS commands only after you enter MPLS
view.
Related command: mpls enable |
disable.
Example
# Enter MPLS view in system view.
[H3C] mpls
[H3C-mpls]
# Execute the mpls command in
interface view.
[H3C-Ethernet0/0/0] mpls
% Info: MPLS in the interface is
starting, please wait...OK
Syntax
mpls lsr-id ip-address
undo mpls lsr-id
View
System view
Parameter
ip-address:
LSR ID, with the format like IP address, used to identify an LSR.
Description
Use the mpls lsr-id command to
configure an LSR ID.
Use the undo mpls lsr-id command to
delete an LSR ID.
By default, no LSR has an ID.
LSR-ID address must be the interface
address of the router, and the address must be reachable in the entire network.
In general, it is recommended to use the address of the loopback interface.
As a premise for configuring other MPLS
commands, this command you can configure an LSR ID.
Related command: display mpls interface.
Example
# Set the ID of the LSR to 202.17.41.246.
[H3C] mpls lsr-id 202.17.41.246
% Mpls lsr-id changed.
Syntax
reset
mpls fast-forwarding cache
View
User view
Parameter
None
Description
Use the reset mpls fast-forwarding cache
command to clear MPLS fast forwarding information.
Example
# Clear MPLS fast forwarding information.
<H3C> reset mpls
fast-forwarding cache
Syntax
reset mpls statistics { interface { all | interface-type interface-num
} | lsp { lsp-index | all | name lsp-name }
}
View
User view
Parameter
all: All
interfaces or all LSPs
interface-type: Type of a network interface.
Interface-num: Number of a network interface.
lsp-Index: LSP
index
name
lsp-name: Name of LSP.
Description
Use the reset mpls statistics
command to clear MPLS statistics.
You can use this command to clear the
statistics on all or one interface(s); or the statistics on all or one LSP(s).
Related command: display mpls statistics.
Example
# Clear
statistics on the LSP named “citya-cityb”.
<H3C>
reset mpls statistics lsp name citya-cityb
Syntax
snmp-agent trap enable ldp
undo snmp-agent trap enable ldp
View
System view
Parameter
None
Description
Use the snmp-agent trap enable ldp
command to enable Trap function in MPLS LDP creation.
Use the undo snmp-agent trap
enable ldp command to disable Trap function in MPLS LDP creation.
By default, TRAP function is not enabled
during MPLS LDP creation.
Example
# Enable TRAP function during MPLS LDP
creation.
[H3C] snmp-agent trap enable ldp
Syntax
snmp-agent trap enable lsp
undo snmp-agent trap enable lsp
View
System view
Parameter
None
Description
Use the snmp-agent
trap enable lsp command to enable Trap function in MPLS LSP creation.
Use the undo
snmp-agent trap enable lsp command to disable Trap function in MPLS LSP
creation.
By default, TRAP function is disabled
during MPLS LSP creation.
Example
# Enable TRAP function during MPLS LSP
creation.
[H3C] snmp-agent trap enable lsp
Syntax
static-lsp egress
lsp-name incoming-interface interface-type interface-num in-label
in-label-value
undo static-lsp egress lsp-name
View
MPLS view
Parameter
lsp-name:
Name of LSP.
interface-type: Type of network interface.
Interface-num: Number of network interface.
in-label-value: Value of inbound label, ranging from 16 to 1023.
Description
Use the static-lsp egress command to
configure a static LSP for an egress LSR.
Use the undo static-lsp egress
command to delete an LSP for an egress LSR.
Related command: static-lsp ingress,
debugging mpls.
Example
# Configure a static LSP named citya-cityb
on the egress LSR.
[H3C-mpls] static-lsp egress
citya-cityb incoming-interface serial8/0/0 in-label 233
Syntax
static-lsp
ingress lsp-name destination
dest-addr { addr-mask | mask-length } { nexthop next-hop-addr
| outgoing-interface interface-type interface-num } out-label
out-label-value
undo
static-lsp ingress lsp-name
View
MPLS view
Parameter
lsp-name:
Name of LSP.
dest-addr:
Destination IP address.
addr-mask:
Destination IP address mask.
mask-length:
Mask length of destination IP address
next-hop-addr: Next-hop address.
interface-type: Type of network interface.
Interface-num: Number of network interface.
out-label-value: Value of outbound label, ranging from 16 to 1023.
Description
Use the static-lsp ingress command
to configure a static LSP for the ingress LSR.
Use the undo static-lsp ingress
command to delete an LSP for the ingress LSR.
In addition to configuring a static LSP for
the ingress LSR, you can set precedence value and metric value for the LSP with
this command.
Related command: static-lsp egress, static-lsp
transit, debugging mpls.
Example
# Configure a static LSP for the ingress
LSR heading for the destination address 202.25.38.1.
[H3C-mpls] static-lsp ingress
citya-cityb destination 202.25.38.1 24 nexthop 202.55.25.33 out-label 237
Syntax
static-lsp transit lsp-name incoming-interface interface-type
interface-num in-label in-label-value { nexthop next-hop-addr
| outgoing-interface interface-type interface-num } out-label
out-label-value
undo
static-lsp transit lsp-name
View
MPLS view
Parameter
lsp-name:
Name of LSP.
interface-type: Type of an incoming or outgoing interface.
Interface-num: Number of an incoming or outgoing interface.
next-hop-addr: Next-hop address.
in-label-value: Value of inbound label, ranging from 16 to 1023.
out-label-value: Value of outbound label, ranging from 16 to 1023.
Description
Use the static-lsp transit command
to configure a static LSP for a transit LSR.
Use the undo static-lsp transit
command to delete an LSP for a transit LSR.
Related command: static-lsp egress, static-lsp
ingress.
Example
# Configure a static LSP for the serial
interface Serial0/0/0 on a transit LSR, with an inbound label of 123 and an
outbound label of 253.
[H3C-mpls] static-lsp transit
citya-cityb incoming-interface serial0/0/0 in-label 123 nexthop 202.34.114.7
out-label 253
Syntax
ttl expiration pop
undo ttl expiration pop
View
MPLS view
Parameter
None
Description
Use the ttl expiration command to
configure the router to forward ICMP responses by local IP routing when the
MPLS TTL expires.
Use the undo ttl expiration command
to disable the function.
For a one-tier MPLS packet with TTL expired,
its ICMP response is forwarded by local IP routing by default.
You are recommended to configure the undo
ttl expiration command on the ASBRs or the SPEs on an HoVPN network. This
ensures that you can get the correct forwarding path of the public-network
routers when tracerting to another device on the VPN.
Use the undo mpls command to clear
all the configurations related to the ttl expiration command.
Related command: ttl propagate.
Example
# Send back an ICMP packet along the LSP if
the TTL of an MPLS packet expires.
[H3C-mpls] undo ttl expiration pop
Syntax
ttl propagate { public | vpn }
undo ttl propagate { public | vpn }
View
MPLS view
Parameter
public:
Configures to apply TTL duplication to the packets on the public network.
vpn:
Configures to apply TTL duplication to the VPN packets.
Description
Use the ttl propagate command to
enable IP TTL duplication of MPLS.
Use the undo ttl propagate command
to disable IP TTL duplication of MPLS.
The ttl propagate
command is only available with the NE16E, NE08E, and NE05.
Caution:
The configuration
of TTL duplication must be the same on all the PEs. If otherwise, the results
of traceroutes cannot reflect the real network conditions.
Related command: tracert and ttl
expiration.
Example
# Apply IP TTL duplication of MPLS to VPN
packets.
[H3C-mpls] ttl propagate vpn
Syntax
debugging mpls ldp { { all | main | advertisement |
session | pdu | notification } [ interface interface-type
interface-number ] | remote }
undo debugging mpls ldp { all | main | advertisement |
session | pdu | notification } [ interface interface-type
interface-number ] | remote }
View
User view
Parameter
all: Displays
all debugging information related to LDP.
main: Displays
the debugging information of LDP main tasks.
advertisement: Displays the debugging information during processing of LDP
advertisement.
session:
Displays debugging information during processing of LDP session.
pdu:
Displays the debugging information during processing of PDU.
notification:
Displays the debugging information during processing of notification.
interface interface-type interface-number:
Displays all the debugging information of a specified interface.
remote:
Displays debugging information of all remote peers.
Description
Use the debugging ldp command to
enable debugging of LDP messages.
Use the undo debugging ldp command
to disable debugging of LDP messages.
You can use this command to view LDP
debugging information, but take caution when doing so.
Example
# Enable LDP debugging.
<H3C> debugging mpls ldp all
Syntax
display mpls ldp
View
Any view
Parameter
None
Description
Use the display mpls ldp command to
view LDP and LSR information.
Related command: mpls ldp, mpls
ldp hops-count, mpls ldp loop-detection, mpls ldp path-vectors.
Example
# Display LDP and LSR information.
[H3C] display mpls ldp
Syntax
display mpls ldp buffer-info
View
Any view
Parameter
None
Description
Use the display mpls ldp buffer-info
command to view the buffer information of LDP.
Example
# Display LDP buffer information.
[H3C] display mpls ldp buffer-info
-----------------------------------------------------------------
Buffer-Name Buffer-ID
Buffer-Size Total-Count Free-Count
-----------------------------------------------------------------
ENTITY 0
292 199 195
LOCAL-IF 1
36 200 196
PEER-IF 2
40 201 195
PDU 3
204 249 249
ADJACENCY 4
56 201 198
PEER-INF 5
116 201 198
SESSION 6
176 201 198
US-BLK 7
264 1052 1028
DS-BLK 8 240
1052 1042
FEC 9
40 1042 1032
US-LIST 10
16 1052 1028
TRIG-BLK 11
56 2076 2071
LABEL-RANGE 12
20 198 198
CR-TUNNEL 13
124 128 128
ER-HOP 14
40 4096 4096
IF-MSG 15
24 9999 9999
-----------------------------------------------------------------
Buffer no
error.
1.2.4 display mpls ldp interface
Syntax
display mpls ldp interface
View
Any view
Parameter
None
Description
Use the display
mpls ldp interface command to view the information of an LDP-enabled
interface.
Related command: mpls ldp enable, display
mpls ldp session.
Example
# Display the information of an LDP-enabled
interface.
[H3C-Ethernet3/0/0] display mpls ldp
interface
Syntax
display mpls ldp lsp
View
Any view
Parameter
None
Description
Use the display mpls ldp lsp command
to view relevant LSP information created via LDP.
Related command: display mpls lsp.
Example
# Display LSP.
[H3C-Ethernet3/0/0] display mpls ldp
lsp
Syntax
display mpls ldp peer
View
Any view
Parameter
None
Description
Use the display
mpls ldp peer command to view peer information.
Example
# Display peer information.
[H3C] display mpls ldp peer
Syntax
display mpls ldp remote
View
Any view
Parameter
None
Description
Use the display mpls ldp remote
command to view the configured remote peer information.
Related command: mpls ldp remote and
remote-peer.
Example
# Display the configured remote-peer
information.
[H3C] display mpls ldp remote
Syntax
display mpls ldp session
View
Any view
Parameter
None
Description
Use the display mpls ldp session
command to display the session between peer entities.
Related
command: mpls ldp enable.
Example
# Display the session between peer entities.
[H3C] display mpls ldp session
Local LDP ID: 1.1.1.9:5; Peer LDP
ID: 4.4.4.9:0
TCP Connection: 1.1.1.9 <-
4.4.4.9
Session State: Operational
Session Role: Passive
Session existed time:
Basic Hello Packets Sent/Received:
85/67
KeepAlive Packets Sent/Received:
1/1
Negotiated Keepalive hold time:
60 Peer PV Limit: 0
LDP Basic Discovery Source((A)
means active):
Ethernet1/0/1.3(A)
Ethernet1/0/1.2
Ethernet1/0/1.1
(A) in “Ethernet1/0/1.3(A)”
displayed above indicates that the interface is the main interface.
Syntax
mpls label advertise { implicit-null | explicit-null
| non-null }
undo label ldp advertise { implicit-null | explicit-null
| non-null }
View
MPLS view
Parameter
explicit-null: Specifies at egress to distribute an explicit null label to the
penultimate hop.
implicit-null: Specifies at egress to distribute an implicit null label to the
penultimate hop.
non-null:
Specifies at egress to distribute a normal label to the penultimate hop.
Label value 0 stands for IPv4 Explicit NULL Label, which is valid
only at the bottom of label stack. That is, the label stack must be popped and
forwarded as the IPv4 header.
Label value 1 stands for Router Alert Label, which is valid except
at the bottom of label stack. When receiving messages with label value 1 at the
top of the label stack, the system forwards them into local software module for
further processing. If a lower-layer label is to be forwarded, it must be put
with Router Alert Label.
Label value 2 stands for IPv6 Explicit NULL Label, which is valid
only at the bottom of label stack. That is, the label stack must be popped and
forwarded as the IPv6 header.
Label value 3 stands for Implicit NULL Label, which can be
distributed and forwarded, but cannot be placed in encapsulation. When LSR
switches top-layer labels, it only needs to pop the labels, but cannot replace
them when using label 3 to replace the original label.
Labels 4 to 15 are reserved.
Description
Use the mpls label advertise command
to specify at the egress the type of the label to be distributed to the
penultimate hop.
Use the undo mpls label advertise
command to restore the default.
When the keyword explicit-null is
selected, the m-layer label of a packet with m-layer label parameter is popped
at the penultimate LSR of the LSP, instead of at the egress LSR. This can lower
the stack operation demands at egress node and somewhat mitigate the load on
the egress node.
By default, the implicit label is assigned
to the penultimate hop.
If the explicit null label is assigned to
the penultimate hop, it can only reside at the bottom of the label stack.
Example
# Specify at the egress to distribute a normal
label to the penultimate hop.
[H3C-mpls] mpls label advertise
non-null
Syntax
mpls ldp
undo mpls ldp
View
System view
Parameter
None
Description
Use the mpls ldp command to enable
LDP.
Use the undo mpls ldp command to
disable LDP.
By default, LDP is disabled.
Before enabling LDP, you must enable MPLS
and configure LSR ID first.
Related command: mpls lsr-id.
Example
# Enable LDP.
[H3C] mpls ldp
1.2.11 mpls ldp enable
Syntax
mpls ldp enable
mpls ldp disable
View
Interface view
Parameter
None
Description
Use the mpls ldp enable command to
enable LDP on the interface.
Use the undo mpls ldp enable command
to disable LDP on an interface.
By default, LDP is disabled on the
interface.
To enable an interface, you must enable LDP
first. After LDP is enabled on an interface, peer discovery and session
creation starts.
Example
# Enable LDP on the interface.
[H3C-Ethernet3/0/0] mpls ldp enable
Syntax
mpls ldp hops-count hop-number
undo mpls ldp hops-count
View
System view
Parameter
hop-number:
Maximum hops of loop detection, ranging from 1 to 32.
Description
Use the mpls ldp hops-count command
to set the maximum hops of loop detection.
Use the undo mpls ldp hops-count
command to restore the default value.
By default, the maximum hops of loop
detection are 32.
This command should be configured before
LDP is enabled on any interface. Its value, which depends on actual networking
situation, decides the loop detection speed during LSP creation
Related command: mpls ldp loop-detection
and mpls ldp path-vector.
Example
# Set the maximum hops of loop detection to
22.
[H3C] mpls ldp hops-count 22
# Set the maximum hops of loop detection to
its default value, that is, 32.
[H3C] undo mpls ldp hops-count
Syntax
mpls ldp loop-detect
undo mpls ldp loop-detect
View
System view
Parameter
None
Description
Use the mpls
ldp loop-detect command to enable loop detection.
Use the undo
mpls ldp loop-detect command to disable loop detection.
By default,
loop detection is disabled in the system.