H3C S9500 Series Command Manual

  • Hello! I am an AI chatbot trained to assist you with the H3C S9500 Series Command Manual. I’ve already reviewed the document and can help you find the information you need or explain it in simple terms. Just ask your questions, and providing more details will help me assist you more effectively!
H3C S9500 Series Routing Switches
Command Manual
Hangzhou H3C Technologies Co., Ltd.
http://www.h3c.com
Manual Version: T2-08194H-20080520-C-2.03
Product Version: S9500-CMW520-R2132
Copyright © 2007-2008, Hangzhou H3C Technologies Co., Ltd. and its licensors
All Rights Reserved
No part of this manual may be reproduced or transmitted in any form or by any means
without prior written consent of Hangzhou H3C Technologies Co., Ltd.
Trademarks
H3C, , Aolynk, , H
3
Care,
, TOP G, , IRF, NetPilot,
Neocean, NeoVTL, SecPro, SecPoint, SecEngine, SecPath, Comware, Secware,
Storware, NQA, VVG, V
2
G, V
n
G, PSPT, XGbus, N-Bus, TiGem, InnoVision and
HUASAN are trademarks of Hangzhou H3C Technologies Co., Ltd.
All other trademarks that may be mentioned in this manual are the property of their
respective owners.
Notice
The information in this document is subject to change without notice. Every effort has
been made in the preparation of this document to ensure accuracy of the contents, but
all statements, information, and recommendations in this document do not constitute
the warranty of any kind, express or implied.
To obtain the latest information, please access:
http://www.h3c.com
Technical Support
customer_service@h3c.com
http://www.h3c.com
About This Manual
Related Documentation
In addition to this manual, each H3C S9500 Series Routing Switches documentation
set includes the following:
Manual Description
H3C S9500 Series Routing
Switches Installation Manual
It introduces the installation procedure,
commissioning, maintenance and monitoring of
the S9500 series routing switches.
H3C S9500 Series Routing
Switches Operation Manual
It includes Product Overview, Access Volume,
IP Service Volume, IP Routing Volume, IP
Multicast Volume, MPLS VPN Volume, QoS
ACL Volume, Security Volume, System
Volume , OAA Volume and Acronyms.
Organization
H3C Command Manual is organized as follows:
Part Contents
00 Feature List and
Command Index
includes Feature List and Command Index.
01 Access Volume
includes Ethernet Interface Commands, POS Interface
Commands, GVRP Commands, Link Aggregation
Commands, Port Mirroring Commands, RPR Commands,
Ethernet OAM Commands, MSTP Commands, VLAN
Commands, QinQ Commands, BPDU Tunneling
Commands, and Port Isolation Commands.
02 IP Services
Volume
includes ARP Commands, DHCP Commands, DNS
Commands, IP Addressing Commands, IP Performance
Commands, UDP Helper Commands, IPv6 Basics
Commands, Dual Stack Commands, Tunneling
Commands, and Adjacency Table Command.
03 IP Routing Volume
includes IP Routing Table Display Commands, BGP
Commands, IS-IS Commands, OSPF Commands, RIP
Commands, Routing Policy Commands, Static Routing
Commands, IPv6 BGP Commands, IPv6 IS-IS
Commands, IPv6 OSPFv3 Commands, IPv6 RIPng
Commands, and IPv6 Static Routing Commands.
Part Contents
04 IP Multicast
Volume
includes Multicast Routing and Forwarding Commands,
IGMP Snooping Commands, IGMP Commands, PIM
Commands, MSDP Commands, IPv6 Multicast Routing,
and Forwarding Commands, MLD Snooping Commands,
MLD Commands, IPv6 PIM Commands, Multicast VLAN
Commands.
05 MPLS VPN
Volume
includes MPLS Basics Commands, MPLS TE Commands,
VPLS Commands, MPLS L2VPN Commands, MPLS
L3VPN Commands, MPLS Hybrid Insertion Commands,
and GRE Commands.
06 QoS ACL Volume includes QoS Commands and ACL Commands.
07 Security Volume
includes 802.1x Commands, AAA, RADIUS HWTACACS
Commands, MAC Authentication Commands, L3+NAT
Commands, Password Control Commands, SSH2.0
Commands, and Portal Commands.
08 System Volume
includes GR Commands, VRRP Commands, HA
Commands, Device Management Commands, NQA
Commands, NetStream Commands, NTP Commands,
RMON Commands, SNMP Commands, File System
Management Commands, System Maintaining and
Debugging Commands, Basic System Configuration
Commands, Information Center Commands, User
Interface Commands, MAC Address Table Management
Commands, PoE Commands, and Clock Monitoring
Commands.
09 OAA Volume includes OAP Module Commands and ACSEI Commands.
10 Unsupported
Commands
List of Unsupported Commands.
Conventions
The manual uses the following conventions:
I. Command conventions
Convention Description
Boldface
The keywords of a command line are in Boldface.
italic
Command arguments are in italic.
[ ]
Items (keywords or arguments) in square brackets [ ] are
optional.
{ x | y | ... }
Alternative items are grouped in braces and separated by
vertical bars. One is selected.
Convention Description
[ x | y | ... ]
Optional alternative items are grouped in square brackets
and separated by vertical bars. One or none is selected.
{ x | y | ... } *
Alternative items are grouped in braces and separated by
vertical bars. A minimum of one or a maximum of all can be
selected.
[ x | y | ... ] *
Optional alternative items are grouped in square brackets
and separated by vertical bars. Many or none can be
selected.
&<1-n>
The argument(s) before the ampersand (&) sign can be
entered 1 to n times.
# A line starting with the # sign is comments.
II. GUI conventions
Convention Description
< >
Button names are inside angle brackets. For example, click
<OK>.
[ ]
Window names, menu items, data table and field names
are inside square brackets. For example, pop up the [New
User] window.
/
Multi-level menus are separated by forward slashes. For
example, [File/Create/Folder].
III. Symbols
Convention Description
Warning
Means reader be extremely careful. Improper operation
may cause bodily injury.
Caution
Means reader be careful. Improper operation may cause
data loss or damage to equipment.
 Note Means a complementary description.
Command Manual
H3C S9500 Series Routing Switches MPLS VPN Volume Organization
Manual Version
T2-08194H-20080530-C-2.03
Product Version
S9500-CMW520-R2132
Organization
The MPLS VPN Volume is organized as follows:
Features (command
manual)
Description
MPLS Basics
Commands
Introduces the commands for MPLS configuration.
MPLS TE Introduces the commands for MPLS TE configuration.
VPLS Introduces the commands for VPLS configuration.
MPLS L2VPN
Introduces the commands for MPLS L2VPN
configuration.
MPLS L3VPN
Introduces the commands for MPLS L3VPN
configuration.
MPLS Hybrid Insertion
Introduces the commands for MPLS hybrid insertion
configuration.
GRE Introduces the commands for GRE configuration.
Command Manual – MPLS Basics
H3C S9500 Series Routing Switches Table of Contents
i
Table of Contents
Chapter 1 MPLS Basics Configuration Commands...................................................................1-1
1.1 MPLS Basic Configuration Commands.............................................................................1-1
1.1.1 debugging mpls ldp.................................................................................................1-1
1.1.2 debugging mpls lfib.................................................................................................1-8
1.1.3 debugging mpls lfib slot drv.....................................................................................1-9
1.1.4 debugging mpls lspc .............................................................................................1-11
1.1.5 debugging mpls management...............................................................................1-12
1.1.6 debugging mpls packet.........................................................................................1-24
1.1.7 display mpls interface............................................................................................1-26
1.1.8 display mpls label..................................................................................................1-28
1.1.9 display mpls ldp.....................................................................................................1-29
1.1.10 display mpls ldp cr-lsp.........................................................................................1-30
1.1.11 display mpls ldp interface....................................................................................1-31
1.1.12 display mpls ldp Isp.............................................................................................1-33
1.1.13 display mpls ldp peer ..........................................................................................1-34
1.1.14 display mpls ldp remote-peer..............................................................................1-36
1.1.15 display mpls ldp session .....................................................................................1-37
1.1.16 display mpls ldp vpn-instance.............................................................................1-39
1.1.17 display mpls lsp...................................................................................................1-40
1.1.18 display mpls lsp statistics....................................................................................1-43
1.1.19 display mpls route-state......................................................................................1-44
1.1.20 display mpls static-lsp .........................................................................................1-44
1.1.21 display mpls statistics interface...........................................................................1-45
1.1.22 display mpls statistics lsp....................................................................................1-47
1.1.23 du-readvertise .....................................................................................................1-49
1.1.24 du-readvertise timer............................................................................................1-50
1.1.25 hops-count...........................................................................................................1-51
1.1.26 label advertise.....................................................................................................1-51
1.1.27 label-distribution..................................................................................................1-53
1.1.28 label-retention......................................................................................................1-54
1.1.29 loop-detect...........................................................................................................1-55
1.1.30 lsp-trigger ............................................................................................................1-55
1.1.31 lsr-id.....................................................................................................................1-56
1.1.32 md5-password.....................................................................................................1-57
1.1.33 mpls.....................................................................................................................1-58
1.1.34 mpls ldp (system view)........................................................................................1-59
1.1.35 mpls ldp (interface view) .....................................................................................1-60
1.1.36 mpls ldp advertisement.......................................................................................1-61
Command Manual – MPLS Basics
H3C S9500 Series Routing Switches Table of Contents
ii
1.1.37 mpls ldp remote-peer..........................................................................................1-62
1.1.38 mpls ldp timer hello-hold.....................................................................................1-63
1.1.39 mpls ldp timer keepalive-hold..............................................................................1-64
1.1.40 mpls ldp transport-address..................................................................................1-65
1.1.41 mpls lsr-id............................................................................................................1-66
1.1.42 mtu-signalling......................................................................................................1-67
1.1.43 path-vectors.........................................................................................................1-68
1.1.44 ping lsp................................................................................................................1-69
1.1.45 remote-ip.............................................................................................................1-70
1.1.46 reset mpls ldp......................................................................................................1-71
1.1.47 reset mpls statistics interface..............................................................................1-72
1.1.48 reset mpls statistics lsp .......................................................................................1-72
1.1.49 snmp-agent trap enable mpls..............................................................................1-73
1.1.50 static-lsp egress ..................................................................................................1-73
1.1.51 static-lsp ingress..................................................................................................1-74
1.1.52 static-lsp transit ...................................................................................................1-75
1.1.53 statistics interval..................................................................................................1-76
1.1.54 tracert lsp.............................................................................................................1-77
1.1.55 ttl expiration.........................................................................................................1-78
1.1.56 ttl propagate ........................................................................................................1-79
Command Manual – MPLS Basics
H3C S9500 Series Routing Switches Chapter 1 MPLS Basics Configuration Commands
1-1
Chapter 1 MPLS Basics Configuration Commands
 Note:
z 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.
z 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
User 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.
Command Manual – MPLS Basics
H3C S9500 Series Routing Switches Chapter 1 MPLS Basics Configuration Commands
1-2
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
Command Manual – MPLS Basics
H3C S9500 Series Routing Switches Chapter 1 MPLS Basics Configuration Commands
1-3
// 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.
Command Manual – MPLS Basics
H3C S9500 Series Routing Switches Chapter 1 MPLS Basics Configuration Commands
1-4
// 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.
Command Manual – MPLS Basics
H3C S9500 Series Routing Switches Chapter 1 MPLS Basics Configuration Commands
1-5
*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.
Command Manual – MPLS Basics
H3C S9500 Series Routing Switches Chapter 1 MPLS Basics Configuration Commands
1-6
*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
Command Manual – MPLS Basics
H3C S9500 Series Routing Switches Chapter 1 MPLS Basics Configuration Commands
1-7
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:
Command Manual – MPLS Basics
H3C S9500 Series Routing Switches Chapter 1 MPLS Basics Configuration Commands
1-8
02 01 00 04 00 00 17 ad
The message type: Keepalive Message.
// Send a 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:
z 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.
z 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.
Command Manual – MPLS Basics
H3C S9500 Series Routing Switches Chapter 1 MPLS Basics Configuration Commands
1-9
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
Command Manual – MPLS Basics
H3C S9500 Series Routing Switches Chapter 1 MPLS Basics Configuration Commands
1-10
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
Command Manual – MPLS Basics
H3C S9500 Series Routing Switches Chapter 1 MPLS Basics Configuration Commands
1-11
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
Command Manual – MPLS Basics
H3C S9500 Series Routing Switches Chapter 1 MPLS Basics Configuration Commands
1-12
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.
/