4 Ways to Check Network Status on Linux

It’s important to be able to check your network configuration on Linux. You can do this by using the ip command, ping command, netstat command, and ss command.

Using ip Command

The ip command is used to display and manage routing, devices, policy routing and tunnels. The ip command is one of the most important tools for network administrators as it can be used to check the network status.

The format of the ip command is:


ip [ OPTIONS ] OBJECT { COMMAND | help } “`

># The way you use this command depends on what you want to do with it. For example: You can check your IP address by running “`$ sudo ip addr show“`. This will show all interfaces that have an IP address assigned, along with their netmasks (subnet masks) if applicable. If there are no active interfaces then nothing will be shown at all!

With ping Command

The ping command is used to check the network connectivity. It sends ICMP packets to the target host and waits for an ICMP Echo Reply packet from that host.

ping command is used to check if the target host is alive. It sends ICMP packets but does not wait for an echo reply. ping command displays the following information:

  • Time elapsed name of host and port number + socket state (i.e., closed or listening) + TTL value (should be 255 or less). If TTL is 255 it means that no reply was received from any of intermediate hops in between source and destination hosts, which could mean either that there are no hops between them or some packets were dropped by those intermediate hops on way back due to congestion issues. If TTL value is greater than 255 then there may be problems with network performance like misconfiguration etc., which needs further investigation using other tools such as traceroute command

Using netstat Command

The netstat command is used to view the network connection. The syntax of the netstat command is:

sudo netstat -plunt | grep ‘^tcp’

The above command displays all TCP connections on your system. You can also display only a specific TCP connection by providing its name or port number after grep. For example, if you want to see google’s website in your browser then use this command:

(1) sudo netstat -plunt | grep www

(2) sudo cat /etc/resolv.conf

Using ss Command

The ss command is a useful way to check your network connections, since it provides information on TCP and UDP sockets. This command can be used to display the following information:

  • Listening ports
  • Port numbers
  • Process names associated with each connection (which process owns it)

This information can help you determine whether or not there are any problems with your networking configuration.

Learn about several ways to check your Linux networking status.

There are several ways to check your Linux networking status.

The simplest one is to use the ip command, which is part of the iproute2 package (you can install it using your package manager). To get a brief overview of your network interfaces, type:


We hope this article has given you a few ideas on how to check your Linux networking status.

We would love to hear from you! If you have any questions or comments, please email us at [email protected]


Leave a Reply

Your email address will not be published. Required fields are marked *