Run the nmcli device status command to check the connection of a machine – for example:

$ nmcli device status
DEVICE TYPE STATE CONNECTION
ens192 ethernet connected ens192
docker0 bridge connected (externally) docker0
lo loopback unmanaged --

Check the state is connected for each connection.

Run the ping command to verify the host can send packets to other hosts.

ping <hostname>

Where <hostname> is the IP address or hostname of another host.