[KLUG Members] duplex setting on an ethernet card?

Adam Williams members@kalamazoolinux.org
Tue, 11 Nov 2003 07:00:49 -0500


On Mon, 2003-11-10 at 14:02, Kevin Mitchell wrote:
> Does anyone know of a way to tell the current duplex setting on an
> ethernet card in Linux?  Is there something in /proc that might let me
> know?  I know certain cards show it upon reboot (or dmesg if the machine
> hasn't been up for too long), but not 3com 3c590s.  I also would hate to
> have to reboot boxes to find out and lose my good uptime. ;)

[root@estate2 awilliam]# /sbin/mii-tool -?
usage: /sbin/mii-tool [-VvRrwl] [-A media,... | -F media] [interface
...]
       -V, --version               display version information
       -v, --verbose               more verbose output
       -R, --reset                 reset MII to poweron state
       -r, --restart               restart autonegotiation
       -w, --watch                 monitor for link status changes
       -l, --log                   with -w, write events to syslog
       -A, --advertise=media,...   advertise only specified media
       -F, --force=media           force specified media technology
media: 100baseT4, 100baseTx-FD, 100baseTx-HD, 10baseT-FD, 10baseT-HD,
       (to advertise both HD and FD) 100baseTx, 10baseT