Use the ping command to verify the existence and connectivity of a specific IP address. This command sends a packet from a virtual router to the specified host and listens for an answer. The host that receives the query responds as if to a physical router, verifying its connectivity to the virtual router. Each virtual router configured within the Sun Secure Application Switch can query and respond to the ping
command.
The response includes information regarding the time it took the packet to traverse the network and reach the remote host device.
exec
vSwitch-name vRouter-name ping
Field Name | Description |
---|---|
host ipAddress | Host to ping. Specifies the IP address of the host whose connectivity you want to verify. |
count integer |
Optional: Number of ping requests to send. Valid values are from 1 to 65535; the default setting is "5". |
size integer |
Optional: Size of ping data, in bytes(not including IP/ICMP header). Valid values are from 4 to 1472; the default setting is "56". |
incrSize integer |
Optional: Bytes to increment ping packet size. Valid values are from 0 to 1024; the default setting is "0". |
timeout integer |
Optional: Timeout in milliseconds. Sets the maximum number of seconds the command can run. The command quites if this timer expires, regardless of the status of the packets in transit. Valid values are from 100 to 20000; the default setting is "2000". |
ttl integer |
Optional: IP Time To Live value. Valid values are from 1 to 255; the default setting is "64". |
tos integer |
Optional: IP Type of Service (TOS) value, which is in the IP header of the ICMP request. All IP datagrams have a TOS field, which allows the sender to get different types of service. For example, a router may have a separate queue for each TOS and may handle those queues according to the type of service desired. Valid values are from 0 to 255; the default setting is "0". |
dontFrag enumeration |
Optional: IP Dont Fragment bit set. The bit in the IP header indicates to routers along the way whether it is acceptable to fragment this IP packet. If set to true, the system can fragment the datagram. If set to false, the system does not fragment the packet. The default setting is "false". Valid values:
true , false
|
validate enumeration |
Optional: Validate echo responses. The default setting is "false". Valid values:
true , false
|
pattern hexString | Optional: ICMP data pattern. Sets the data in the ping request to the specified data pattern. Use a hexadecimal value. |
srcAddr ipAddress | Optional: Source Address. |