Commands Flashcards
(20 cards)
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
Netstat -s:
displays addresses and port numbers in numerical order. This can be useful if you’re looking for information related to a specific IP address or a specific port
Netstat -p protocol:
shows statistics on a specific protocol, such as TCP or UDP
arp:
without a switch, shows help on Windows
without a switch, shows the ARP cache on Linux
arp -a:
Shows the ARP cache on Windows
arp -a 192.168.1.1:
Displays the ARP cache entry for the specified IP address