Ifconfig eth0 shows the configuration of an Ethernet card
Ifup eth0 enable a ' eth0 ' network device
Ifdown eth0 disables a ' eth0 ' network device
Ifconfig eth0 192.168.1.1 netmask 255.255.255.0 control IP Address
Ifconfig eth0 promisc set ' eth0 ' into promiscuous mode to sniff packets (sniffing)
Dhclient eth0 enable ' eth0 ' in DHCP mode
Route-n Show routing Table
Route add-net 0/0 GW ip_gateway Configura default Gateway
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 '
Route del 0/0 GW ip_gateway remove static route
echo "1" >/proc/sys/net/ipv4/ip_forward activate IP routing
Hostname show hostname of system
Host www.example.com lookup hostname to resolve name to IP address and viceversa (1)
nslookup www.example.com lookup hostname To resolve name to IP address and viceversa (2)
IP link Show Show link status, all interfaces
Mii-tool eth0 Show link status of ' eth0 '
Ethtool eth0 Show statistics of network card ' eth0 '
Netstat-tup Show all active network connections and their PID
NETSTAT-TUPL Show all network services listening on the system and their PID
Tcpdump TCP port Show all HTTP traffic
Iwlist Scan Show Wireless networks
Iwconfig eth1 Show configuration of a wireless network card
Hostname show hostname
Host www.example.com lookup hostname to resolve name to IP address and viceversa
nslookup www.example.com lookup hostname To resolve name to IP address and viceversa
Whois www.example.com lookup on Whois database
Go top INDEX ^
Microsoft Windows Networks (SAMBA)
Nbtscan ip_addr NetBIOS Name Resolution
NMBLOOKUP-A ip_addr NetBIOS Name Resolution
Smbclient-l ip_addr/hostname Show remote shares of a Windows host
SMBGET-RR smb://ip_addr/share like wget can download files from a host Windows via SMB
Mount-t Smbfs-o username=user,password=pass//winclient/share/mnt/share mount a Windows network share