Diagnose a network problem
A layered method, from the network card to the Internet.
- Addresses and routes:
ip a ip r
- Does the gateway answer, then the Internet, then DNS?
ping -c 4 192.168.1.1 ping -c 4 1.1.1.1 ping -c 4 exemple.fr
- Test name resolution:
dig exemple.fr +short
- See what is listening on the machine:
ss -tulpn
- With NetworkManager (Wi-Fi):
nmcli device status nmcli dev wifi list
- If pinging an IP works but a name does not, the problem is DNS.