Troubleshooting Cmd Tools with Switches/Options Flashcards
Ifconfig
Displays basic TCP/IP information and network information, including MAC address of the NIC
ifconfig -a
Displays TCP/IP information associated with every interface on a Linux device; can be used with other parameters (see Figure 3-26)
ifconfig down
Marks the interface, or network connection, as unavailable to the network
ifconfig up
Reinitializes the interface after it has been taken down (via the ifconfig
down command), so that it is once again available to the network
man ifconfig
Displays the manual pages, called man pages, for the ifconfig command, which tells you how to use the command and about command parameters (similar to the ipconfig /? command in Windows)
dig google.com
Performs a DNS lookup on a domain name
dig @8.8.8.8 google.com
Specifies a name server in the google.com domain
dig @8.8.8.8 google.com MX
Requests a list of all A records in the google.com domain on a specific name server
dig google.com ANY
Requests a list of all record types in the google.com domain
dig –x 74.125.21.102
Performs a reverse lookup on a Google I P address
man dig
Displays the man page for the dig command
Netstat
Lists all active TCP/IP connections on the local machine, including the Transport layer protocol used, messages sent, and received, IP address, and state of those connections
netstat -n
Lists current connections, including IP addresses and ports
netstat -f
Lists current connections, including IP addresses, ports, and FQDNs
netstat -a
Lists all current TCP connections and all listening TCP and UDP ports