ping <host> ether-size <bytes> <option>
Matches the overall size of the data packet with the resultant size of the Layer 3 packet.
- The IPv4 address of the host.
- The IPv6 address of the host.
- A host being pinged. This keyword is used when the host is specified as a host name rather than as an IP address.
- The number of bytes.
- Each of the following entries are considered options. These options can be issued consecutively, that is, in the same command line.
- Adaptively sets interpacket interval.
- Allows you to ping broadcast address.
- Makes a beep sound during every ping, while the router pings for host details.
- Bypasses normal routing tables during ping.
- Specifies the number of ping requests to send.
- Specifies the number of seconds before which ping expires.
- Matches the overall size of the data packet with the resultant size of the Layer 3 packet.
- Sends 100 ping requests each second.
- Specifies the interface that the device must use as source address.
- Specifies the time in seconds for which the device must wait between ping requests.
- Specifies that the device must consider the ping request for special processing.
- Specifies the path MTU discovery strategy.
- Suppresses loop-back of multicast pings.
- Does not resolve domain name system (DNS) names during ping.
- Specifies the hexadecimal digit pattern to fill the packet.
- Prints only the ping summary page.
- Records the route that the packet takes.
- Specifies the number of bytes to send for a ping request.
- Displays the timestamp during ping output.
- Marks packet with specified type of service (TOS).
- Specifies the maximum packet life-time for a host.
- Displays a detailed output for the ping command.
The ping command tests whether a network host is reachable.
The ping command when used with the ether-size option specifies the size of the resultant Layer 3 packet, such as ICMP data plus ICMP headers, IP headers, and so on.
The ping host ether-size command ensures that the resultant size supports Layer 3 IP packet size. The Ethernet MTU is 1,500 bytes. Therefore, the ping host ether-size command subtracts 28 bytes from the host size of the Layer 3 packet to ensure that the resultant value matches the overall size of the data packet. The ping host ether-size command avoids the fragmentation overhead due to the MTU.