Certified Network Defender (CND) — Question 7
Alex is administering the firewall in the organization's network. What command will he use to check all the remote addresses and ports in numerical form?
Answer options
- A. netstat -a
- B. netstat -ao
- C. netstat -o
- D. netstat -an
Correct answer: D
Explanation
The correct command is 'netstat -an' because it displays all connections and listening ports in numerical form. The option 'netstat -a' shows all connections but not in numerical format, while 'netstat -o' provides the connections with the owning process ID, not the numerical addresses. 'netstat -ao' combines both but still does not provide the addresses and ports in the required numerical format.