Sie sind auf Seite 1von 1

How to see Network Link status

In order to see if there is network link connectivity, you can check it by using the following
commands:

SunOS:
$ ndd -get /dev/e1000g0 link_status
0

$ ndd -get /dev/e1000g0 link_status


1

where 0 means no link and 1 link OK and e1000g0 is your network interface.

In case of older machines where the device is not associated with a port, you do first
$ ndd -set /dev/eri instance 0
in order to set the instance of eri device to 0 and then get the status of the device.
$ ndd -get /dev/eri link_status
1$

Linux:
$ ethtool eth0 | egrep Link
Link detected: no

$ ethtool eth3 | egrep Link


Link detected: yes

Das könnte Ihnen auch gefallen