| Comando |
Descrizione |
|
# dhclient eth0 |
active interface 'eth0' in dhcp mode [man] |
|
# ethtool eth0 |
mostra statistiche scheda di rete 'eth0' [man] |
|
# host www.example.com |
risoluzione hostname in ip address e viceversa(1) [man] |
|
# hostname |
mostra l'hostname del sistema [man] |
|
# ifconfig eth0 |
visualizza configurazione di una scheda di rete ethernet [man] |
|
# ifconfig eth0 192.168.1.1 netmask 255.255.255.0 |
configura ip address [man] |
|
# ifconfig eth0 promisc |
configura 'eth0' in modalità promiscua per raccogliere i pacchetti(sniffing) [man] |
|
# ifdown eth0 |
disattiva interfaccia 'eth0' [man] |
|
# ifup eth0 |
attiva interfaccia 'eth0' [man] |
|
# ip link show |
mostra status link di tutte le interfaccie [man] |
|
# iwconfig eth1 |
visualizza configurazione di una scheda rete wireless [man] |
|
# iwlist scan |
esegue una scansione delle reti wireless disponibili [man] |
|
# mii-tool eth0 |
mostra status link dell'interfaccia 'eth0' [man] |
|
# netstat -tup |
mostra tutte le connessioni di rete attive e rispettivi PID [man] |
|
# netstat -tupl |
mostra tutti i servizi di rete in ascolto sul sistema e rispettivi PID [man] |
|
# netstat -rn |
mostra la tabella di routing similmente come "route -n" [man] |
|
# nslookup www.example.com |
risoluzione hostname in ip address e viceversa(2) [man] |
|
# route -n |
visualizza tabella di routing [man] |
|
# route add -net 0/0 gw IP_Gateway |
configura default gateway [man] |
|
# route add -net 192.168.0.0 netmask 255.255.0.0 gw 192.168.1.1 |
configura route statica per raggiungere le rete '192.168.0.0/16' [man] |
|
# route del 0/0 gw IP_gateway |
rimuovi route statica [man] |
|
# echo "1" > /proc/sys/net/ipv4/ip_forward |
activate ip routing [man] |
|
# tcpdump tcp port 80 |
visualizza tutto il traffico http [man] |
|
# whois www.example.com |
lookup sul database Whois per ottenere informazioni sul dominio/hosts [man] |