Interview Practice Questions
Q1: Which Windows command displays all TCP/IP configuration information for all network adapters, including details like MAC address, DHCP lease information, and DNS server addresses?
ipconfig /all
Q2: What command is used on a Windows system to display the routing table?
route print or netstat -r
Q3: Which command on a Windows system displays active connections and listening ports for both TCP and UDP?
netstat -a
Q4: hat command traces the path a packet takes to a destination on a Windows system?
tracert
Q5: Which command is used on a Windows system to add a static route to the routing table that will remain after a reboot?
route add -p
Q6: What command on a Windows PC can be used to send a continuous stream of ICMP echo requests to a target host until it is stopped?
ping -t
Q7: You need to view the IP-to-MAC address translation tables used by the Address Resolution Protocol (ARP) on a Windows system. What command would you use?
arp -a or arp -g
Q8: What command on a Linux or macOS system is used to view the TCP/IP configuration, similar to ipconfig in Windows?
ifconfig or ip
Q9: Which command on Linux/UNIX systems traces the path a packet takes, showing each hop, similar to tracert in Windows?
traceroute
Q10: You want to query DNS servers to get detailed information about a domain on a Linux system. Which command-line tool is designed for this?
dig
Q11: Which command displays network connections, routing tables, and interface statistics on both Windows and Linux systems?
netstat
Q12: What powerful command-line packet analyzer on Linux systems is used to capture or filter TCP/IP packets transmitted over a network?
tcpdump
Q13: What command on a Windows PC is used to purge the DNS resolver cache?
ipconfig /flushdns
Q14: On a Cisco device, what command would you use to display the MAC address table of the switch?
show route
Q15: On a Cisco device, what command would you use to display the MAC address table of the switch?
show mac-address-table
Q16: To see detailed statistics for all configured interfaces on a Cisco router or switch, what command would you enter?
show interface
Q17: Which command allows you to view the current running configuration of a Cisco network device?
show config
Q18: What command on a Cisco switch shows information about configured VLANs, including their IDs, names, and associated ports?
show vlan
Q19: To check the Power over Ethernet (PoE) status, including power allocation and usage, on a Cisco device, what command is used?
show power
Q20: What command on a Windows system will display Ethernet statistics, such as the number of bytes and packets sent and received?
netstat -e