Netstat Connections - Quiz Explanation
The correct answers are indicated below, along with text that explains the correct answers.
1.
How would you find a listing of active network connections involving your machine?
Please select the best answer.
A.
By using the
ping
command
B.
By using the
traceroute
command
C.
By using the
netstat
command
D.
By using
tcpdump
The correct answer is C.
You would find a listing of active network connections involving your machine by using the
netstat
command.
Netstat
will list active TCP and UDP connections and show active “UNIX domain” connections.
2.
How would you find a listing of all servers that are listening for connections on your machine?
Please select the best answer.
A.
netstat -a
B.
netstat -ta
C.
netstat -r
D.
netstat -n
The correct answer is A.
You would find a listing of all servers that are listening for connections on your machine by using
netstat -a
. This option detects TCP and UDP listening servers.
3.
How can you find out what interfaces are running on your machine, and their status?
Please select the best answer.
A.
netstat -ta
B.
netstat -n
C.
netstat -r
D.
netstat -i
The correct answer is D.
You can find out what interfaces are running on your machine, and their status, by using
netstat -i
. The
netstat -i
option lists the interface name, the MTU, the metric, and other information.