How can I check the network status on Ubuntu?

In Ubuntu, you can check the network status using the following command:

  1. The command ifconfig is used to display and configure network interfaces. By using the ifconfig command, you can view information such as the current active network interfaces, IP addresses, subnet masks, and broadcast addresses.
  2. The command “ip addr” is used to display and configure network interfaces. It provides detailed information about network interfaces such as IP address, subnet mask, and broadcast address.
  3. Ping is a command used to test the connection between a source and a target host. By using the command “ping “, you can check the connection status and latency time between the two hosts.
  4. Netstat is a command used to display network connections, routing tables, and network interface statistics. By using the command “netstat -tunlp,” you can view the current network connection status and the ports being listened on.
  5. Nmap is a command used to scan hosts and open ports on a network. By using the command “nmap “, you can view the open ports on the target host.
  6. Traceroute is a command used to track the path that data packets take through a network. By using the command traceroute followed by the target IP or domain name, you can see the path that packets travel from your local host to the target host.

All the commands above need to be executed in the terminal. You can open the terminal by pressing Ctrl+Alt+T.

bannerAds