CompTIA Network+ (N10-008) — Question 262
Which of the following commands can be used to display the IP address, subnet address, gateway address, and DNS address on a Windows computer?
Answer options
- A. netstat -a
- B. ifconfig
- C. ip addr
- D. ipconfig /all
Correct answer: D
Explanation
The command 'ipconfig /all' is specifically designed for Windows systems to provide detailed network configuration information, including IP and DNS addresses. The other options, 'netstat -a', 'ifconfig', and 'ip addr', are either used for different purposes or are commands applicable to other operating systems like Linux.