[clug] Ethernet Link Status
Tony Breeds
tony at bakeyournoodle.com
Thu Jun 1 00:19:10 GMT 2006
On Thu, Jun 01, 2006 at 10:05:03AM +1000, Brett Worth wrote:
> How can I check the link status of ethernet in Linux?
mii-tool or ethtool can tell you this:
tony at thor:~$ sudo ethtool eth0 | egrep Link
Link detected: no
tony at thor:~$ sudo mii-tool eth0
eth0: no link
If you're using debian you can probably even use a pre-up script to stop
your wired device from comming up in the firstplace.
Personally I use laptop-net to handle this for me.
Yours Tony
linux.conf.au http://linux.conf.au/ || http://lca2007.linux.org.au/
Jan 15-20 2007 The Australian Linux Technical Conference!
More information about the linux
mailing list