How to check network adapter status in Linux

To check the status of a network adapter in Linux, you can use the ip command. Here’s how:

  1. To view the status of all network adapters, run:
ip addr show
  1. To view the status of a specific network adapter, run:
ip addr show <interface>

Replace <interface> with the name of the network adapter, for example eth0 or wlan0.

The output will show the status of the network adapter, including its IP address, netmask, and broadcast address. The status will be UP if the adapter is active and DOWN if it is inactive.

You can also use the ifconfig command to check the status of network adapters, but it is being deprecated in favor of the ip command.

Leave a Comment