2.3. Utility
2.3. Utility
2.3.1. ping
Ping host.
Description
Sends one or more ICMP ECHO, TCP SYN or UDP datagrams to the specified IP address of a host.
All datagrams are sent preloaded-style (all at once).
The data size -length given is the ICMP or UDP data size. 1472 bytes of ICMP data results in a
1500-byte IP datagram (1514 bytes ethernet).
Usage
ping <host> [-recvif=<interface>] [-srcip=<ip address>]
[-pbr=<table>] [-count=<1...10>] [-length=<4...8192>]
[-port=<0...65535>] [-udp] [-tcp] [-tos=<0...255>] [-verbose]
Options
-count=<1...10>
-length=<4...8192>
-pbr=<table>
-port=<0...65535>
-recvif=<interface>
-srcip=<ip address>
-tcp
-tos=<0...255>
-udp
-verbose
<host>
Number of packets to send. (Default: 1)
Packet size. (Default: 4)
Route using PBR Table.
Destination port of UDP or TCP ping.
Pass packet through the rule set, simulating that the packet was re-
ceived by <recvif>.
Use this source IP.
Send TCP ping.
Type of service.
Send UDP ping.
Verbose (more information).
IP address of host to ping.
77
Chapter 2. Command Reference