Table of Contents 1 System Maintaining and Debugging Commands 1-1

Similar documents
Table of Contents 1 System Maintenance and Debugging Commands 1-1

Ping, tracert and system debugging commands

Contents. Ping, tracert, and system debugging commands 1 debugging 1 display debugging 2 ping 2 ping ipv6 5 tracert 7 tracert ipv6 9

Contents. Ping, tracert, and system debugging commands 1. debugging 1 display debugging 1 ping 2 ping ipv6 5 tracert 7 tracert ipv6 10

Table of Contents 1 System Maintaining and Debugging 1-1

HP A6600 Routers Network Management and Monitoring. Command Reference. Abstract

Using ping, tracert, and system debugging

H3C SR6600/SR6600-X Routers

H3C SR6600 Routers. Network Management and Monitoring. Command Reference. Hangzhou H3C Technologies Co., Ltd.

HP 5920 & 5900 Switch Series

HP 6125G & 6125G/XG Blade Switches

H3C S7500E Series Ethernet Switches. Network Management and Monitoring. Configuration Guide. Hangzhou H3C Technologies Co., Ltd.

H3C S5500-HI Switch Series

HP 5120 SI Switch Series

H3C S5500-EI & S5500-SI Switch Series

HP 830 Series PoE+ Unified Wired-WLAN Switch Switching Engine

HP MSR Router Series Network Management and Monitoring

HP A5500 EI & A5500 SI Switch Series Network Management and Monitoring. Configuration Guide. Abstract

HP 6125G & 6125G/XG Blade Switches

HP 5820X & 5800 Switch Series Network Management and Monitoring. Configuration Guide. Abstract

HP 6125 Blade Switch Series

HP 5920 & 5900 Switch Series

H3C Access Controllers

H3C S7500E Series Ethernet Switches. Network Management and Monitoring. Configuration Guide. Hangzhou H3C Technologies Co., Ltd.

Configure IP SLA Tracking for IPv4 Static Routes on an SG550XG Switch

Table of Contents 1 IPv6 Configuration IPv6 Application Configuration 2-1

Table of Contents 1 IPv6 Configuration IPv6 Application Configuration 2-1

Lab 6.7.1: Ping and Traceroute

H3C S7500E-X Switch Series

The term "router" in this document refers to both routers and Layer 3 switches. Step Command Remarks. ipv6 host hostname ipv6-address

Internet Control Message Protocol (ICMP)

Configuring IPv6 DNS. Introduction to IPv6 DNS. Configuring the IPv6 DNS client. Configuring static domain name resolution

Network Layer (4): ICMP

H3C S5830V2 & S5820V2 Switch Series

Internet Protocol. Outline Introduction to Internet Protocol Header and address formats ICMP Tools CS 640 1

(ICMP), RFC

H3C S5820X&S5800 Switch Series

HP Load Balancing Module

Homework 2 TCP/IP Network Monitoring and Management

Configuring Routes on the ACE

HP MSR Router Series. Network Management and Monitoring Configuration Guide(V7)

I Commands. iping, page 2 iping6, page 4 itraceroute, page 5 itraceroute6 vrf, page 6. itraceroute vrf encap vxlan, page 12

HP FlexFabric 5930 Switch Series

ICMP (Internet Control Message Protocol)

Internet Control Message Protocol (ICMP), RFC 792. Prof. Lin Weiguo Copyleft 2009~2017, School of Computing, CUC

HP 6125XLG Blade Switch

set active-probe (PfR)

Troubleshooting Tools

ELEC / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

Operation Manual IP Addressing and IP Performance H3C S5500-SI Series Ethernet Switches. Table of Contents

Each ICMP message contains three fields that define its purpose and provide a checksum. They are TYPE, CODE, and CHECKSUM fields.

Table of Contents 1 Static Routing Configuration 1-1

Table of Contents 1 Static Routing Configuration 1-1

Problems of IP. Unreliable connectionless service. Cannot acquire status information from routers and other hosts

Table of Contents 1 Static Routing Configuration 1-1

HPE FlexFabric 5940 Switch Series

H

Chapter 4: outline. 4.5 routing algorithms link state distance vector hierarchical routing. 4.6 routing in the Internet RIP OSPF BGP

ICS 451: Today's plan

Login management commands

Lab Troubleshooting Using traceroute Instructor Version 2500

Configuring IP SLAs ICMP Echo Operations

Table of Contents 1 IPv6 Basics Configuration 1-1

HP 5120 EI Switch Series

Experiment No: Group B_4

Homework 2: Lab Activity TCP/IP Network Monitoring and Management

Configuring IP SLAs ICMP Path Jitter Operations

ICS 351: Networking Protocols

IPv6 ND Configuration Example

Operation Manual IPv6 H3C S3610&S5510 Series Ethernet Switches Table of Contents. Table of Contents

CS 356: Computer Network Architectures. Lecture 10: IP Fragmentation, ARP, and ICMP. Xiaowei Yang

Syntax instance instance [interface interface-name [vrid virtual-router-id] instance interface interface-name vrid virtual-router-id ipv6

Ref: A. Leon Garcia and I. Widjaja, Communication Networks, 2 nd Ed. McGraw Hill, 2006 Latest update of this lecture was on

Checking Port Status and Connectivity

MPLS Ping and Traceroute for BGP and IGP Prefix-SID

Table of Contents 1 DNS Configuration 1-1

FACULTY OF ENGINEERING. Lab Experiment

Step 2. Manual configuration of global unicast and link-local addresses

Using Segment Routing OAM

H

Checking Port Status and Connectivity

Configuring IP SLAs UDP Echo Operations

ICMP Computer Networks Lab Lab Course Number: Lab Course Name: Computer Networks (A) 3. Lab Name: ICMP

Table of Contents 1 IP Addressing Configuration IP Performance Configuration 2-1

Lab Assignment 4 ECE374 Spring Posted: 03/22/18 Due: 03/29/18. In this lab, we ll take a quick look at the ICMP and IP protocols.

General Network Troubleshooting

Aisyatul Karima Jarkom Lanjut - Week 3 LOGO.

HP 6125 Blade Switch Series

Introduction to Internetworking

Brocade 5600 vrouter Basic Routing

Brocade 5600 vrouter Basic Routing Configuration Guide

H3C Intrusion Prevention System. Command Reference. Hangzhou H3C Technologies Co., Ltd. Document Version: 5PW

IP - The Internet Protocol. Based on the slides of Dr. Jorg Liebeherr, University of Virginia

Chapter 5: Trouble shooting of a network

Network layer: Overview. Network layer functions IP Routing and forwarding NAT ARP IPv6 Routing

The Traceroute Command in MPLS

MPLS LSP Ping, Traceroute, and AToM VCCV

Computer Networking Introduction

CS519: Computer Networks. Lecture 2: Feb 2, 2004 IP (Internet Protocol)

Network layer: Overview. Network Layer Functions

Transcription:

Table of Contents 1 System Maintaining and Debugging Commands 1-1 System Maintaining Commands 1-1 ping 1-1 tracert 1-4 System Debugging Commands 1-6 debugging 1-6 display debugging 1-7 i

1 System Maintaining and Debugging Commands System Maintaining Commands ping Syntax ping [ ip ] [ -a source-ip -c count -f -h ttl -i interface-type interface-number -m interval -n -p pad -q -r -s packet-size -t timeout -tos tos -v ] * host View Any view Default Level 0: Visit level Parameters ip: Supports IPv4 protocol. If this keyword is not provided, IPv4 is also supported. -a source-ip: Specifies the source IP address of an ICMP echo request (ECHO-REQUEST). It must be an IP address configured on the device. If this parameter is not provided, the source IP address of an ICMP echo request is the primary IP address of the outbound interface of the request. -c count: Specifies the number of times that an ICMP echo request is sent, in the range 1 to 4294967295. The default value is 5. -f: Discards packets larger than the MTU of a given interface, that is, the ICMP echo request is not allowed to be fragmented. -h ttl: Specifies the TTL value for an ICMP echo request, in the range 1 to 255. The default value is 255. -i interface-type interface-number: Specifies the ICMP echo request sending interface by its type and number. If this parameter is not provided, the ICMP echo request sending interface is determined by searching the routing table or forwarding table according to the destination IP address. -m interval: Specifies the interval (in milliseconds) to send an ICMP echo response, in the range 1 to 65535. The default value is 200 ms. If a response from the destination is received within the timeout time, the interval to send the next echo request equals the actual response period plus the value of interval. If no response from the destination is received within the timeout time, the interval to send the next echo request equals the timeout value plus the value of interval. -n: Specifies that the Domain Name System (DNS) is disabled for the host argument. When this keyword is not provided, if the host argument represents the host name of the destination, the device will translate host into an address. -p pad: Specifies the value of the pad field in an ICMP echo request, in hexadecimal format, 1 to 8 bits, in the range 0 to ffffffff. If the specified value is less than 8 bits, 0s will be added in front of the value to 1-1

extend it to 8 bits. For example, if pad is configured as 0x2f, then the packets will be padded with 0x0000002f repeatedly to make the total length of the packet meet the requirements of the device. By default, the padded value starts from 0x01 up to 0xff, where another round starts again if necessary, like 0x010203 feff01. -q: Presence of this keyword indicates that only statistics are displayed. Absence of this keyword indicates that all information is displayed. -r: Records routing information. If this keyword is not provided, routes are not recorded. -s packet-size: Specifies length (in bytes) of an ICMP echo request, in the range 20 to 8100. The default value is 56. -t timeout: Specifies the timeout value (in milliseconds) of an ICMP echo reply (ECHO-REPLY). If the source does not receive an ICMP echo reply within the timeout, it considers the ICMP echo reply timed out. The value ranges from 0 to 65535 and defaults to 2000. -tos tos: Specifies type of service (ToS) of an echo request, in the range 0 to 255. The default value is 0. -v: Displays non ICMP echo reply received. If this keyword is not provided, the system does not display non ICMP echo reply. host: IP address or host name (a string of 1 to 20 characters) of the destination. Use the ping command to verify whether the destination in an IP network is reachable, and to display the related statistics. After you execute the ping command, the source will send an ICMP echo request to the destination: If the destination name is unrecognizable, the system outputs Error: Ping: Unknown host host-name. If the source receives an ICMP echo reply from the destination within the timeout, the system outputs the related information of the reply. If the source does not receive an ICMP echo reply from the destination within the timeout, the system outputs Request time out. To use the name of the destination host to perform the ping operation, you must configure Domain Name System (DNS) on the device first; otherwise, the ping operation fails. For the introduction and configuration to DNS, refer to DNS Configuration. In addition, you must use the command in the form of ping ip ip instead of ping ip if the destination name is a key word, such as ip. During the execution of the command, you can press Ctrl+C to abort the ping operation. Examples # Check whether the device with an IP address of is reachable. <Sysname> ping PING : 56 data bytes, press CTRL_C to break Reply from : bytes=56 Sequence=1 ttl=254 time=205 ms Reply from : bytes=56 Sequence=2 ttl=254 time=1 ms Reply from : bytes=56 Sequence=3 ttl=254 time=1 ms Reply from : bytes=56 Sequence=4 ttl=254 time=1 ms Reply from : bytes=56 Sequence=5 ttl=254 time=1 ms --- ping statistics --- 5 packet(s) transmitted 1-2

5 packet(s) received 0.00% packet loss round-trip min/avg/max = 1/41/205 ms The above information indicates the following: The destination was reachable. All ICMP echo requests sent by the source got responses. The minimum time, average time, and maximum time for the packet s roundtrip time are 1 ms, 41 ms, and 205 ms respectively. # Check whether the device with an IP address of is reachable. Only the check results are displayed. <Sysname> ping -q PING : 56 data bytes, press CTRL_C to break --- ping statistics --- 5 packet(s) transmitted 4 packet(s) received 20.00% packet loss round-trip min/avg/max = 1/12/29 ms # Check whether the device with an IP address of is reachable. The route information is required to be displayed. <Sysname> ping -r PING : 56 data bytes, press CTRL_C to break Reply from : bytes=56 Sequence=1 ttl=254 time=53 ms Reply from : bytes=56 Sequence=2 ttl=254 time=1 ms Reply from : bytes=56 Sequence=3 ttl=254 time=1 ms Reply from : bytes=56 Sequence=4 ttl=254 time=1 ms 1-3

Reply from : bytes=56 Sequence=5 ttl=254 time=1 ms --- ping statistics --- 5 packet(s) transmitted 5 packet(s) received 0.00% packet loss round-trip min/avg/max = 1/11/53 ms The above information indicates the following: The destination was reachable. The route is <-> {; } <->. Table 1-1 ping command output description Field PING Check whether the device with IP address is reachable 56 data bytes Number of data bytes in each ICMP echo request press CTRL_C to break Reply from : bytes=56 Sequence=1 ttl=255 time=1 ms During the execution of the command, you can press Ctrl+C to abort the ping operation. Received the ICMP reply from the device whose IP address is. If no reply is received during the timeout period, Request time out will be displayed. bytes= indicates the number of data bytes in the ICMP reply. Sequence= indicates the packet sequence, used to determine whether a segment is lost, disordered or repeated. ttl= indicates the TTL value in the ICMP reply. time= indicates the response time. The routers through which the ICMP echo request passed. They are displayed in inversed order, that is, the router with a smaller distance to the destination is displayed first. --- ping statistics --- Statistics on data received and sent in the ping operation 5 packet(s) transmitted Number of ICMP echo requests sent 5 packet(s) received Number of ICMP echo requests received 0.00% packet loss Percentage of packets not responded to the total packets sent round-trip min/avg/max = 0/4/20 ms Minimum/average/maximum response time, in ms. The field is not available for failed ping attempts in an IPv4 network. In an IPv6 network, however, the field is available and set to 0/0/0 ms tracert Syntax tracert [ -a source-ip -f first-ttl -m max-ttl -p port -q packet-number -w timeout ] * host 1-4

View Any view Default Level 0: Visit level Parameters -a source-ip: Specifies the source IP address of a tracert packet. It must be a legal IP address configured on the device. If this parameter is not provided, the source IP address of an ICMP echo request is the primary IP address of the outbound interface of the tracert packet. -f first-ttl: Specifies the first TTL, that is, the allowed number of hops for the first packet, in the range 1 to 255. It defaults to 1 and must be less than the maximum TTL. -m max-ttl: Specifies the maximum TTL, that is, the maximum allowed number of hops for a packet, in the range 1 to 255. It defaults to 30, and must be greater than the first TTL. -p port: Specifies the UDP port number of the destination, in the range 1 to 65535. The default value is 33434. You do not need to modify this parameter. -q packet-number: Specifies the number of probe packets sent each time, in the range 1 to 65535. The default value is 3. -w timeout: Specifies the timeout time of the reply packet of a probe packet, in the range 1 to 65535, in milliseconds. The default value is 5000 ms. host: IP address or host name (a string of 1 to 20 characters) of the destination. Use the tracert command to trace the path the packets traverse from source to destination. After having identified network failure with the ping command, you can use the tracert command to determine the failed node(s). Output information of the tracert command includes IP addresses of all the Layer 3 devices the packets traverse from source to destination. If a device times out, "* * *" will be displayed. During the execution of the command, you can press Ctrl+C to abort the tracert operation. Examples # Display the path the packets traverse from source to destination with an IP address of. <Sysname> system-view [Sysname] ip ttl-expires enable [Sysname] ip unreachables enable [Sysname] tracert traceroute to () 30 hops max,40 bytes packet, press CTRL_C to break 1 673 ms 425 ms 30 ms 2 580 ms 470 ms 80 ms Table 1-2 tracert command output description Field traceroute to () Display the route the IP packets traverse from the current device to the device whose IP address is. 1-5

Field hops max bytes packet press CTRL_C to break 1 673 ms 425 ms 30 ms Maximum number of hops of the probe packets, which can be set through the -m keyword Number of bytes of a probe packet During the execution of the command, you can press Ctrl+C to abort the tracert operation. The probe result of the probe packets whose TTL is 1, including the IP address of the first hop and the roundtrip time of three probe packets. The number of packets that can be sent in each probe can be set through the -q keyword. System Debugging Commands debugging Syntax debugging { all [ timeout time ] module-name [ option ] } undo debugging { all module-name [ option ] } View User view Default Level 1: Monitor level Parameters all: All debugging functions. timeout time: Specifies the timeout time for the debugging all command. When all debugging is enabled, the system automatically executes the undo debugging all command after the time. The value ranges from 1 to 1440, in minutes. module-name: Module name, such as arp or device. You can use the debugging? command to display the current module name. option: The debugging option for a specific module. Different modules have different debugging options in terms of their number and content. You can use the debugging module-name? command to display the currently supported options. Use the debugging command to enable the debugging of a specific module. Use the undo debugging command to disable the debugging of a specific module. By default, debugging functions of all modules are disabled. Note the following: 1-6

Output of the debugging information may degrade system efficiency, so you are recommended to enable the debugging of the corresponding module for diagnosing network failure, and not to enable the debugging of multiple modules at the same time. Default Level describes the default level of the debugging all command. Different debugging commands may have different default levels. You must configure the debugging, terminal debugging and terminal monitor commands first to display detailed debugging information on the terminal. For the detailed description on the terminal debugging and terminal monitor commands, refer to Information Center Commands. Related commands: display debugging. Examples # Enable IP packet debugging. <Sysname> debugging ip packet display debugging Syntax display debugging [ interface interface-type interface-number ] [ module-name ] View Any view Default Level 1: Monitor level Parameters interface interface-type interface-number: Displays the debugging settings of the specified interface, where interface-type interface-number represents the interface type and number. module-name: Module name. Use the display debugging command to display enabled debugging functions. Related commands: debugging. Examples # Display all enabled debugging functions. <Sysname> display debugging IP packet debugging is on 1-7