5.4 Debugging Ping and Tracert
This section describes how to locate faults through ICMP messages.
Context
CAUTION
Debugging affects the performance of the system. After debugging, run the
undo debugging
all
command to disable it immediately.
If you run the
ping
or the
tracert
command on the two S5700s but the ping or tracert operation
fails, you can run the following command respectively on each S5700 to further locate the fault
after confirming that the physical link between the two S5700s is normal.
Procedure
Step 1
Run the
debugging ip icmp
command to enable ICMP packet debugging.
Through this command, you can check the transmission of ICMP messages during the running
of the
ping
or the
tracert
command and thus locate which device fails.
----End
5.5 Configuration Examples
This section provides a configuration example of ping and tracert operations.
5.5.1 Example for Performing Ping and Tracert Operations
Networking Requirements
As shown in
, after configuring Switch A, you check the link between Switch A and
the log host. If Switch A and the log host are disconnected, you cannot know which device fails
because there are other network devices between Switch A and the log host. To locate on which
link segment the fault occurs, you can perform ping and tracert operations.
Figure 5-4
Networking diagram of ping and tracert operations
SwitchA
Router
Log host
1.1.1.2/8
3.1.1.2/8
2.1.1.2/8
1.1.1.1/8
2.1.1.1/8
3.1.1.1/8
SwitchB
PC
LAN switch
Quidway S5700 Series Ethernet Switches
Configuration Guide - Network Management
5 Ping and Tracert
Issue 01 (2011-10-26)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
250