Professional Documents
Culture Documents
How To See Network Link Status in UNIX
How To See Network Link Status in UNIX
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
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