Networking tools

Using ping

The ping command helps to determine if a device on a network is responding by IP address. You must know the IP address of a device before attempting to ping it. To find the IP address of a printer, refer to specific printer documentation on accessing network information.

Switch

Syntax

Result

None

ping 192.168.1.1

Sends four 32-byte network packets to the device at a specific IP address.

A Reply message indicates that a device configured with that IP address is communicating on the network. A Request timed out message indicates that the device is not communicating on the network.

-t

ping -t 192.168.1.1

Continuously pings the IP address until CTRL and C are pressed simultaneously.

Use this switch when troubleshooting a connection and trying several different solutions. It provides a continuous check so you can immediately see when the changes you make improve network communications.

-a

ping -a 192.168.1.1

Device responds with its hostname (example: www.yourhostname.com).

Use this switch to confirm that you are pinging the correct device, as it also provides the associated hostname.

-n

ping -n xx 192.168.1.1

Continuously pings a device where xx is the number of times (any number from 1 to 4294967295).

Use this switch to ping a device a certain number of times and then stop, instead of pinging the device until the command is specifically stopped, as with the –t switch.

-l

ping -l xx 192.168.1.1

Pings the IP address four times where xx is the size of the ping (any number from 0 to 65500 bytes).

Note: Some networks are configured to ignore extremely large pings as a security precaution.


Troubleshooting network communications issues using ping

Network communications issues can prevent the printer from communicating properly on the network. Common problems with networks include:

Using ping is a simple way to identify some common network issues. Use the following guide to help find the cause of issues on your network. Refer to Using ping for details on using ping and its common switches.

“Reply from” messages appear

Possible reason for message
Suggested action to take
Note: The ping command confirms that a device with the specified IP address is responding, not that the intended device is responding. Check network settings carefully to ensure that you are troubleshooting the correct device. Verify that there are no duplicate IP addresses on the network.

“Request timed out” messages appear in response to ping

Possible reasons for messages
Suggested actions to take

Both “Request timed out” and “Reply from” messages appear intermittently during continuous ping

Possible reasons for messages
Suggested actions to take

“Reply from” messages appear when small pings are used, but “Request timed out” messages appear when large-packet pings are used

Possible reasons for messages
Suggested actions to take