Title | Size | Download |
---|---|---|
01-MPLS Basics Commands | 222.98 KB |
Table of Contents
Chapter 1 MPLS Basics Configuration Commands
1.1 MPLS Basic Configuration Commands
1.1.3 debugging mpls lfib slot drv
1.1.5 debugging mpls management
1.1.10 display mpls ldp cr-lsp
1.1.11 display mpls ldp interface
1.1.14 display mpls ldp remote-peer
1.1.15 display mpls ldp session
1.1.16 display mpls ldp vpn-instance
1.1.18 display mpls lsp statistics
1.1.19 display mpls route-state
1.1.20 display mpls static-lsp
1.1.21 display mpls statistics interface
1.1.22 display mpls statistics lsp
1.1.35 mpls ldp (interface view)
1.1.38 mpls ldp timer hello-hold
1.1.39 mpls ldp timer keepalive-hold
1.1.40 mpls ldp transport-address
1.1.47 reset mpls statistics interface
1.1.48 reset mpls statistics lsp
1.1.49 snmp-agent trap enable mpls
Chapter 1 MPLS Basics Configuration Commands
& Note:
l Except 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 serves the public network LDP in MPLS LDP view but serves the MPLS LDP VPN instance in MPLS LDP VPN instance view.
l For information about GR commands, refer to GR Commands in System Volume.
1.1 MPLS Basic Configuration Commands
1.1.1 debugging mpls ldp
Syntax
debugging mpls ldp { advertisement | all | error | hsb | main | notification | pdu | session | socket | timer } [ interface interface-type interface-number ]
debugging mpls ldp remote-peer [ remote-peer-name ]
undo debugging mpls ldp { advertisement | all | error | hsb | main | notification | pdu | session | socket | timer } [ interface interface-type interface-number ]
undo debugging mpls ldp remote-peer [ remote-peer-name ]
View
Default Level
1: Monitor level
Parameters
advertisement: Specifies advertisement event debugging.
all: Specifies all event debugging.
error: Specifies error event debugging.
hsb: Specifies hot standby event debugging.
main: Specifies debugging for external module related main interface event .
notification: Specifies notification event debugging.
pdu: Specifies PDU packet event debugging.
session: Specifies session event debugging.
socket: Specifies socket event debugging.
timer: Specifies timer event debugging.
interface-type interface-number: Specifies an LDP-enabled interface by its type and number.
remote-peer remote-peer-name: Specifies a remote peer name.
Description
Use the debugging mpls ldp command to enable debugging for LDP.
Use the undo debugging mpls ldp command to disable debugging for LDP.
By default, debugging is disabled for LDP.
Examples
# Enable LDP advertisement event debugging by executing the debugging mpls ldp advertisement command
Start two switches, connect the two switches, and configure MPLS and MPLS LDP for them to establish a session between them. Enable LDP advertisement event debugging by executing the debugging mpls ldp advertisement command on one switch while restarting LDP on the other switch.
<PE1> debugging mpls ldp advertisement
<PE1>
*0.16830023 PE1 LDP/8/Advertisement:
DU Re-advertise for FEC: 140.2.2.2/0xffffffff.
*0.16830023 PE1 LDP/8/Advertisement:
0 - FEC: 140.2.2.2/0xffffffff, Successful Next Hop Query
// The DU Re-adverse timer refreshes the FEC information periodically.
#Dec 22 14:55:50:388 2005 PE1 LDP/5/SessionDown: Session(140.2.2.2:0. public Instance)'s state change to Down
// A Trap message on Session Down.
*0.16838403 PE1 LDP/8/Advertisement: Vlan-interface 12
FEC: 140.2.2.2/0xffffffff, DU DS state machine process, DS Peer 140.2.2.2:0, DSCB's state: Established , Event: DownStream Lost
// The opposite end restarts LDP, and the upstream state machine processes upstream events.
*0.16838403 PE1 LDP/8/Advertisement:
FEC: 140.2.2.2/0xffffffff, DU Ingress US state machine process, USCB's state: Established Event: Internal DownStream Withdraw
// The downstream state machine processes upstream events.
*0.16838403 PE1 LDP/8/Advertisement:
LDP send LSP Message (Event: 3) to LSPM for LSP:
0 140.2.2.2/32 -----/3 140.12.1.2 ------- Vlan12
The token is: 0. The MTU is: 1500.
// Send an LSP message to LSPM.
*0.16838403 PE1 LDP/8/Advertisement:
Delete USCB, FEC: 140.2.2.2/0xffffffff.
*0.16838403 PE1 LDP/8/Advertisement:
Delete DSCB, FEC: 140.2.2.2/0xffffffff.
*0.16838419 PE1 LDP/8/Advertisement:
Delete FEC Radix Tree Node, Destination: 140.2.2.2,Mask: 0xffffffff
*0.16838419 PE1 LDP/8/Advertisement:
Downstream Lost, Cleanup Successful
// Delete the USCB, DSCB, and FEC node; the downstream is lost; and the USCB, DSCB, and FEC node information is cleaned up successfully.
*0.16838538 PE1 LDP/8/Advertisement:
Start to process LSP Message(Type: 13) from LSPM - FEC: 140.2.2.2/0xffffffff, Nexthop: 140.12.1.2
// Re-establish the session, and process the LSPM message.
*0.16838538 PE1 LDP/8/Advertisement:
Start to process Route add (FEC: 140.2.2.2/0xffffffff, OutIf: Vlan-interface 12 Nexthop: 140.12.1.2)
// Process a route adding event.
*0.16868001 PE1 LDP/8/Advertisement: Vlan-interface 12
Receive Label Mapping Message from Peer(140.2.2.2:0) for FEC: 140.2.2.2/0xffffffff
// Receive a label mapping message.
*0.16868001 PE1 LDP/8/Advertisement:
Create FEC Radix Tree Node, Destination: 140.2.2.2, Mask: 0xffffffff
*0.16868001 PE1 LDP/8/Advertisement:
Create cross node for FEC: 140.2.2.2, Mask: 0xffffffff.
*0.16868001 PE1 LDP/8/Advertisement:
Create DSCB, FEC: 140.2.2.2/0xffffffff.
// Create FEC node, cross node, and DSCB.
*0.16868001 PE1 LDP/8/Advertisement:
0 - FEC: 140.2.2.2/0xffffffff, Successful Next Hop Query
*0.16868001 PE1 LDP/8/Advertisement:
Update OutSeg Info, FEC: 140.2.2.2/0xffffffff, NHCount: 1.
// Update the information of an outgoing label.
*0.16868001 PE1 LDP/8/Advertisement:
Add Info Out_If: 3145744, NHAddr: 140.12.1.2.
*0.16868001 PE1 LDP/8/Advertisement: Vlan-interface 12
FEC: 140.2.2.2/0xffffffff, DU DS state machine process, DS Peer 140.2.2.2:0, DSCB's state: Idle , Event: LDP Mapping
// The downstream state machine processes the LDP Mapping event.
*0.16868001 PE1 LDP/8/Advertisement:
0 - FEC: 140.2.2.2/0xffffffff, Successful Next Hop Query
*0.16868017 PE1 LDP/8/Advertisement:
Create USCB, FEC: 140.2.2.2/0xffffffff.
// Create a USCB.
*0.16868032 PE1 LDP/8/Advertisement:
FEC: 140.2.2.2/0xffffffff, DU Ingress US state machine process, USCB's state: Idle Event: Internal DownStream Mapping
// The upstream state machine processes the Internal DownStream Mapping event.
*0.16868032 PE1 LDP/8/Advertisement:
LDP send LSP Message (Event: 1) to LSPM for LSP:
0 140.2.2.2/32 -----/3 140.12.1.2 ------- Vlan12
The token is: 557235. The MTU is: 1500.
// Inform LSPM that an LSP is created successfully.
# Enable LDP session event debugging by executing the debugging mpls ldp session command.
Start two switches, connect the two switches, and configure MPLS and MPLS LDP for them to establish a session between them. Enable LDP session event debugging by executing the debugging mpls ldp session command on one switch while restarting LDP on the other switch.
<PE1> debugging mpls ldp session
<PE1>
*0.19200353 PE1 LDP/8/Session: Vlan-interface 12
Link Hello message sent on interface: Vlan-interface 12
// Send a Hello message.
*0.19201475 PE1 LDP/8/Session:
Session(140.3.3.3) received keep alive message on Operational state.
// Receive a Keepalive message.
*0.19202353 PE1 LDP/8/Session: Vlan-interface 12
Link Hello message received on interface: Vlan-interface 12
// Receive a Hello message.
*0.19202695 PE1 LDP/8/Session:
Sent keep alive message to LSR: 140.3.3.3.
// Send a Keepalive message.
#Dec 22 15:32:40:498 2005 PE1 LDP/5/SessionDown: Session(140.2.2.2:0. public Instance)'s state change to Down
// Restart the opposite end, and print a Trap message on Session DOWN.
*0.19212498 PE1 LDP/8/Session: Vlan-interface 12
Session(140.2.2.2) received address withdraw message on Operational state.
// Receive an address withdrawing message.
*0.19212498 PE1 LDP/8/Session: Vlan-interface 12
Session(140.2.2.2) received notification in Operational state.
// Receive a notification.
*0.19212498 PE1 LDP/8/Session:
Send shut down notify,Tcp connid is 3!
// Send a shutdown notification.
*0.19212498 PE1 LDP/8/Session:
Informed Session Down event to L2VPN
// Inform L2VPN of Session DOWN.
*0.19212498 PE1 LDP/8/Session:
Session counter is 1
*0.19215395 PE1 LDP/8/Session: Vlan-interface 12
Link Hello message sent on interface: Vlan-interface 12
// Send a Hello message.
*0.19215395 PE1 LDP/8/Session: Vlan-interface 12
Link Hello message received on interface: Vlan-interface 12
// Receive a Hello message.
*0.19215395 PE1 LDP/8/Session:
Created session with LSR: 140.2.2.2
// Create a session.
*0.19215395 PE1 LDP/8/Session: Vlan-interface 12
Link Hello message sent on interface: Vlan-interface 12
*0.19215421 PE1 LDP/8/Session: Vlan-interface 12
Session(140.2.2.2) received init msg in Initialised state.
// Receive an initialization message.
*0.19215421 PE1 LDP/8/Session:
Session Init message sent to LSR: 140.2.2.2
// Send an initialization message.
*0.19215421 PE1 LDP/8/Session: Vlan-interface 12
Sent keep alive message to LSR: 140.2.2.2.
// Send a Keepalive message.
*0.19215421 PE1 LDP/8/Session: Vlan-interface 12
Session(140.2.2.2)'s state changed from Initialised to Open received.
// The session’s state is changed.
#Dec 22 15:32:43:437 2005 PE1 LDP/5/SessionUp: Session(140.2.2.2:0. public Instance)'s state change to Up
// Display a Session-UP Trap message.
*0.19215437 PE1 LDP/8/Session: Vlan-interface 12
Session(140.2.2.2) received keep alive message on Open Received state.
// Receive a Keepalive message.
*0.19215437 PE1 LDP/8/Session: Vlan-interface 12
Session(140.2.2.2)'s state changed from Open received to operational.
// The session’s state is changed to Operational.
*0.19215437 PE1 LDP/8/Session:
Address message sent to LSR: 140.2.2.2
// Send an address message to the opposite end.
*0.19215437 PE1 LDP/8/Session:
Informed Session Up event to L2VPN
// Inform L2VPN of Session UP.
*0.19215437 PE1 LDP/8/Session: Vlan-interface 12
Session(140.2.2.2) received address message on Operational state.
// Receive an address message.
*0.19216438 PE1 LDP/8/Session:
Session(140.3.3.3) received keep alive message on Operational state.
// Receive a Keepalive message.
# Enable PDU packet event debugging by executing the debugging mpls ldp pdu command.
Start two switches, connect the two switches, and configure MPLS and MPLS LDP for them to establish a session between them. Execute the debugging mpls ldp pdu command on one switch.
<PE1>debugging mpls ldp pdu
<PE1>
*0.19804957 PE1 LDP/8/PDU:
Receive UDP Message from Peer: 140.3.3.3. Message content:
01 00 00 1c 00 00 17 bf 04 00 00 04 00 2d c0 00
04 01 00 04 8c 03 03 03 04 02 00 04 00 00 00 00
The message type: Hello Message.
// Receive a Hello message.
*0.19806530 PE1 LDP/8/PDU: Vlan-interface 12
Send UDP Link Hello Message on interface: Vlan-interface 12. Message content:
01 00 00 1c 00 00 17 ab 04 00 00 04 00 0f 00 00
04 01 00 04 8c 01 01 01 04 02 00 04 00 00 00 00
The message type: Hello Message.
// Send a Hello message.
*0.19807692 PE1 LDP/8/PDU:
Receive UDP Message from Peer: 140.2.2.2. Message content:
01 00 00 1c 00 00 2a 05 04 00 00 04 00 0f 00 00
04 01 00 04 8c 02 02 02 04 02 00 04 00 00 00 00
The message type: Hello Message.
// Receive a Hello message.
*0.19810159 PE1 LDP/8/PDU:
Received an LDP PDU from LSR: 140.2.2.2
*0.19810159 PE1 LDP/8/PDU: Vlan-interface 12
Receive TCP Message from Peer: 140.2.2.2. Message content:
02 01 00 04 00 00 2a 08
The message type: Keepalive Message.
// Receive a Keepalive message.
*0.19811519 PE1 LDP/8/PDU:
Received an LDP PDU from LSR: 140.3.3.3
*0.19811519 PE1 LDP/8/PDU:
Receive TCP Message from Peer: 140.3.3.3. Message content:
02 01 00 04 00 00 17 c2
The message type: Keepalive Message.
*0.19811550 PE1 LDP/8/PDU: Vlan-interface 12
Send UDP Link Hello Message on interface: Vlan-interface 12. Message content:
01 00 00 1c 00 00 17 ac 04 00 00 04 00 0f 00 00
04 01 00 04 8c 01 01 01 04 02 00 04 00 00 00 00
The message type: Hello Message.
*0.19812630 PE1 LDP/8/PDU:
Receive UDP Message from Peer: 140.2.2.2. Message content:
01 00 00 1c 00 00 2a 09 04 00 00 04 00 0f 00 00
04 01 00 04 8c 02 02 02 04 02 00 04 00 00 00 00
The message type: Hello Message.
*0.19815620 PE1 LDP/8/PDU: Vlan-interface 12
Send TCP Message to Peer: 140.2.2.2. Message content:
02 01 00 04 00 00 17 ad
The message type: Keepalive Message.
1.1.2 debugging mpls lfib
Syntax
debugging mpls lfib [ code | sync ]
undo debugging mpls lfib [ code | sync ]
View
User view
Default Level
2: System level
Parameters
code: Enables debugging for MPLS entry encoding and decoding.
sync: Enables debugging for MPLS entry synchronization.
Description
Use the debugging mpls lfib command to enable debugging for MPLS entry synchronization or encoding and decoding.
Use the undo debugging mpls lfib command to disable debugging for MPLS entry synchronization or encoding and decoding.
By default, the debugging for MPLS entry synchronization and encoding/decoding is disabled.
Caution:
l Do not enable debugging for MPLS entry encoding and decoding when there are a large number of entries to be sent. Otherwise, there will be large amounts of command output information, affecting the normal operation of the system.
l The output debugging information for encoding is from the main board, and that for decoding is from the interface board and the backup main board.
Table 1-1 debugging mpls lfib code command output description
Field |
Description |
SourceId |
Entry ID |
OperType |
Operation type |
Size |
Number of valid bytes in the entry |
CmdBlk Count |
Number of entries in the compressed packet |
CmdBlk Size |
Total number of entry bytes in the compressed packet |
Table 1-2 debugging mpls lfib sync command output description
Field |
Description |
time cost |
Time cost, in milliseconds |
total size |
Total number of bytes |
CmdQ length |
Number of entries in the queue |
CmdQ size |
Total number of entry bytes in the queue |
Table 1-3 debugging mpls lfib command output description
Field |
Description |
MFW-BFD |
Interaction between the MFW module and the BFD module |
Begin Process |
Begun creating/canceling BFD sessions |
End Process |
Stopped creating/canceling BFD sessions |
BFD MSG |
BFD message type |
SESS |
BFD session information: source address, destination address and egress interface |
Examples
# Enable debugging for MPLS entry encoding and decoding.
<sysname> debugging mpls lfib code
1.1.3 debugging mpls lfib slot drv
Syntax
debugging mpls lfib slot slot-number drv
undo debugging mpls lfib slot slot-number drv
View
User view
Default Level
2: System level
Parameters
lfib: Enables debugging for MFW.
slot slot-number: Enables debugging for the specified slot.
drv: Enables debugging for distribution to drive.
Description
Use the debugging mpls lfib slot drv command to enable debugging for MFW-to-drive entry distribution.
Use the undo debugging mpls lfib slot slot-num drv command to disable debugging for MFW-to-drive entry distribution.
By default, debugging for MFW-to-drive entry distribution is disabled.
This command is supported on devices with single-core CPUs only.
Table 1-4 debugging mpls lfib slot drv command output description
Field |
Description |
MFW |
Forwarding module |
DRV |
Drive module |
VC |
Virtual circuit |
ILM |
Incoming label mapping |
PW |
Pseudo wire |
Del |
Delete |
FRR |
Fast reroute |
MFW-DRV |
Interaction between the MFW module and the DRV module |
NHLFE |
Next hop label forwarding entry |
DrvContext |
Information returned to the upper layer by the drive |
Result is |
Operation result, 0 for success and 1 for failure. |
Examples
# Enable debugging for MFW-to-drive entry distribution on slot 1.
<sysname> debugging mpls lfib slot 1 drv
1.1.4 debugging mpls lspc
Syntax
debugging mpls lspc { all | error | event | packet }
undo debugging mpls lspc { all | error | event | packet }
View
User view
Default Level
2: System level
Parameters
all: Specifies all types of debugging.
error: Specifies error debugging.
event: Specifies event debugging.
packet: Specifies packet debugging.
Description
Use the debugging mpls lspc command to enable debugging for the LSP control module.
Use the undo debugging mpls lspc command to disable debugging for the LSP control module.
By default, debugging for the LSP control module is disabled.
Table 1-5 debugging mpls lspc command output description
Field |
Description |
DS TLV is invalid. |
The downstream mapping TLV is invalid. |
Socket send error! |
Failed to send packets by socket |
Examples
# Enable all types of debugging for the LSP control module.
<Sysname> terminal debugging
<Sysname> debuggiing mpls lspc all
1.1.5 debugging mpls management
Syntax
debugging mpls management { agent | all | event | interface | policy | process| tunnel }
undo debugging mpls management { agent | all | event | interface | policy | process| tunnel }
View
User view
Default Level
2: System level
Parameters
agent: Enables MPLS Agent debugging.
all: Enables MPLS debugging.
event: Enables MPLS event debugging..
interface: Enables MPLS interface debugging.
policy: Enables debugging for the policy whereby LDP establishes LSPs.
process: Enables MPLS process debugging.
tunnel: Enables MPLS tunnel debugging.
Description
Use the debugging mpls management command to enable MPLS LSP debugging.
Use the undo debugging mpls management command to disable the debugging.
By default, MPLS debugging is disabled.
If the LSP management (LSPM) module works improperly, you can execute the debugging mpls management command to locate the fault. However, the execution of this command will affect system performance. Therefore, use this command with caution.
Examples
# Enable MPLS agent debugging by executing the debugging mpls management agent command.
Start two switches, connect the two switches, and configure MPLS and MPLS LDP for them to establish a session between them. Enable MPLS agent debugging by executing the debugging mpls management agent command on one switch while executing the reset mpls ldp all command on the other.
<PE1> debugging mpls management agent
*0.21301372 PE1 LSPAGENT/8/Event:A Message from Main Board Lspagt Queue has been processed , Message Source is:LSPAGT_ENTITY_MPLS_LSPM; OperType is:LSPM_LSPAGT_DELETE_ILM
// The Agent deletes an ILM entry.
*0.21301372 PE1 LSPAGENT/8/Event:
----------------Begin to Print Debug Info,Current Slot ID:0 -----------------
ulLspIndex : 9253
ulLspToken : 557239
enLabelOperation : LSPM_LABEL_PUSH
ulInLabel : 4294967295
ulInIfIndex : 0 InIfName :
ulOutLabel : 3
ulLabelStackDepth : 0
ulLabelStack :
ulOutIfIndex : 3145744 OutIfName : Vlan-interface 12
ulOutAtIndex : 0
ulVrfIndex : 0
ulDestAddr : 140.2.2.2
ulDestMask : 255.255.255.255
ulSlotNumber : 0
*0.21301372 PE1 LSPAGENT/8/Event:
ulNextHop : 140.12.1.2
ulTunnelIFIndex : 0
ulFRRFlag : 0
ulFRRBackupIFIndex : 0
ulFRRBackupIFInLabel : 4294967295
ulMtu : 1500
ulFRRKeyword : 0
ulRouteType : LSPM_IGP
ulOutgoingToken : 0
ulDownloadFlag : 1
Information from product :
ulDrvContext[0] : 0
ulDrvContext[1] : 0
ulMplsTeEnabled : 0
ul6PEFlag : 0
aulIPV6DestAddr : 0 : 0 : 0 : 0 :
ulPrefixLength : 0
aulIPV6NextHop : 0 : 0 : 0 : 0 :
ucCT : 0
ulBandWidth : 4294967295
ulOperType : LSPM_LSPAGT_DELETE_NHLFE
ulRefToken : 0
ulSlotNumInToken : 0
------------------------------- End of Debug Info--------------------------
// Content of the deleted entry.
*0.21301372 PE1 LSPAGENT/8/Event:
Agent-MFW: Return value of Call MPLSFW_AgentSendMsgForLspm API function,return VOS_OK!
// Delete the entry successfully.
*0.21301372 PE1 LSPAGENT/8/Event:A Message from Main Board Lspagt Queue has been processed , Message Source is:LSPAGT_ENTITY_MPLS_LSPM; OperType is:LSPM_LSPAGT_DELETE_NHLFE
// The Agent deletes the NHLFE entry.
*0.21301372 PE1 LSPAGENT/8/Event:
----------------Begin to Print Debug Info,Current Slot ID:0 ----------------
ulLspIndex : 9254
ulLspToken : 557240
enLabelOperation : LSPM_LABEL_PUSH
ulInLabel : 4294967295
ulInIfIndex : 0 InIfName :
ulOutLabel : 1024
ulLabelStackDepth : 0
ulLabelStack :
ulOutIfIndex : 3145744 OutIfName : Vlan-interface 12
ulOutAtIndex : 0
ulVrfIndex : 0
ulDestAddr : 140.3.3.3
ulDestMask : 255.255.255.255
ulSlotNumber : 0
*0.21301372 PE1 LSPAGENT/8/Event:
ulNextHop : 140.12.1.2
ulTunnelIFIndex : 0
ulFRRFlag : 0
ulFRRBackupIFIndex : 0
ulFRRBackupIFInLabel : 4294967295
ulMtu : 1500
ulFRRKeyword : 0
ulRouteType : LSPM_IGP
ulOutgoingToken : 0
ulDownloadFlag : 1
Information from product :
ulDrvContext[0] : 0
ulDrvContext[1] : 0
ulMplsTeEnabled : 0
ul6PEFlag : 0
aulIPV6DestAddr : 0 : 0 : 0 : 0 :
ulPrefixLength : 0
aulIPV6NextHop : 0 : 0 : 0 : 0 :
ucCT : 0
ulBandWidth : 4294967295
ulOperType : LSPM_LSPAGT_DELETE_NHLFE
ulRefToken : 0
ulSlotNumInToken : 0
------------------------------- End of Debug Info--------------------------
// Content of the deleted entry.
*0.21301372 PE1 LSPAGENT/8/Event:
Agent-MFW: Return value of Call MPLSFW_AgentSendMsgForLspm API function,return VOS_OK!
// Delete the entry successfully.
*0.21305797 PE1 LSPAGENT/8/Event:A Message from Main Board Lspagt Queue has been processed , Message Source is:LSPAGT_ENTITY_MPLS_LSPM; OperType is:LSPM_LSPAGT_ADD_ILM
// Add an ILM entry after the Session is Up again.
*0.21331182 PE1 LSPAGENT/8/Event:
----------------Begin to Print Debug Info,Current Slot ID:0 ----------------
ulLspIndex : 9257
ulLspToken : 557241
enLabelOperation : LSPM_LABEL_PUSH
ulInLabel : 4294967295
ulInIfIndex : 0 InIfName :
ulOutLabel : 3
ulLabelStackDepth : 0
ulLabelStack :
ulOutIfIndex : 3145744 OutIfName : Vlan-interface 12
ulOutAtIndex : 1
ulVrfIndex : 0
ulDestAddr : 140.2.2.2
ulDestMask : 255.255.255.255
ulSlotNumber : 0
*0.21331182 PE1 LSPAGENT/8/Event:
ulNextHop : 140.12.1.2
ulTunnelIFIndex : 0
ulFRRFlag : 0
ulFRRBackupIFIndex : 0
ulFRRBackupIFInLabel : 4294967295
ulMtu : 1500
ulFRRKeyword : 0
ulRouteType : LSPM_IGP
ulOutgoingToken : 0
ulDownloadFlag : 1
Information from product :
ulDrvContext[0] : 0
ulDrvContext[1] : 0
ulMplsTeEnabled : 0
ul6PEFlag : 0
aulIPV6DestAddr : 0 : 0 : 0 : 0 :
ulPrefixLength : 0
aulIPV6NextHop : 0 : 0 : 0 : 0 :
ucCT : 0
ulBandWidth : 4294967295
ulOperType : LSPM_LSPAGT_ADD_NHLFE
ulRefToken : 0
ulSlotNumInToken : 0
------------------------------- End of Debug Info--------------------------
// Entry content.
*0.21331197 PE1 LSPAGENT/8/Event:
Agent-MFW: Return value of Call MPLSFW_AgentSendMsgForLspm API function,return VOS_OK!
// Add the entry successfully.
*0.21331197 PE1 LSPAGENT/8/Event:A Message from Main Board Lspagt Queue has been processed , Message Source is:LSPAGT_ENTITY_MPLS_LSPM; OperType is:LSPM_LSPAGT_ADD_NHLFE
// Add an NHLFE.
*0.21331197 PE1 LSPAGENT/8/Event:
----------------Begin to Print Debug Info,Current Slot ID:0 ----------------
ulLspIndex : 9258
ulLspToken : 557242
enLabelOperation : LSPM_LABEL_PUSH
ulInLabel : 4294967295
ulInIfIndex : 0 InIfName :
ulOutLabel : 1025
ulLabelStackDepth : 0
ulLabelStack :
ulOutIfIndex : 3145744 OutIfName : Vlan-interface 12
ulOutAtIndex : 1
ulVrfIndex : 0
ulDestAddr : 140.3.3.3
ulDestMask : 255.255.255.255
ulSlotNumber : 0
*0.21331197 PE1 LSPAGENT/8/Event:
ulNextHop : 140.12.1.2
ulTunnelIFIndex : 0
ulFRRFlag : 0
ulFRRBackupIFIndex : 0
ulFRRBackupIFInLabel : 4294967295
ulMtu : 1500
ulFRRKeyword : 0
ulRouteType : LSPM_IGP
ulOutgoingToken : 0
ulDownloadFlag : 1
Information from product :
ulDrvContext[0] : 0
ulDrvContext[1] : 0
ulMplsTeEnabled : 0
ul6PEFlag : 0
aulIPV6DestAddr : 0 : 0 : 0 : 0 :
ulPrefixLength : 0
aulIPV6NextHop : 0 : 0 : 0 : 0 :
ucCT : 0
ulBandWidth : 4294967295
ulOperType : LSPM_LSPAGT_ADD_NHLFE
ulRefToken : 0
ulSlotNumInToken : 0
------------------------------- End of Debug Info--------------------------
// Entry content.
*0.21331197 PE1 LSPAGENT/8/Event:
Agent-MFW: Return value of Call MPLSFW_AgentSendMsgForLspm API function,return VOS_OK!
// Add the entry successfully.
# Enable MPLS interface debugging by executing the debugging mpls management interface command.
Start two switches, connect the two switches, and configure MPLS and MPLS LDP for them to establish a session between them. Enable MPLS interface debugging by executing the debugging mpls management interface command on one switch while executing the reset mpls ldp all command on the other.
<PE1>debugging mpls management interface
*0.22430627 PE1 LSPM/8/LSPM INTERFACE:
Received Signal DELETE message, VRF Index: 0 destination: 0x8c010101 destination mask: 0xffffffff Nexthop: 0x7f000001 OutIfIndex: 0x150000 InIfIndex: 0x300010
// The interface receives a Signal DELETE message.
*0.22430627 PE1 LSPM/8/LSPM INTERFACE:
Received Signal DELETE message, VRF Index: 0 destination: 0x8c030303 destination mask: 0xffffffff Nexthop: 0x8c0c0102 OutIfIndex: 0x300010 InIfIndex: 0x0
// The interface receives a Signal DELETE message.
#Dec 22 16:22:17:972 2005 PE1 LDP/5/SessionUp: Session(140.2.2.2:0. public Instance)'s state change to Up
// The Session is Up again.
*0.22435678 PE1 LSPM/8/LSPM INTERFACE:
Received Route CREATE message, destination: 0x8c010101 destination mask: 0xffffffff.
# Enable debugging for the policy whereby LDP establishes LSPs by executing the debugging mpls management policy command.
Start two switches, connect the two switches, and configure MPLS and MPLS LDP for them to establish a session between them. Enable debugging for the policy whereby LDP establishes LSPs by executing the debugging mpls management policy command on one switch while executing the reset mpls ldp all command on the other.
<PE1>debugging mpls management policy
<PE1>
#Dec 23 10:12:18:552 2005 PE1 LDP/5/SessionDown: Session(140.2.2.2:0. public Instance)'s state change to Down
// Restart the opposite end, and the Session is down.
*0.92036640 PE1 LSPM/8/LSPM POLICY:
LSP deleted, VRF:0 Destination: 0x8c010101 Destination mask: 0xffffffff Nexthop: 0x7f000001 IfIndex:0x150000 LSPIndex:0x2443.
// Delete an LSP.
*0.92036640 PE1 LSPM/8/LSPM POLICY:
LSP deleted, VRF:0 Destination: 0x8c030303 Destination mask: 0xffffffff Nexthop: 0x8c0c0102 IfIndex:0x300010 LSPIndex:0x2444.
// Delete an LSP.
*0.92036640 PE1 LSPM/8/LSPM POLICY:
LSP deleted, VRF:0 Destination: 0x8c020202 Destination mask: 0xffffffff Nexthop: 0x8c0c0102 IfIndex:0x300010 LSPIndex:0x2445.
// Delete an LSP.
*0.92036640 PE1 LSPM/8/LSPM POLICY:
Route Doesnot Satisfy Policy!. Sig Prot is informed.
// The route does not satisfy the policy; The signaling protocol is informed.
*0.92036640 PE1 LSPM/8/LSPM POLICY:
Calling Signalling protocol for VRF:0 Dst Addr:0x8c030303 Dst Mask:0xffffffff NextHop: 0x8c0c0102 If Index: 0x300010 Event: 13
// Call the signaling protocol.
*0.92036640 PE1 LSPM/8/LSPM POLICY:
Route Doesnot Satisfy Policy!. Sig Prot is informed.
// The route does not satisfy the policy; The signaling protocol is informed.
*0.92036640 PE1 LSPM/8/LSPM POLICY:
Calling Signalling protocol for VRF:0 Dst Addr:0x8c020202 Dst Mask:0xffffffff NextHop: 0x8c0c0102 If Index: 0x300010 Event: 13
// Call the signaling protocol.
#Dec 23 10:12:23:365 2005 PE1 LDP/5/SessionUp: Session(140.2.2.2:0. public Instance)'s state change to Up
// The Session is Up again.
*0.92041801 PE1 LSPM/8/LSPM POLICY:
Received Route Add message, VRF:0 Destination: 0x8c010101 Destination mask: 0xffffffff Nexthop: 0x7f000001 IfIndex:1376256.
// Receive a Route Add message.
*0.92041801 PE1 LSPM/8/LSPM POLICY:
Calling Signalling protocol for VRF:0 Dst Addr:0x8c010101 Dst Mask:0xffffffff NextHop: 0x7f000001 If Index: 0x150000 Event: 1
// Process by calling the signaling protocol.
*0.92041801 PE1 LSPM/8/LSPM POLICY:
Route added successfully
// Add a route successfully.
*0.92042024 PE1 LSPM/8/LSPM POLICY:
LSP added, VRF:0 Destination: 0x8c010101 Destination mask: 0xffffffff Nexthop:0x7f000001 IfIndex:0x150000 LSPIndex:0x2446.
// Add an LSP.
*0.92066067 PE1 LSPM/8/LSPM POLICY:
LSP added, VRF:0 Destination: 0x8c020202 Destination mask: 0xffffffff Nexthop:0x8c0c0102 IfIndex:0x300010 LSPIndex:0x2447.
// Add an LSP.
*0.92066083 PE1 LSPM/8/LSPM POLICY:
LSP added, VRF:0 Destination: 0x8c030303 Destination mask: 0xffffffff Nexthop:0x8c0c0102 IfIndex:0x300010 LSPIndex:0x2448.
// Add an LSP.
# Enable MPLS process debugging by executing the debugging mpls management process command.
Start two switches, connect the two switches, and configure MPLS and MPLS LDP for them to establish a session between them. Enable MPLS process debugging by executing the debugging mpls management process command on one switch while executing the reset mpls ldp all command on the other.
<PE1>debugging mpls management process
<PE1>
#Dec 22 17:05:57:766 2005 PE1 LDP/5/SessionDown: Session(140.2.2.2:0. public Instance)'s state change to Down
// Restart the opposite end, and the Session is down.
*0.25271766 PE1 LSPM/8/LSPM PROCESS:
Rcv delete lsp msg from signaling protocol 0x8c010101/0xffffffff !
// Receive an LSP Delete message from the signaling protocol.
*0.25271766 PE1 LSPM/8/LSPM PROCESS:
Rcv delete lsp msg from signaling protocol 0x8c020202/0xffffffff !
// Receive an LSP Delete message from the signaling protocol.
*0.25271766 PE1 LSPM/8/LSPM PROCESS:
Rcv delete lsp msg from signaling protocol 0x8c030303/0xffffffff !
// Receive a Delete LSP message from the signaling protocol.
*0.25271844 PE1 LSPM/8/LSPM PROCESS:
Received Signaling message.
// Receive a signaling message.
*0.25271844 PE1 LSPM/8/LSPM PROCESS:
Received Signal DELETE message, VRF Index: 0 destination: 0x8c010101 destination mask: 0xffffffff Nexthop: 0x7f000001 OutIfIndex: 0x150000 InIfIndex: 0x300010
// Receive a Signal DELETE message.
*0.25271844 PE1 LSPM/8/LSPM PROCESS:
Setting MTU = LSP MTU
// Set the MTU.
*0.25271844 PE1 LSPM/8/LSPM PROCESS:
Down to Agent success: evt/lsptype 4/3
//Advertise the MTU to the Agent successfully.
*0.25271844 PE1 LSPM/8/LSPM PROCESS:
Received Signaling message.
*0.25271844 PE1 LSPM/8/LSPM PROCESS:
Received Signal DELETE message, VRF Index: 0 destination: 0x8c020202 destination mask: 0xffffffff Nexthop: 0x8c0c0102 OutIfIndex: 0x300010 InIfIndex: 0x0
*0.25271844 PE1 LSPM/8/LSPM PROCESS:
Setting MTU = LSP MTU
*0.25271844 PE1 LSPM/8/LSPM PROCESS:
Down to Agent success: evt/lsptype 5/3
// For details, refer to the above flow.
*0.25271844 PE1 LSPM/8/LSPM PROCESS:
Notify to TNLM SUCCESS. Event: 2, LspIndex: 9265, 0x8c020202/0x20/token557247.
// Notify the TNLM.
*0.25271844 PE1 LSPM/8/LSPM PROCESS:
Free Token success: 557247
// Free the Token successfully.
*0.25271860 PE1 LSPM/8/LSPM PROCESS:
Received Signaling message.
*0.25271860 PE1 LSPM/8/LSPM PROCESS:
Received Signal DELETE message, VRF Index: 0 destination: 0x8c030303 destinatio
n mask: 0xffffffff Nexthop: 0x8c0c0102 OutIfIndex: 0x300010 InIfIndex: 0x0
*0.25271860 PE1 LSPM/8/LSPM PROCESS:
Setting MTU = LSP MTU
*0.25271860 PE1 LSPM/8/LSPM PROCESS:
Down to Agent success: evt/lsptype 5/3
*0.25271860 PE1 LSPM/8/LSPM PROCESS:
Notify to TNLM SUCCESS. Event: 2, LspIndex: 9267, 0x8c030303/0x20/token557248.
*0.25271860 PE1 LSPM/8/LSPM PROCESS:
Free Token success: 557248
// For details, refer to the above flow.
#Dec 22 17:05:59:280 2005 PE1 LDP/5/SessionUp: Session(140.2.2.2:0. public Instance)'s state change to Up
// The Session is Up again.
*0.25274675 PE1 LSPM/8/LSPM PROCESS:
Alloc Token success: 557249/0x300010
// Allocate the Token successfully.
*0.25274675 PE1 LSPM/8/LSPM PROCESS:
Rcv create lsp msg from signaling protocol 0x8c020202/0xffffffff In If - 0x0 !
// Receive a Create LSP message from the signaling protocol.
*0.25274690 PE1 LSPM/8/LSPM PROCESS:
Received Signaling message.
*0.25274690 PE1 LSPM/8/LSPM PROCESS:
Received Signal CREATE message, VRF Index: 0 destination: 0x8c020202 destination mask: 0xffffffff Nexthop: 0x8c0c0102 OutIfIndex: 0x300010 InIfIndex: 0x0
*0.25274690 PE1 LSPM/8/LSPM PROCESS:
Setting MTU = LSP MTU
*0.25274690 PE1 LSPM/8/LSPM PROCESS:
Add route success, VRF:0 Destination: 0x8c020202 Destination mask: 0xffffffff Nexthop: 0x8c0c0102 IfIndex:0x300010 .
// Add a route successfully.
*0.25274690 PE1 LSPM/8/LSPM PROCESS:
Added LSP in LM Successfully
// Add an LSP successfully.
*0.25274690 PE1 LSPM/8/LSPM PROCESS:
Down to Agent success: evt/lsptype 2/3
//Advertise the LSP information to the Agent successfully.
*0.25274690 PE1 LSPM/8/LSPM PROCESS:
Notify to TNLM SUCCESS. Event: 1, LspIndex: 9268, 0x8c020202/0x20/token557249.
// Notify the TNLM.
*0.25275573 PE1 LSPM/8/LSPM PROCESS:
Received Route message.
*0.25275573 PE1 LSPM/8/LSPM PROCESS:
Add route success, VRF:0 Destination: 0x8c010101 Destination mask: 0xffffffff Nexthop: 0x7f000001 IfIndex:0x150000 .
*0.25275573 PE1 LSPM/8/LSPM PROCESS:
Rcv create lsp msg from signaling protocol 0x8c010101/0xffffffff In If - 0x300010 !
*0.25275812 PE1 LSPM/8/LSPM PROCESS:
Received Signaling message.
*0.25275812 PE1 LSPM/8/LSPM PROCESS:
Received Signal CREATE message, VRF Index: 0 destination: 0x8c010101 destination mask: 0xffffffff Nexthop: 0x7f000001 OutIfIndex: 0x150000 InIfIndex: 0x300010
*0.25275812 PE1 LSPM/8/LSPM PROCESS:
Setting MTU = LSP MTU
*0.25275812 PE1 LSPM/8/LSPM PROCESS:
Error: No LSP found for the route.
*0.25275812 PE1 LSPM/8/LSPM PROCESS:
Added LSP in LM Successfully
*0.25275812 PE1 LSPM/8/LSPM PROCESS:
Down to Agent success: evt/lsptype 1/3
// For details, refer to the above flow.
# Enable MPLS tunnel debugging by executing the debugging mpls management tunnel command.
Start two switches, connect the two switches, and configure MPLS, MPLS LDP and MPLS TE for them to establish a session and tunnel between them. Enable MPLS tunnel debugging by executing the debugging mpls management tunnel command on one switch while executing the shutdown command first and then the undo shutdown command on the other switch.
<PE1>debugging mpls management tunnel
<PE1>
*0.94534296 PE1 LSPM/8/LSPM TUNNEL:
Begin physic check,ulIfIndex:3407872
*0.94534296 PE1 LSPM/8/LSPM TUNNEL:
TE tunnel get mode data ok when check physic,ulTunnelIfIndex:3407872
*0.94534296 PE1 LSPM/8/LSPM TUNNEL:
End physic check,the tunnel can up
// The interfaces are Up. The tunnel can be Up.
%Dec 23 10:51:12:310 2005 PE1 IFNET/5/UPDOWN:
Line protocol on the interface Tunnel0 is DOWN
// The opposite interface is shut down, so the tunnel is down.
*0.94564310 PE1 LSPM/8/LSPM TUNNEL:
Begin physic check,ulIfIndex:3407872
*0.94564310 PE1 LSPM/8/LSPM TUNNEL:
TE tunnel get mode data ok when check physic,ulTunnelIfIndex:3407872
*0.94564310 PE1 LSPM/8/LSPM TUNNEL:
End physic check,the tunnel can't up
// A failure message is returned when the interface is checked. The tunnel cannot be Up.
%Dec 23 10:52:12:591 2005 PE1 IFNET/5/UPDOWN:
Line protocol on the interface Tunnel0 is UP
// The undo shutdown command is executed on the opposite end. The tunnel is Up.
*0.94629360 PE1 LSPM/8/LSPM TUNNEL:
Begin physic check,ulIfIndex:3407872
*0.94629360 PE1 LSPM/8/LSPM TUNNEL:
TE tunnel get mode data ok when check physic,ulTunnelIfIndex:3407872
*0.94629360 PE1 LSPM/8/LSPM TUNNEL:
End physic check,the tunnel can up
// OK is returned after a physical check is performed. The tunnel can be Up.
1.1.6 debugging mpls packet
Syntax
debugging mpls packet [ acl acl-number] [error] [ inlabel outer-in-label [ inner-in-label ] ] [ l2vpn-in-interface interface-type interface-number ]
undo debugging mpls packet
View
User view
Default Level
2: System level
Parameters
acl: Outputs debugging information about the MPLS packets that satisfy the ACL criteria.
acl-number: Advanced ACL number.
error: Outputs debugging information about MPLS error packets.
inlabel: Outputs debugging information about the MPLS packets with the specified incoming label.
outer-in-label: Outer incoming label.
inner-in-label: Inner incoming label.
l2vpn-in-interface: Outputs debugging information about the MPLS packets sent/received by the L2VPN-enabled interface.
interface-type interface-number: Specifies an interface by its type and number.
Description
Use the debugging mpls packet command to enable debugging for forwarded MPLS packets. Use the undo debugging mpls packet command to disable debugging for forwarded MPLS packets.
By default, debugging is disabled for forwarded MPLS packets.
Examples
# Enable debugging for forwarded MPLS packets by executing the debugging mpls packet command.
Start five switches, configure L3VPN for networking, and execute the debugging mpls packet command on one PE.
<PE1> debugging mpls packet
<PE1>
*0.3815709 F-RT1 MFW/8/MPLSFW PACKET:
PUSH Label=3
PKTTYPE_IP :Sending to Vlan3, Dest=15.33.33.33, Nexthop=15.20.1.1
// Push Label 3 into a packet, and send the packet to DUT3.
*0.3823332 F-RT1 MFW/8/MPLSFW PACKET:
PUSH Label=3
PKTTYPE_IP :Sending to Vlan3, Dest=15.33.33.33, Nexthop=15.20.1.1
// Push Label 3 into a packet, and send the packet to DUT3.
*0.3824701 F-RT1 MFW/8/MPLSFW PACKET:
PUSH Label=1024, EXP=0, TTL=255
PUSH Label=1024, EXP=0, TTL=255
PKTTYPE_MPLS :Sending to Vlan3, PktLen=92, Label(s)=1024,1024, EXP=0, TTL=255
// Push inner incoming Label 1024 and outer incoming Label 1024, and send the packets from VLAN-interface 3.
*0.3824701 F-RT1 MFW/8/MPLSFW PACKET:Slot=2;
MPLSFW_Input: Receiving from Vlan3, PktLen=88, Label(s)=1024, EXP=0, TTL=254
POP Label=1024, EXP=0, TTL=254
Delivering up to IP!
// Receive a packet (length: 88; label: 1024; POP label: 1024) from VLAN-interface 3, and forward the packet like an IP packet.
*0.3824701 F-RT1 MFW/8/MPLSFW PACKET:Slot=2;
PKTTYPE_IP :Sending to Slot 6, Dest=15.40.1.1, InnerLabel=1024, Vpn=1, Token=9371650
// Send the packet (it is destined to 15.40.1.1 and has an inner label 1024) to the LPU.
*0.3824779 F-RT1 MFW/8/MPLSFW PACKET:
PUSH Label=1024, EXP=0, TTL=255
PUSH Label=1024, EXP=0, TTL=255
PKTTYPE_MPLS :Sending to Vlan3, PktLen=92, Label(s)=1024,1024, EXP=0, TTL=255
// Push inner incoming Label 1024 and outer incoming Label 1024, and send the packet from VLAN- interface 3.
*0.3824779 F-RT1 MFW/8/MPLSFW PACKET:Slot=2;
MPLSFW_Input: Receiving from Vlan3, PktLen=88, Label(s)=1024, EXP=0, TTL=254
POP Label=1024, EXP=0, TTL=254
Delivering up to IP!
// Receive a packet (length: 88; label: 1024; POP label: 1024) from VLAN- interface 3, and forward the packet like an IP packet.
*0.3824779 F-RT1 MFW/8/MPLSFW PACKET:Slot=2;
PKTTYPE_IP :Sending to Slot 6, Dest=15.40.1.1, InnerLabel=1024, Vpn=1, Token=9371650
// Send the packet (it is destined to 15.40.1.1 and has an inner label 1024) to the LPU.
*0.3824851 F-RT1 MFW/8/MPLSFW PACKET:
PUSH Label=1024, EXP=0, TTL=255
PUSH Label=1024, EXP=0, TTL=255
PKTTYPE_MPLS :Sending to Vlan3, PktLen=92, Label(s)=1024,1024, EXP=0, TTL=255
// Push inner incoming Label 1024 and outer incoming Label 1024, and send the packet from VLAN- interface 3.
*0.3824851 F-RT1 MFW/8/MPLSFW PACKET:Slot=2;
MPLSFW_Input: Receiving from Vlan3, PktLen=88, Label(s)=1024, EXP=0, TTL=254
POP Label=1024, EXP=0, TTL=254
Delivering up to IP!
// Receive a packet (length: 88; label: 1024; POP label: 1024) from VLAN- interface 3, and forward the packet like an IP packet.
1.1.7 display mpls interface
Syntax
display mpls interface [ interface-type interface-number ] [ verbose ]
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.
Description
Use the display mpls interface command to display information about a specified or all interfaces with MPLS enabled.
l If no parameters are specified, the command displays only the brief information about all MPLS-enabled interfaces.
l If you specify interface-type interface-number, the command displays the brief information about the specified MPLS-enabled interface.
Related commands: display mpls statistics interface and mpls.
Examples
# Display information about all interfaces with MPLS enabled.
<Sysname> display mpls interface
Interface Status TE Attr LSP Count CRLSP Count
Vlan12 Up En 0 0
Vlan14 Up En 0 0
# Display detailed information about the specified MPLS-enabled interface.
<Sysname> display mpls interface vlan-interface 12 verbose
No : 1
Interface : Vlan12
Status : Down
TE Attribute : Disable
LSPCount : 0
CR-LSPCount : 0
FRR : Disabled
& Note:
For information about FRR, refer to MPLS TE Configuration in the MPLS VPN Volume.
1.1.8 display mpls label
Syntax
display mpls label { label-value1 [ to label-value2 ] | all }
Any view
Default Level
1: Monitor level
Parameters
label-value1: Specifies a label or, when used with the label-value2 argument, the start label of a range of labels.
to label-value2: End label of a range of labels.
all: Specifies all labels.
Description
Use the display mpls label command to display the status of one or more specified or all labels.
Examples
# Display the status of a specified label.
<Sysname> display mpls label 1280
Label alloc state: '.' means not used, '$' means used
-------------Dynamic Label--------------------------------
1280:.
# Display the status of all labels.
<Sysname> display mpls label all
---------------------------------------------------------------------
Label alloc state: '.' means not used, '$' means used
------------------------Static Label---------------------------------
16:.... ........ ........ ........ ........ ........ ........ ........
976:........ ........ ........ ........ ........ ........
------------------------Dynamic Label--------------------------------
1024: $ $$...... ........ ........ ........ ........ ........ ........
1088:.. ........ ........ ........ ........ ........ ........ ........
1.1.9 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 the output information.
begin: Begins with the specified string.
include: Includes the specified string.
exclude: Excludes the specified string.
regular-expression: Regular expression. No blank space is acceptable.
Description
Use the display mpls ldp command to display information about LDP.
If you do not specify any parameter, the command will display all LDP information in detail.
Related commands: mpls ldp.
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 : On Recovery Timer : 60 Sec
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
-----------------------------------------------------------------
1.1.10 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
lsr-id: MPLS LSR ID of the device, in the format of IP address.
lsp-id: Local LSP ID of the ingress.
|: Filters the output information.
begin: Begins with the specified string.
include: Includes the specified string.
exclude: Excludes the specified string.
regular-expression: Regular expression. No blank space is acceptable.
Description
Use the display mpls ldp cr-lsp command to display information about CR-LSPs established by 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 -------/Vlan12
2.2.2.9:0 1.1.1.9/32 1027/NULL Vlan12/-------
----------------------------------------------------------------
The Total LDP CR-LSP(s): 2
1.1.11 display mpls ldp interface
Syntax
display mpls ldp interface [ all ] [ [ vpn-instance vpn-instance-name ] [ interface-type interface-number ] ] [ verbose ] [ | { begin | exclude | include } regular-expression ]
display mpls ldp interface [ all ] [ verbose ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default Level
1: Monitor level
Parameters
all: Displays all information.
vpn-instance-name: Name of the VPN instance.
interface-type interface-number: Specifies an interface by its type and number.
verbose: Displays detailed information.
|: Filters the output information.
begin: Begins with the specified string.
include: Includes the specified string.
exclude: Excludes the specified string.
regular-expression: Regular expression. No blank space is acceptable.
Description
Use the display mpls ldp interface command to display the information about the LDP-enabled interfaces.
Related commands: mpls ldp (System view) and mpls ldp (Interface view).
Examples
# Display the information about the LDP-enabled interfaces.
<Sysname> display mpls ldp interface
LDP Interface Information in Public Network
-------------------------------------------------------------------
IF-Name Status LAM Transport-Address Hello-Sent/Rcv
-------------------------------------------------------------------
Vlan12 Active DU 172.17.1.1 583/1017
Vlan14 Active DU 172.17.1.1 578/1015
Vlan16 Active DU 172.17.1.1 531/444
-------------------------------------------------------------------
LAM: Label Advertisement Mode IF-Name: Interface name
# Display detailed information about all interfaces.
<Sysname> display mpls ldp interface verbose
LDP Interface Information in Public Network
--------------------------------------------------------------
Interface Name : Vlan12
LDP ID : 172.17.1.1:0 Transport Address : 172.17.1.1
Entity Status : Active Interface MTU : 1500
Configured Hello Timer : 15 Sec
Negotiated Hello Timer : 15 Sec
Configured Keepalive Timer : 45 Sec
Label Advertisement Mode : Downstream Unsolicited
Hello Message Sent/Rcvd : 591/1033 (Message Count)
-------------------------------------------------------------
Interface Name : Vlan14
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 : Vlan16
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)
-------------------------------------------------------------
1.1.12 display mpls ldp Isp
Syntax
display mpls ldp lsp [ vpn-instance vpn-instance-name [ dest-addr mask-length ] ] [ | { begin | exclude | include } regular-expression ]
display mpls ldp lsp all [ | { begin | exclude | include } regular-expression ]
display mpls ldp lsp [dest-addr 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: Specifies a VPN instance by its name.
dest-addr: Destination address of the LSP.
mask-length: Length of the mask for the destination address.
|: Filters the output information.
begin: Begins with the specified string.
include: Includes the specified string.
exclude: Excludes the specified string.
regular-expression: Regular expression. No blank space is acceptable.
Description
Use the display mpls ldp lsp command to display information about LSPs established by LDP.
Related commands: display mpls ldp.
Examples
# Display the information about the LSP created by LDP.
<Sysname> display mpls ldp lsp
LDP LSP Information
-----------------------------------------------------------------
SN DestAddress/Mask In/OutLabel Next-Hop In/Out-Interface
-----------------------------------------------------------------
1 100.10.1.0/24 3/NULL 100.10.1.2 Vlan12/Vlan16
2 172.17.0.0/16 3/NULL 172.17.1.1 Vlan16/Vlan14
*3 100.1.1.1/32 Liberal(1025)
-----------------------------------------------------------------
A '*' before an LSP means the LSP is not established
A '*' before a Label means the USCB or DSCB is stale
A '*' before a Label means the USCB or DSCB is stale
1.1.13 display mpls ldp peer
Syntax
display mpls ldp peer [ peer-id ] [ vpn-instance vpn-instance-name [ verbose ] [ peer-id ] ] [ | { begin | exclude | include } regular-expression ]
display mpls ldp peer [ all ] [ verbose ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default Level
1: Monitor level
Parameters
vpn-instance vpn-instance-name: Specifies a VPN instance by its name.
peer-id: LSR ID of the peer.
verbose: Displays detailed information.
|: Filters the output information.
begin: Begins with the specified string.
include: Includes the specified string.
exclude: Excludes the specified string.
regular-expression: Regular expression. No blank space is acceptable.
all: Display information about all peers.
Description
Use the display mpls ldp peer command to display information about specified or all peers of the current LSR.
Related commands: mpls ldp.
Examples
# Display the peer information.
<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 Vlan-interface12
168.1.1.1:0 168.1.1.1 Vlan-interface12
100.10.1.1:0 100.10.1.1 Vlan-interface16
--------------------------------------------------------------
# Display detailed information about the peer end.
<Sysname> display mpls ldp peer verbose
LDP Peer Information in Public network
---------------------------------------------------------------
Peer LDP ID : 172.17.1.2:0
Peer Max PDU Length : 4096 Peer Transport Address : 172.17.1.2
Peer Loop Detection : Off Peer Path Vector Limit : 0
Peer FT Flag : Off Peer Keepalive Timer : 45 Sec
Recovery Timer : ---- Reconnect Timer : ----
Peer Label Advertisement Mode : Downstream Unsolicited
Peer Discovery Source : Vlan-interface12
------------------------------------------------------------
Peer LDP ID : 168.1.1.1:0
Peer Max PDU Length : 4096 Peer Transport Address : 168.1.1.1
Peer Loop Detection : Off Peer Path Vector Limit : 0
Peer FT Flag : Off Peer Keepalive Timer : 45 Sec
Recovery Timer : ---- Reconnect Timer : ----
Peer Label Advertisement Mode : Downstream Unsolicited
Peer Discovery Source : Vlan-interface12
-------------------------------------------------------------
Peer LDP ID : 100.10.1.1:0
Peer Max PDU Length : 4096 Peer Transport Address : 100.10.1.1
Peer Loop Detection : Off Peer Path Vector Limit : 0
Peer FT Flag : Off Peer Keepalive Timer : 45 Sec
Recovery Timer : ---- Reconnect Timer : ----
Peer Label Advertisement Mode : Downstream Unsolicited
Peer Discovery Source : Vlan-interface16
------------------------------------------------------------
1.1.14 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: Specifies a remote peer end by its name.
|: Filters the output information.
begin: Begins with the specified string.
include: Includes the specified string.
exclude: Excludes the specified string.
regular-expression: Regular expression. No blank space is acceptable.
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)
--------------------------------------------------------------------------
1.1.15 display mpls ldp session
Syntax
display mpls ldp session [ vpn-instance vpn-instance-name [ verbose ] ] [ peer-id ] [ | { begin | exclude | include } regular-expression ]
display mpls ldp session [ all ] [ verbose ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default Level
1: Monitor level
Parameters
all: Displays all information.
vpn-instance vpn-instance-name: Specifies a VPN instance by its name. The parameter is used to display the information about all peers of the specified VPN.
peer-id: LSR ID of the peer.
verbose: Displays detailed information.
|: Filters the output information.
begin: Begins with the specified string.
include: Includes the specified string.
exclude: Excludes the specified string.
regular-expression: Regular expression. No blank space is acceptable.
Description
Use the display mpls ldp session command to display the information about the sessions between peers.
Related commands: mpls ldp.
Examples
# Display the information about a session between peers.
<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
# Display detailed information about a session between peers.
<Sysname> display mpls ldp session verbose
LDP Session(s) in Public Network
--------------------------------------------------------------------------
Peer LDP ID : 1.1.1.1:0 Local LDP ID : 3.3.3.3:0
TCP Connection : 3.3.3.3 -> 1.1.1.1
Session State : Operational Session Role : Active
Session FT Flag : Off MD5 Flag : Off
Reconnect Timer : --- Recovery Timer : ---
Negotiated Keepalive Timer : 45 Sec
Keepalive Message Sent/Rcvd : 6/6 (Message Count)
Label Advertisement Mode : Downstream Unsolicited
Label Resource Status(Peer/Local) : Available/Available
Peer Discovery Mechanism : Extended
Session existed time : 000:00:01 (DDD:HH:MM)
LDP Extended Discovery Source : Remote peer: 1
Addresses received from peer: (Count: 2)
10.1.1.1 1.1.1.1
--------------------------------------------------------------------------
Peer LDP ID : 2.2.2.2:0 Local LDP ID : 3.3.3.3:0
TCP Connection : 3.3.3.3 -> 2.2.2.2
Session State : Operational Session Role : Active
Session FT Flag : Off MD5 Flag : Off
Reconnect Timer : --- Recovery Timer : ---
Negotiated Keepalive Timer : 45 Sec
Keepalive Message Sent/Rcvd : 25/25 (Message Count)
Label Advertisement Mode : Downstream Unsolicited
Label Resource Status(Peer/Local) : Available/Available
Peer Discovery Mechanism : Basic
Session existed time : 000:00:06 (DDD:HH:MM)
LDP Basic Discovery Source : Vlan-interface 12
Addresses received from peer: (Count: 3)
10.1.1.2 20.1.1.1 2.2.2.2
--------------------------------------------------------------------------
1.1.16 display mpls ldp vpn-instance
Syntax
display mpls ldp vpn-instance vpn-instance-name [ | { begin | exclude | include } regular-expression ]
View
Any view
Default Level
1: Monitor level
Parameters
vpn-instance-name: The name of an LDP-enabled VPN instance.
|: Filters the output information.
begin: Begins with the specified string.
include: Includes the specified string.
exclude: Excludes the specified string.
regular-expression: Regular expression. No blank space is acceptable.
Description
Use the display mpls ldp vpn-instance command to display information about a specified VPN instance.
Related commands: mpls ldp (system view), mpls ldp (interface view).
Examples
# Display information about VPN instance vpn1.
<Sysname> display mpls ldp vpn-instance vpn1
LDP Global Information
--------------------------------------------------------------------
Protocol Version : V1 Neighbor Liveness : 60 Sec
Graceful Restart : Off FT Reconnect Timer : 60 Sec
MTU Signaling : On Recovery Timer : 60 Sec
LDP Instance Information
--------------------------------------------------------------------
Instance ID : 1 VPN-Instance : vpn1
Instance Status : Active LSR ID : 1.1.1.9
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
1.1.17 display mpls lsp
Syntax
display mpls lsp [ { incoming-interface | outgoing-interface } interface-type interface-number ] [ in-label in-label-value ] [ out-label out-label-value ] [ { exclude | include } dest-addr mask-length ] [ vpn-instance vpn-instance-name ] [ asbr | protocol { bgp | bgp-ipv6 | crldp | ldp | rsvp-te | static | static-cr } ] [ egress | ingress | transit ] [ verbose ]
View
Any view
Default Level
1: Monitor level
Parameters
incoming-interface: Incoming interface of the LSPs.
outgoing-interface: Outgoing interface of the LSPs.
interface-type interface-number: Specifies an interface by its type and number.
in-label in-label-value: Value of the incoming label.
out-label out-label-value: Value of the outgoing label.
exclude: Excludes the specified FEC.
include: Includes the specified FEC.
dest-addr: Destination address.
mask-length: Length of the mask for the destination address.
vpn-instance vpn-instance-name: Name of the LDP-enabled VPN instance.
asbr: Displays information about ASBR established LSPs.
protocol: Displays information about LSPs established by a specified protocol.
bgp: Displays information about BGP LSPs.
bgp-ipv6: Displays information about IPv6 BGP LSPs, that is, BGP4+ LSPs.
crldp: Displays information about LDP CR-LSPs.
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 LSPs taking the current LSR as egress.
ingress: Displays information about LSPs taking the current LSR as ingress.
transit: Displays information about LSPs taking the current LSR as transit LSR.
verbose: Displays detailed information.
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 statistics lsp, display mpls static-lsp.
& Note:
l This command supports these interface types: POS interface, tunnel interface, and VLAN interface.
l The S9500 series does not support CR-LDP.
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 ASBRLSP
-----------------------------------------------------------------------
LSP Information: LDP LSP
-----------------------------------------------------------------------
FEC In/Out Label In/Out IF Vrf Name
100.10.1.0/24 3/NULL vlan12/-
100.10.1.0/24 3/NULL vlan14/-
168.1.0.0/16 3/NULL vlan16/-
172.17.0.0/16 3/NULL vlan18/-
Table 1-6 display mpls lsp command output description
Field |
Description |
FEC |
Forwarding equivalence class, in either of the following two forms: l IP address/mask: Assigning labels based on destination addresses. l IP address: Assigning labels based on the addresses of the next hops. |
# Display detailed information about all LSPs.
<Sysname> display mpls lsp verbose
-------------------------------------------------------------
LSP Information: LDP LSP
--------------------------------------------------------------
No : 1
VrfIndex :
Fec : 1.1.1.9/32
Nexthop : 127.0.0.1
In-Label : 3
Out-Label : NULL
In-Interface : Vlan-interface12
Out-Interface : ----------
LspIndex : 10241
Token : 0
LsrType : Egress
Outgoing token : 0
Label Operation : POP
Table 1-7 display mpls lsp verbose command output description
Field |
Description |
Fec |
Forwarding equivalence class, in either of the following two forms: l IP address/mask: Assigning labels based on destination addresses. l IP address: Assigning labels based on the addresses of the next hops. |
Token |
Token ID (the public network) |
LsrType |
Role of the LSR for the LSP |
Outgoing Token |
Token ID (inter-AS VPN) |
1.1.18 display mpls lsp statistics
Syntax
display mpls lsp statistics
View
Any view
Default Level
1: Monitor level
Parameters
None
Description
Use the display mpls lsp statistics command to display LSP statistics.
& Note:
The S9500 series does not support CR-LDP.
Examples
# Display LSP statistics.
<Sysname> display mpls lsp statistics
Lsp Type Total Ingress Transit Egress
STATIC LSP 1 1 0 0
STATIC CRLSP 1 1 0 0
LDP LSP 0 0 0 0
CRLDP CRLSP 0 0 0 0
RSVP CRLSP 1 1 0 0
BGP LSP 0 0 0 0
ASBR LSP 0 0 0 0
BGP IPV6 LSP 0 0 0 0
---------------------------------------------------------------
LSP 1 1 0 0
CRLSP 2 2 0 0
1.1.19 display mpls route-state
Syntax
display mpls route-state [ vpn-instance vpn-instance-name ] [ dest-addr mask-length ]
View
Any view
Default Level
1: Monitor level
Parameters
vpn-instance vpn-instance-name: Name of the VPN instance.
dest-addr: Destination IP address.
mask-length: Length of the mask for the destination IP address.
Description
Use the display mpls route-state command to display route related information.
With no VPN instance specified, the command displays route related information of the public network.
With the dest-addr dest-mask arguments not specified, the command displays all route related information.
Examples
# Display all route related information.
<Sysname> display mpls route-state
DEST/MASK NEXT-HOP OUT-INTERFACE STATE LSP-COUNT VPN-INDEX
-----------------------------------------------------------------
1.1.1.1/32 10.0.0.1 Vlan16 ESTA 1 0
1.1.20 display mpls static-lsp
Syntax
display mpls static-lsp [ lsp-name lsp-name ] [ { exclude | include } dest-addr mask-length ] [ verbose ]
View
Any view
Default Level
1: Monitor level
Parameters
lsp-name lsp-name: Name for the LSP.
exclude: Excludes the specified FEC.
include: Includes the specified FEC.
dest-addr: Destination IP address of the FEC.
mask-length: Length of the mask for the destination IP address.
verbose: Displays detailed information.
Description
Use the display mpls static-lsp command to display information about static LSPs.
Related commands: display mpls lsp, display mpls statistics lsp.
Examples
# Display brief information about static LSPs.
<Sysname> display mpls static-lsp
Name FEC I/O Label I/O If Stat
lsp1 3.3.3.9/32 NULL/100 -/Vlan14 Up
# 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 : Vlan-interface14
NextHop : 30.1.1.2
Static-Lsp Type: IPTN
Lsp Status : Up
1.1.21 display mpls statistics interface
Syntax
display mpls statistics interface { interface-type interface-number | all }
View
Any view
Default Level
1: Monitor level
Parameters
interface-type interface-number: Specifies an interface by its type and number.
all: Displays MPLS statistics for all interfaces.
Description
Use the display mpls statistics interface command to display MPLS statistics for a specified or all interfaces.
To display statistics, set the statistics interval first. By default, the interval is 0 and the system does not collect 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 Vlan-interface12
Octets : 0
Packets : 0
Errors : 0
Disables : 0
Failed Label Lookup : 0
Start Time : 2004/04/28 10:23:55
End Time : 2004/04/28 10:23:55
Statistics for Interface OUT :
Outgoing Interface Vlan-interface12
Octets : 0
Packets : 0
Errors : 0
Disables : 0
Start Time : 2004/04/28 10:23:55
End Time : 2004/04/28 10:23:55
Statistics for Interface IN :
Incoming Interface Vlan-interface14
Octets : 0
Packets : 0
Errors : 0
Disables : 0
Failed Label Lookup : 0
Start Time : 2004/04/28 10:24:04
End Time : 2004/04/28 10:24:04
Statistics for Interface OUT :
Outgoing Interface Vlan-interface14
Octets : 0
Packets : 0
Errors : 0
Disables : 0
Start Time : 2004/04/28 10:24:04
End Time : 2004/04/28 10:24:04
Statistics for Interface IN :
Incoming Interface Vlan-interface16
Octets : 0
Packets : 0
Errors : 0
Disables : 0
Failed Label Lookup : 0
Start Time : 2004/04/28 10:24:10
End Time : 2004/04/28 10:24:10
Statistics for Interface OUT :
Outgoing Interface Vlan-interface16
Octets : 0
Packets : 0
Errors : 0
Disables : 0
Start Time : 2004/04/28 10:24:10
End Time : 2004/04/28 10:24:10
1.1.22 display mpls statistics lsp
Syntax
display mpls statistics lsp { index | all | name lsp-name }
View
Any view
Default Level
1: Monitor level
Parameters
index: Index number of the LSP.
all: Specifies all LSPs.
lsp-name: Name of the LSP.
Description
Use the display mpls statistics lsp command to display MPLS statistics for a specified 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 : 2006/05/20 15:52:30
End Time : 2006/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 : 2006/05/20 15:52:30
End Time : 2006/05/20 15:52:30
& Note:
l 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.
l Similarly, 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.
1.1.23 du-readvertise
Syntax
du-readvertise
undo du-readvertise
View
MPLS LDP view/MPLS LDP VPN instance view
Default Level
1: Monitor 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 feature.
By default, label readvertisement is enabled in DU mode.
Examples
# Enable DU mode label readvertisement for the public network LDP.
<Sysname> system-view
[Sysname] mpls ldp
[Sysname-mpls-ldp] du-readvertise
# Enable DU mode label readvertisement for LDP instance named vpn1.
<Sysname> system-view
[Sysname] mpls ldp vpn-instance vpn1
[Sysname-mpls-ldp-vpn-instance-vpn1] du-readvertise
1.1.24 du-readvertise timer
Syntax
du-readvertise timer value
undo du-readvertise timer
View
MPLS LDP view/MPLS LDP VPN instance view
Default Level
1: Monitor level
Parameters
value: Label readvertisement interval in seconds.
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.
<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 named vpn1.
<Sysname> system-view
[Sysname] mpls ldp vpn-instance vpn1
[Sysname-mpls-ldp-vpn-instance-vpn1] du-readvertise timer 100
1.1.25 hops-count
Syntax
hops-count hop-number
undo hops-count
View
MPLS LDP view/MPLS LDP VPN instance view
Default Level
1: Monitor level
Parameters
hop-number: Hop count.
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.
Note that:
l You must configure the command before enabling LDP on any interface.
l The maximum hop count dictates how fast LDP detects a loop. Adjust this argument as required.
Related commands: loop-detect, path-vectors.
Examples
# Set the maximum hop count for loop detection to 25 for the public network LDP.
<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 named vpn1.
<Sysname> system-view
[Sysname] mpls ldp vpn-instance vpn1
[Sysname-mpls-ldp-vpn-instance-vpn1] hops-count 25
1.1.26 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 support PHP and distribute to the penultimate hop an explicit null label, whose value is 0.
implicit-null: Specifies the egress to support PHP and distribute to the penultimate hop an implicit null label, whose value is 3.
non-null: Specifies the egress to distribute the label to the penultimate hop normally and not to support PHP. The value of the distributed label will be equal to or greater than 1024.
Description
Use the label advertise command to specify whether the egress supports PHP and what type of label the egress should distribute to the penultimate hop.
Use the undo label advertise command to restore the default.
By default, an egress supports PHP and distributes to the penultimate hop an implicit null label.
& Note:
l The type of label for the egress to distribute depends on whether the penultimate hop supports PHP.
l You must use the reset mpls ldp command to reset LDP sessions for the configuration to take effect.
Examples
# Specify the egress to distribute an explicit null label to the penultimate hop.
<Sysname> system-view
[Sysname] mpls
[Sysname-mpls] label advertise explicit-null
1.1.27 label-distribution
Syntax
label-distribution { independent | ordered }
undo label-distribution
View
MPLS LDP view/MPLS LDP VPN instance view
Default Level
1: Monitor level
Parameters
independent: Works in independent mode, advertising label bindings anytime.
ordered: Works in ordered mode, advertising to its upstream a label binding only when it receives a specific label binding message from the next hop for a FEC or the LSR itself is the egress node of the FEC.
Description
Use the label-distribution command to configure the label distribution control mode.
Use the undo label-distribution command to restore the default.
The default mode is ordered.
& Note:
You must use the reset mpls ldp command to reset LDP sessions for the configuration to take effect.
Examples
# Set the label distribution control mode to independent for the public network LDP.
<Sysname> system-view
[Sysname] mpls ldp
[Sysname-mpls-ldp] label-distribution independent
# Set the label distribution control mode to independent for LDP instance named vpn1.
<Sysname> system-view
[Sysname] mpls ldp vpn-instance vpn1
[Sysname-mpls-ldp-vpn-instance-vpn1] label-distribution independent
1.1.28 label-retention
Syntax
label-retention { conservative | liberal }
undo label-retention
View
MPLS LDP VPN instance view/MPLS LDP view
Default Level
1: Monitor level
Parameters
conservative: Works in conservative mode, keeping only label to FEC bindings that are from its next hops for the FECs
liberal: Works in liberal mode, keeping any received label to FEC binding, whether the binding is from its next hop for the FEC or not.
Description
Use the label-retention command to configure the label retention mode.
Use the undo label-retention command to restore the default.
The default label retention mode is liberal.
& Note:
You must use the reset mpls ldp command to reset LDP sessions for the configuration to take effect.
Examples
# Set the label retention mode to conservative for the public network LDP.
<Sysname> system-view
[Sysname] mpls ldp
[Sysname-mpls-ldp] label-retention conservative
# Set the label retention mode to conservative for LDP instance named vpn1.
<Sysname> system-view
[Sysname] mpls ldp vpn-instance vpn1
[Sysname-mpls-ldp-vpn-instance-vpn1] label-retention conservative
1.1.29 loop-detect
Syntax
loop-detect
undo loop-detect
View
MPLS LDP view/MPLS LDP VPN instance view
Default Level
1: Monitor 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.
Note that you must enable loop detection before enabling LDP on any interfaces.
Related commands: hops-count, path-vectors.
Examples
# Enable loop detection for the public network LDP.
<Sysname> system-view
[Sysname] mpls ldp
[Sysname-mpls-ldp] loop-detect
# Enable loop detection for LDP instance named vpn1.
<Sysname> system-view
[Sysname] mpls ldp vpn-instance vpn1
[Sysname-mpls-ldp-vpn-instance-vpn1] loop-detect
1.1.30 lsp-trigger
Syntax
lsp-trigger { all | ip-prefix prefix-name }
undo lsp-trigger { all | ip-prefix prefix-name }
View
MPLS view
Default Level
1: Monitor level
Parameters
all: Specifies all FECs, that is, all static routes and IGP routes.
ip-prefix prefix-name: Name of the IP address prefix list.
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 loopback addresses with 32-bit masks can trigger LDP to establish LSPs.
Note that:
l With the all keyword specified in the lsp-trigger command, all static and IGP routes can trigger LDP to establish LSPs.
l Using ip-prefix prefix-name keyword and argument combination in the lsp-trigger command, only IGP routes surviving the IGP route filtering based on an IP address prefix list can trigger LDP to establish LSPs.
l For an LSP to be established, an exactly matched routing entry must exist on the LSR. With loopback addresses using 32-bit masks, only exactly matched host routing entries can trigger LDP to establish LSPs.
l An IP address prefix list affects only static routes and IGP routes.
l For information about IP address prefix list, refer to Routing Policy Configuration in IP Routing Volume.
Examples
# Specify LDP to allow all static and IGP routes to trigger LSP establishment.
<Sysname> system-view
[Sysname] mpls
[Sysname-mpls] lsp-trigger all
1.1.31 lsr-id
Syntax
lsr-id lsr-id
undo lsr-id
View
MPLS LDP VPN instance view/MPLS LDP view
Default Level
1: Monitor 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.
<Sysname> system-view
[Sysname] mpls ldp
[Sysname-mpls-ldp] lsr-id 2.2.2.3
# Configure the LDP LSR ID of LDP instance named vpn1.
<Sysname> system-view
[Sysname] mpls ldp vpn-instance vpn1
[Sysname-mpls-ldp-vpn-instance-vpn1] lsr-id 4.2.2.3
1.1.32 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
1: Monitor level
Parameters
plain: Displays the password in plain text.
cipher: Displays the password in cipher text.
peer-lsr-id: MPLS LSR ID of the peer. An LSR and its peer use the same password.
password: Password string, case sensitive. If you specify the plain keyword, it must be a string of 1 to 16 characters in plain text. If you specify the cipher keyword, it can be either a string of 1 to 16 characters in plain text or a string of 24 characters in cipher text.
Description
Use the md5-password command to enable LDP MD5 authentication and set the password, which must be the same as that configured on the peer.
Use the undo md5-password command to disable LDP MD5 authentication.
By default, LDP MD5 authentication is disabled.
Changing of the password will cause the session to be reestablished and all existing LSPs related to the session to be deleted.
This command takes effect only when MPLS LDP is enabled in the corresponding view.
Examples
# Enable MD5 authentication for the public network LDP, setting the password display mode to plain text.
[Sysname] mpls ldp
[Sysname-mpls-ldp] md5-password plain 3.3.3.3 beijingpass
# Enable MD5 authentication for LDP instance named vpn1, setting the password display mode to plain text.
<Sysname> system-view
[Sysname] mpls ldp vpn-instance vpn1
[Sysname-mpls-ldp-vpn-instance-vpn1] md5-password plain 3.3.3.3 beijingpass
1.1.33 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 for the current node and enter MPLS view.
Use the undo mpls command in system view to disable MPLS for the current node.
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 not enabled.
Note that:
l You need to configure the LSR ID before enabling MPLS capability.
l You need to enable MPLS globally before enabling it for an interface.
l You need to enter MPLS view to configure other MPLS commands.
Related commands: mpls lsr-id.
Examples
# Enable MPLS for the current node and enter MPLS view.
<Sysname> System-view
[Sysname] mpls lsr-id 1.1.1.1
[Sysname] mpls
[Sysname-mpls] quit
# Enable MPLS for interface VLAN-interface 1.
<Sysname> System-view
[Sysname] interface vlan-interface 1
[Sysname-Vlan-interface1] mpls
1.1.34 mpls ldp (system view)
Syntax
mpls ldp [ vpn-instance vpn-instance-name ]
undo mpls ldp [ vpn-instance vpn-instance-name ]
View
System view
Default Level
1: Monitor level
Parameters
vpn-instance-name: Name of the VPN instance.
Description
Use the mpls ldp command to enable LDP for the current node and enter MPLS LDP view.
Use the undo mpls ldp command to disable LDP for the current node and remove all LDP instances
Use the mpls ldp vpn-instance command to enable LDP for a VPN instance, create an LDP instance, and enter MPLS LDP VPN instance view.
Use the undo mpls ldp vpn-instance command to disable LDP for a VPN instance.
Configure the mpls ldp command after configuring MPLS LSR ID and enabling MPLS for the current node.
Examples
# Enable LDP for the current node.
<Sysname> System-view
[Sysname] mpls lsr-id 1.1.1.1
[Sysname] mpls
[Sysname-mpls] quit
[Sysname] mpls ldp
[Sysname-mpls-ldp] quit
# Enable LDP for VPN instance vpn1.
<Sysname> System-view
[Sysname] mpls ldp vpn-instance vpn1
[Sysname-mpls-ldp-vpn-instance-vpn1]
1.1.35 mpls ldp (interface view)
Syntax
mpls ldp
undo mpls ldp
View
Interface view
Default Level
1: Monitor 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 create an entity and periodically sends Hello messages.
Before enabling LDP in interface view, be sure to complete the following tasks:
l Use the mpls command in system view to enable MPLS.
l Use the mpls ldp command in system view to enable MPLS LDP.
l Use the mpls command in interface view to enable MPLS.
If the interface is bound to a VPN instance, you must use the mpls ldp vpn-instance command to enable LDP for the VPN instance before enabling LDP on the interface to add the interface into the VPN instance.
& Note:
This command supports these interface types: POS interface, tunnel interface, and VLAN interface.
Examples
# Enable LDP for interface VLAN-interface 1.
<Sysname> System-view
[Sysname] interface vlan-interface 1
[Sysname-Vlan-interface1] mpls
[Sysname-Vlan-interface1] mpls ldp
1.1.36 mpls ldp advertisement
Syntax
mpls ldp advertisement { dod | du }
undo mpls ldp advertisement
View
Interface view
Default Level
1: Monitor level
Parameters
dod: Works in downstream on demand (DoD) mode, advertising a label to FEC binding in response to the explicit request of an upstream LSR.
du: Works in downstream unsolicited (DU) mode, advertising label to FEC bindings to LSRs without explicitly requesting bindings.
Description
Use the mpls ldp advertisement command to specify the label advertisement mode.
Use the undo mpls ldp advertisement command to restore the default.
By default, DU mode is used.
Note that changing the label advertisement mode will cause the existing sessions to be reestablished, and the LSPs established by the sessions to be deleted and reestablished.
Examples
# Configure the label advertisement mode.
<Sysname> system-view
[Sysname] interface vlan-interface 12
[Sysname-Vlan-interface12] mpls
[Sysname-Vlan-interface12] mpls ldp
[Sysname-Vlan-interface12] mpls ldp advertisement du
[Sysname-Vlan-interface12] mpls ldp advertisement dod
# Restore the default advertisement mode.
[Sysname-Vlan-interface12] undo mpls ldp advertisement
1.1.37 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
1: Monitor level
Parameters
remote-peer-name: Name of the remote peer, case-insensitive.
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.
<Sysname> System-view
[Sysname] mpls ldp remote-peer BJI
[Sysname-mpls-ldp-remote-bji]
1.1.38 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
1: Monitor level
Parameters
value: Length of time for the Hello timer.
Description
Use the mpls ldp timer hello-hold command to set the Hello timers.
Use the undo mpls ldp timer hello-hold command to restore the defaults.
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, while that of the targeted Hello timer is 45 seconds.
& Note:
Changing the values of the Hello timers does not affect any existing session.
Related commands: mpls ldp (system view), mpls ldp (interface view).
Examples
# Set the link Hello timer for local sessions to 100 seconds on interface VLAN-interface 1.
<Sysname> System-view
[Sysname] interface vlan-interface 1
[Sysname-Vlan-interface1] mpls
[Sysname-Vlan-interface1] mpls ldp
[Sysname-Vlan-interface1] mpls ldp timer hello-hold 100
# Set the targeted Hello timer for remote sessions to 1000 seconds.
<Sysname> System-view
[Sysname] mpls ldp remote-peer BJI
[Sysname-mpls-ldp-remote-bji] remote-ip 3.3.3.3
[Sysname-mpls-ldp-remote-bji] mpls ldp timer hello-hold 1000
1.1.39 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
1: Monitor level
Parameters
value: Length of time for the Keepalive timer.
Description
Use the mpls ldp timer keepalive-hold command to set the keepalive timers.
Use the undo mpls ldp timer keepalive-hold command to restore the defaults.
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.
Caution:
l 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.
l Changing the values of the Keepalive timers will cause existing LDP sessions to be reestablished.
Examples
# Set the link Keepalive timer for local sessions to 50 seconds on interface VLAN-interface 1.
<Sysname> System-view
[Sysname] interface vlan-interface 1
[Sysname-Vlan-interface1] mpls
[Sysname-Vlan-interface1] mpls ldp
[Sysname-Vlan-interface1] mpls ldp timer keepalive-hold 50
# Set the targeted Keepalive timer for remote sessions to 1000 seconds.
<Sysname> System-view
[Sysname] mpls ldp remote-peer BJI
[Sysname-mpls-ldp-remote-bji] remote-ip 3.3.3.3
[Sysname-mpls-ldp-remote-bji] mpls ldp timer keepalive-hold 1000
1.1.40 mpls ldp transport-address
Syntax
mpls ldp transport-address { interface-type interface-number | interface }
undo mpls ldp transport-address
View
Interface view/MPLS LDP remote peer view
Default Level
1: Monitor level
Parameters
interface-type interface-number: Specifies an interface by its type and number, making LDP use the address of this interface as the TCP transport address.
interface: Specifies that LDP use the IP address of the current interface as the TCP transport address. This keyword is available only in interface view.
Description
Use the mpls ldp transport-address command to configure the LDP transport addresses.
Use the undo mpls ldp transport-address command to restore the defaults.
By default, the transport addresses are both the MPLS LSR ID.
In interface view, you configure the link Hello transport address; in MPLS LDP remote peer view, you configure the targeted Hello transport address.
Examples
# On interface VLAN-interface 1, configure the link Hello transport address for local sessions as the IP address of the current interface.
<Sysname> System-view
[Sysname] interface vlan-interface 1
[Sysname-Vlan-interface1] mpls
[Sysname-Vlan-interface1] mpls ldp
[Sysname-Vlan-interface1] mpls ldp transport-address interface
# Configure the targeted Hello transport address for remote sessions to be the IP address of interface VLAN-interface 1.
<Sysname> System-view
[Sysname] mpls ldp remote-peer BJI
[Sysname-mpls-ldp-remote-bji] remote-ip 3.3.3.3
[Sysname-mpls-ldp-remote-bji] mpls ldp transport-address vlan-interface 1
1.1.41 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.
You are recommended to use the address of a loopback interface on the LSR as the ID.
Related commands: display mpls interface.
Examples
# Set the LSR ID to 3.3.3.3.
<Sysname> system-view
[Sysname] mpls lsr-id 3.3.3.3
1.1.42 mtu-signalling
Syntax
mtu-signalling
undo mtu-signalling
View
MPLS LDP view
Default Level
1: Monitor level
Parameters
None
Description
Use the mtu-signalling command to enable MTU signaling.
Use the undo mtu-signalling command to disable MTU signaling.
By default, MTU signaling is enabled.
Enabling/disabling MTU signaling will cause the existing sessions to be reestablished, and the LSPs established by the sessions to be deleted and reestablished.
Examples
# Enable MTU signaling.
<Sysname> System-view
[Sysname] mpls ldp
[Sysname-mpls-ldp] mtu-signalling
1.1.43 path-vectors
Syntax
path-vectors pv-number
undo path-vectors
View
MPLS LDP VPN instance view/MPLS LDP view
Default Level
1: Monitor level
Parameters
pv-number: Path vector maximum hop count32.
Description
Use the path-vectors command to set the path vector maximum hop count.
Use the undo path-vectors command to restore the default.
By default, the path vector maximum hop count for an instance is 32.
Note that this command takes effect only when MPLS LDP is enabled on all interfaces.
Related commands: loop-detect, hops-count.
Examples
# Set the path vector maximum hop count to 3 for the public network LDP.
<Sysname> system-view
[Sysname] mpls ldp
[Sysname-mpls-ldp] path-vectors 3
# Set the path vector maximum hop count to 3 for LDP instance named vpn1.
<Sysname> system-view
[Sysname] mpls ldp vpn-instance vpn1
[Sysname-mpls-ldp-vpn-instance-vpn1] path-vectors 3
1.1.44 ping lsp
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 ] | te interface-type interface-number }
View
Any view
Default Level
0: Visit level
Parameters
-a source-ip: Specifies the source address for the echo request message.
-c count: Specifies the number of attempts to sending the request message.
-exp exp-value: Specifies the EXP value for the echo request message.
-h ttl-value: Specifies the TTL value for the echo request message.
-m wait-time: Specifies the interval for sending echo request messages.
-r reply-mode: Specifies the reply mode in response to an echo request message. The S9500 series supports only two of the four reply modes in RFC 4397. A value of 1 means “Do not response”, while a value of 2 means “Respond using a UDP packet”.
-s packet-size: Specifies the payload length of the echo request message.
-t time-out: Specifies the timeout interval for the response to an echo request message.
-v: Displays detailed response information.
ipv4 dest-addr mask-length: Specifies the LDP Ipv4 destination address and the mask.
destination-ip-addr-header: Specifies the IP header destination address for the MPLS echo request message, which can be any address on segment 127.0.0.0/8, that is, any local loopback address.
te interface-type interface-number: Specifies a tunnel interface by its type and number.
Description
Use the ping lsp command to check the validity and reachabiliity of an LSP.
Examples
# Ping a specified address by send five packets.
<Sysname> ping lsp –c 5 ipv4 3.3.3.9 32
LSP PING FEC: LDP 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.2.3.1: bytes=100 Sequence=3 time = 62 ms
Reply from 100.1.2.1: bytes=100 Sequence=4 time = 62 ms
--- FEC: LDP 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
1.1.45 remote-ip
Syntax
remote-ip ip-address
undo remote-ip
View
MPLS LDP remote peer view
Default Level
1: Monitor 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.
Note that 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 LDP remote peer IP address.
<Sysname> system-view
[Sysname] mpls ldp remote-peer BJI
[Sysname-mpls-ldp-remote-bji] remote-ip 3.3.3.3
1.1.46 reset mpls ldp
Syntax
reset mpls ldp [ all | [ vpn-instance vpn-instance-name ] [ peer peer-id ] ]
View
User view
Default Level
1: Monitor level
Parameters
vpn-instance-name: Name of the VPN instance.
peer-id: MPLS LSR ID of the peer.
all: Specified all LDP instances.
Description
Use the reset mpls ldp command to reset LDP sessions.
l With no parameters specified, the command resets the sessions of all public network LDP instances.
l With only the all keyword specified, the command resets the sessions of all LDP instances, including those of the public LDP instances and those of the VPN LDP instances.
l With the vpn-instance vpn-instance-name keyword and argument combination specified, the command resets the sessions of the specified LDP instance.
l With the peer peer-id keyword and argument combination specified, the command resets the sessions with the specified peer.
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 with a specified peer.
<Sysname> reset mpls ldp peer 2.2.2.9
1.1.47 reset mpls statistics interface
Syntax
reset mpls statistics interface { interface-type interface-number | all }
View
User view
Default Level
2: System level
Parameters
interface-type interface-number: Specifies an interface by its type and number.
all: Specifies all interfaces.
Description
Use the reset mpls statistics interface command to clear MPLS statistics for a specified or all MPLS interfaces.
Related commands: display mpls statistics interface.
Examples
# Clear MPLS statistics for interface VLAN-interface 1.
<Sysname> reset mpls statistics interface vlan-interface 1
1.1.48 reset mpls statistics lsp
Syntax
reset mpls statistics lsp { index | all | name lsp-name }
View
User view
Default Level
2: System level
Parameters
index: Index number of the LSP, in the range 0 to 4,294,967,295.
all: Specifies all LSPs.
lsp-name: Name of the LSP, a string of 1 to 15 characters.
Description
Use the reset mpls statistics lsp command to clear MPLS statistics for a specified or all LSPs.
Related commands: display mpls statistics lsp.
Examples
# Clear MPLS statistics for LSP lsp1.
<Sysname> reset mpls statistics lsp lsp1
1.1.49 snmp-agent trap enable mpls
Syntax
snmp-agent trap enable mpls
undo snmp-agent trap enable mpls
View
System view
Default Level
3: Manage level
Parameters
None
Description
Use the snmp-agent trap enable mpls command to enable the MPLS trap function.
Use the undo snmp-agent trap enable command to disable the function.
By default, the function is disabled.
Examples
# Enable the MPLS trap function.
<Sysname> system-view
[Sysname] snmp-agent trap enable mpls
1.1.50 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.
interface-type interface-number: Specifies an interface by its type and number.
in-label: Incoming label value.
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: static-lsp ingress, static-lsp transit, display mpls static-lsp.
Examples
# Configure a static LSP named bj-sh, taking the current LSR as the egress.
<Sysname> system-view
[Sysname] static-lsp egress bj-sh incoming-interface vlan-interface 12 in-label 233
1.1.51 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.
dest-addr: Destination IP address of the LSP.
mask: Mask of the destination IP address.
mask-length: Length of the mask for the destination address.
next-hop-addr: Address of the next hop.
outgoing-interface interface-type interface-number: Specifies an interface by its type and number.
out-label: Outgoing label value.
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.
Note that:
l If you specify the next hop when configuring a static LSP, and the address of the next hop is present in the routing table, you must also specify the next hop when configuring the static IP route.
l If you specify the outgoing interface when configuring a static LSP, you must also specify the outgoing interface when configuring the static IP route.
l The address of the next hop cannot be any local public network IP address.
Related commands: static-lsp egress, static-lsp transit, display mpls static-lsp.
Examples
# Configure a static LSP to destination address 202.25.38.1, taking the current LSR as the ingress.
<Sysname> system-view
[Sysname] static-lsp ingress bj-sh destination 202.25.38.1 24 nexthop 202.55.25.33 out-label 237
1.1.52 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.
interface-type interface-number: Specifies an incoming interface by its type and number.
in-label: Incoming label value.
nexthop next-hop-addr: Address of the next hop.
outgoing-interface interface-type interface-number: Specifies an outgoing interface by its type and number.
out-label: Outgoing label value.
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.
Note that:
l If you specify the next hop when configuring a static LSP, and the address of the next hop is present in the routing table, you must also specify the next hop when configuring the static IP route.
l If you specify the outgoing interface when configuring a static LSP, you must also specify the outgoing interface when configuring the static IP route.
l The address of the next hop cannot be any local public network IP address.
Related commands: static-lsp egress, static-lsp ingress.
Examples
# Configure a static LSP, taking VLAN-interface 12 as the incoming interface and setting the incoming label as 123 and the outgoing label as 253.
<Sysname> system-view
[Sysname] static-lsp transit bj-sh incoming-interface vlan-interface 12 in-label 123 nexthop 202.34.114.7 out-label 253
1.1.53 statistics interval
Syntax
statistics interval interval-time
undo statistics interval
View
MPLS view
Default Level
2: System level
Parameters
interval-time: Statistics Interval.
Description
Use the statistics interval command to set the statistics interval, that is, the interval for collecting statistics.
Use the undo statistics interval command to restore the default.
By default, the interval is 0.
Related commands: display mpls statistics interface, display mpls statistics lsp.
Examples
# Set the statistics interval to 30 seconds.
<Sysname> system-view
[Sysname] mpls
[Sysname-mpls] statistics interval 30
1.1.54 tracert lsp
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 ] | te interface-type interface-number }
View
Any view
Default Level
0: Visit level
Parameters
-a source-ip: Specifies the source address for the echo request message.
-exp exp-value: Specifies the EXP value for the echo request message.
-h ttl-value: Specifies the TTL value for the echo request message.
-r reply-mode: Specifies the reply mode in response to an echo request message. The reply-mode argument can be 1 or 2. A value of 1 means “Do not response”, while a value of 2 means “Respond using a UDP packet”.
-t time-out: Specifies the timeout interval for the response to an echo request message (milliseconds).
ipv4 dest-addr mask: Specifies the LDP Ipv4 destination address and the mask.
destination-ip-addr-header: Specifies the IP header destination address for the MPLS echo request message, which can be any address on segment 127.0.0.0/8, that is, any local loopback address.
te interface-type interface-number: Specifies a tunnel interface by its type and number.
Description
Use the tracert lsp command to locate an MPLS LSP error.
Examples
# Locate an error along the LSP to 3.3.3.9 on host 1.1.1.1.
<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
1.1.55 ttl expiration
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 specify that the ICMP response message be transported back along the IP route when the TTL of an MPLS packet expires.
Use the undo ttl expiration pop command to specify that the ICMP response be transported back along the LSP when the TTL of an MPLS packet expires.
By default, the ICMP response message of an MPLS packet with a one-level label is transported back along the IP route.
Note that configuring the undo mpls command will remove the configuration of the ttl expiration pop command.
Related commands: ttl propagate.
Examples
# Specify that the ICMP response be transported back along the LSP when the TTL of an MPLS packet expires
<Sysname> system-view
[Sysname] mpls
[Sysname-mpls] undo ttl expiration pop
1.1.56 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 either 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.
Examples
# Enable MPLS IP TTL propagation for VPN packets.
<Sysname> system-view
[Sysname] mpls
[Sysname-mpls] ttl propagate vpn