Chapter 36. Testing basic network settings
This section describes how to perform basic network testing.
36.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 184.108.40.206
If the command fails, verify the default gateway settings, and ensure that the gateway forwards packets between the connected networks.
36.2. Using the host utility to verify name resolution
This procedure describes how to verify name resolution in Red Hat Enterprise Linux 8.
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 outor
no servers could be reached, verify your DNS settings.