From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,61cfc2d6dab7e59 X-Google-Attributes: gidfee84,public From: patchkov@acs1.acs.ucalgary.ca (Serguei Patchkovskii) Subject: Re: ifconfig Date: 1999/03/09 Message-ID: <7c3k41$hqi@ds2.acs.ucalgary.ca>#1/1 X-Deja-AN: 453030230 References: <36E4881E.71302A49@telusplanet.net> Organization: The University of Calgary Newsgroups: comp.unix.osf.osf1 Steve Cribbs (cribbs@telusplanet.net) wrote: : During boot-up the system reports that communication port to be : running in full duplex mode and the ifconfig man page lists speed 200 as : the option that should configure 100 Mbps full duplex. However, command : ifconfig tu0 always reports that the device is running in simplex mode. if you mean this bit: # ifconfig tu1 tu1: flags=c63 ^^^^^^^ inet XXX.XXX.XXX.XXX netmask ffffff00 broadcast XXX.XXX.XXX.XXX ipmtu 1500 then I think you are misinterpreting what ifconfig is trying to tell you. If you look into /usr/include/net/if.h, you will see that SIMPLEX is defined as: ... #define IFF_SIMPLEX 0x800 /* can't hear own transmissions */ ... i.e. it is set if the device is CAPABLE of running in the full-duplex mode regardless of whether it is running full-duplex or not. I am not aware of any way of quering DU ethernet driver for the mode it is running in, except for the obvious one of actually *measuring* the bandwidth between two nodes. (I would be glad to be corrected on this point). Measuring the bandwidth may be not quite trivial (e.g. it is impossible to approach it using a single rsh tcp connection, which the knee-jerk reflex of a system administrator would suggest). Unless you really want to go to the trouble of writing and debugging your own code, Larry McVoy's lmbench will measure the network bandwidth quite nicely. It is available at his home page (http://www.bitmover.com/lm/) Regards, /Serge.P