Diagnostica di rete su Linux
1. ConnettivitÃ
ping -c 4 gateway
traceroute google.com
mtr google.com
2. Interfacce e routing
ip addr show
ip -br addr
ip route show
3. DNS
dig miosito.it
dig @8.8.8.8 miosito.it MX
nslookup miosito.it
resolvectl flush-caches
4. Porte e connessioni
ss -tlnp # TCP listening con PID
ss -tunap # Tutte le connessioni
nc -zv server 80 # Test porta remota
5. Cattura pacchetti
tcpdump -i eth0 -n port 80
tcpdump -i any port 53
tcpdump -i eth0 -w capture.pcap -c 1000
6. Performance
iperf3 -c server # Test bandwidth
iftop -i eth0 # Traffico real-time
ip neigh show # Tabella ARP
ip neigh flush all # Pulisci cache ARP
Risultato: Toolkit completo per diagnostica rete: ping, DNS, porte, cattura pacchetti e performance.