Chapter 44. Testing basic network settings
This section describes how to perform basic network testing.
44.1. Using the ping utility to verify the IP connection to other hosts
ping utility sends ICMP packets to a remote host. You can use this functionality to test if the IP connection to a different host works.
Ping the IP address of a host in the same subnet, such as your default gateway:
# ping 192.0.2.3
If the command fails, verify the default gateway settings.
Ping an IP address of a host in a remote subnet:
# ping 22.214.171.124
If the command fails, verify the default gateway settings, and ensure that the gateway forwards packets between the connected networks.
44.2. Using the host utility to verify name resolution
This procedure describes how to verify name resolution in Red Hat Enterprise Linux.
hostutility to verify that name resolution works. For example, to resolve the
client.example.comhostname to an IP address, enter:
# host client.example.com
If the command returns an error, such as
connection timed out or
no servers could be reached, verify your DNS settings.