1834627 Members
3310 Online
110069 Solutions
New Discussion

full/half duplex ?

 
SOLVED
Go to solution
Greg OBarr
Regular Advisor

full/half duplex ?

Anyone know of a command to tell if the LAN card is running at full or half duplex? I'm running an L2000 with 100BT cards. I can use lanadmin to tell that I'm running at 100mb/s, but don't see duplex shown.
5 REPLIES 5
James R. Ferguson
Acclaimed Contributor

Re: full/half duplex ?

Hi Greg:

# lanadmin -x

...JRF...
Patrick Wallek
Honored Contributor
Solution

Re: full/half duplex ?

When using lanadmin -> lan -> display, the first line of the output is a Description line. This will tell you what duplex you are running.

From a C200 workstation:
Description = lan0 Hewlett-Packard 10/100 TX Half-Duplex

From a J5000 workstation:
Description = lan0 Hewlett-Packard 10/100 TX Full-Duplex
Greg OBarr
Regular Advisor

Re: full/half duplex ?

Thanks guys, I see it now. How about a way to force full duplex (i.e. turn off auto-negotiation?)
Patrick Wallek
Honored Contributor

Re: full/half duplex ?

Check the file /etc/rc.config.d/hp????base100conf configuration file. In this file you should see a line similar to:

HP_BASE100_SPEED[0]=100FD --> which means 100 Full Duplex

or if it is like my K460 then the line may just specify the duplex like:

HP_BASET_DUPLEX[0]=FULL

It should be something similar to one of those.
Peter Van Sant
Advisor

Re: full/half duplex ?

Greg,

As you've already discovered lanadmin -x
(11.X) or (10.X) will display the current speed and duplex values. You can set
them permanently in the configuration scripts
in /etc/rc.config.d. One problem people sometimes have is figuring out which is the correct script. You L class system supports
three different versions of 100bt cards with
3 different scripts.

Use ioscan(1m) to find out which you have;

"ioscan -fnkC lan" will list all lan cards.
Look at the "driver" column to determine the
correct script;

driver script

btlan hpbtlanconf
btlan3 hpbase100conf
btlan5 hppci100conf

Remember that these only take effect when
you boot the system so if you want to set
them immediately without a reboot you use
lanadmin(1m), for instance

lanadmin -X 100fd 0

will set lan0 to 100mb/s full duplex on an
11.00 system.

Getting back to the scripts for a minute, as
Patrick pointed out you could see a line with
either "SPEED" or "DUPLEX". Hopefully you'll
see "SPEED", if not that means you have no
driver patch, an old driver patch, or have
patched but have not moved the updated configuration script from;

/usr/newconfig/etc/rc.config.d

to

/etc/rc.config.d

Hope this helps.