How Do You Check If the Interface Is up Linux?
Contents

How do you check whether interface is up or down in Linux?

ifconfig command – It is used to display or configure a network interface.

  1. List Network Interfaces Using ip Command on Linux. …
  2. Linux show / display available network interfaces using nmcli. …
  3. Show a table of all network interfaces using netstat command in Linux. …
  4. Linux ip list interfaces using ifconfig command.

21 дек. 2018 г.

How do I know if my network interface is up?

Check Network Card State

  1. Sample output: 0. Or, use the following command to check the status. cat /sys/class/net/eth0/operstate. Sample output: down. …
  2. Sample output: 1. Or, cat /sys/class/net/eth0/operstate. …
  3. Sample output: 1. The result is 1, which means the wlan0 is up and connected. Or, cat /sys/class/net/wlan0/operstate.
James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest