| Command |
Description |
|
# dhclient eth0 |
active interface 'eth0' in dhcp mode [man] |
|
# ethtool eth0 |
show network statistics of eth0 [man] |
|
# host www.example.com |
lookup hostname to resolve name to ip address and viceversa [man] |
|
# hostname |
show hostname of system [man] |
|
# ifconfig eth0 |
show configuration of an ethernet network card [man] |
|
# ifconfig eth0 192.168.1.1 netmask 255.255.255.0 |
configure IP Address [man] |
|
# ifconfig eth0 promisc |
configure 'eth0' in promiscuous mode to gather packets (sniffing) [man] |
|
# ifdown eth0 |
disable an interface 'eth0' [man] |
|
# ifup eth0 |
activate an interface 'eth0' [man] |
|
# ip link show |
show link status of all network interfaces [man] |
|
# iwconfig eth1 |
show wireless networks [man] |
|
# iwlist scan |
wifi scanning to display the wireless connections available [man] |
|
# mii-tool eth0 |
show link status of 'eth0' [man] |
|
# netstat -tup |
show all active network connections and their PID [man] |
|
# netstat -tupl |
show all network services listening on the system and their PID [man] |
|
# netstat -rn |
show routing table alike "route -n" [man] |
|
# nslookup www.example.com |
lookup hostname to resolve name to ip address and viceversa [man] |
|
# route -n |
show routing table [man] |
|
# route add -net 0/0 gw IP_Gateway |
configure default gateway [man] |
|
# route add -net 192.168.0.0 netmask 255.255.0.0 gw 192.168.1.1 |
configure static route to reach network '192.168.0.0/16' [man] |
|
# route del 0/0 gw IP_gateway |
remove static route [man] |
|
# echo "1" > /proc/sys/net/ipv4/ip_forward |
activate ip routing [man] |
|
# tcpdump tcp port 80 |
show all HTTP traffic [man] |
|
# whois www.example.com |
lookup on Whois database [man] |