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>
Number of packets to send. (Default: 1)
-length=<4...8192>
Packet size. (Default: 4)
-pbr=<table>
Route using PBR Table.
-port=<0...65535>
Destination port of UDP or TCP ping.
-recvif=<interface>
Pass packet through the rule set, simulating that the packet was re-
ceived by <recvif>.
-srcip=<ip address>
Use this source IP.
-tcp
Send TCP ping.
-tos=<0...255>
Type of service.
-udp
Send UDP ping.
-verbose
Verbose (more information).
<host>
IP address of host to ping.
2.3. Utility
Chapter 2. Command Reference
78