Commands Flashcards
ipconfig:
provides basic information about the NIC, such as the IP address, subnet mask, and default gateway
ipconfig/all:
shows a comprehensive listing of TCP/IP configuration information for each NIC
ipconfig/displaydns:
shows the contents of the DNS cache
ipconfig/flushdns:
erase the contents of the DNS cache
Linux systems
ifconfig eth0:
shows the configuration of the first Ethernet interface (NIC) on a Linux system
Linux systems
ifconfig eth0 promisc:
enables promiscuous mode on the first Ethernet interface
Linux systems
ifconfig eth0 -promisc:
disable promiscuous mode
Linux systems
ifconfig eth0 allmulti:
enables multicast mode on the NIC
ip link show:
shows the interfaces along with some details on them
ip link set eth0 up:
enables a network interface
ip -s link:
Shows statistics on the network interfaces
Netstat:
displays a listing of all open TCP connections
Netstat -a:
displays a listing of all TCP and User Datagram Protocol (UDP) ports that a system is listening on, in addition to all open connections
Netstat -r:
Displays the routing table
Netstat -e:
displays details on network statistics, including how many bytes the system sent and recieved