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

The 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.

Procedure

  • 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 198.162.3.1

    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.

Procedure

  • Use the host utility to verify that name resolution works. For example, to resolve the client.example.com hostname 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.