19.3k views
1 vote
What command can be used to display active TCP connections, Ethernet statistics, and IP routing table?

Option 1: netcat
Option 2: netstat
Option 3: nmap

User ElJackiste
by
8.1k points

1 Answer

1 vote

Final answer:

The correct command to display active TCP connections, Ethernet statistics, and the IP routing table is 'netstat'. It is a widely available network utility that helps in monitoring and troubleshooting network connections.

Step-by-step explanation:

The command used to display active TCP connections, Ethernet statistics, and the IP routing table is netstat. Netstat stands for network statistics and it is a command-line tool that displays network connections for Transmission Control Protocol (both incoming and outgoing), routing tables, and a number of network interface and network protocol statistics. It is available on various operating systems including Windows, Linux, and macOS, making it a versatile tool for network administrators and users wanting to troubleshoot network issues or monitor network activity.

Option 2: netstat is the correct answer as it fulfills all the requirements mentioned in the question. Unlike netstat, netcat is a utility for reading from and writing to network connections using TCP or UDP, and nmap is a network scanner used to discover hosts and services on a computer network by sending packets and analyzing the responses.

User Priyank Kapasi
by
8.0k points