Operating System - HP-UX
1846787 Members
3848 Online
110256 Solutions
New Discussion

Wrong duplex-mode with GBIT-SX-NIC on L-Class and HPUX11 ?

 
Joachim Mangold_1
Occasional Advisor

Wrong duplex-mode with GBIT-SX-NIC on L-Class and HPUX11 ?

We are using a Gigabit-SX-Nic with a HP Procurve-Switch 4000M. The switch is reporting errors; one error-source is a misconfigured duplex-mode.
Now, the switch-port is configured to auto-negotiate. The NIC we are not shure !
How can we look in which duplex-mode the NIC is running and if the mode is wrong, who can we configure the correct mode.
Joachim
10 REPLIES 10
Victor BERRIDGE
Honored Contributor

Re: Wrong duplex-mode with GBIT-SX-NIC on L-Class and HPUX11 ?

Hi,
The easiest would be to use sam...
otherwise you should find a config file in /etc/rc.config.d like hpgelanconf

to see:
e.g.
lanadmin -x 6
Speed = 1000 Full-Duplex.
Autonegotiation = On.


Victor
Ian Dennison_1
Honored Contributor

Re: Wrong duplex-mode with GBIT-SX-NIC on L-Class and HPUX11 ?

Both the Switch Port and the NIC should be manually configured to the setting you need.

Your network bods can do the switch, by using SAM you can do the NIC.

Share and Enjoy! Ian
Building a dumber user
KCS_1
Respected Contributor

Re: Wrong duplex-mode with GBIT-SX-NIC on L-Class and HPUX11 ?

Hi,

you can find a configuration file of Gigabit lan in /etc/rc.config.d directory

" hpgelanconf "

and Look at this part and set your NIC's speed such as under example.


# HP_GELAN_SPEED Change the speed/duplexity for 1000Base-T cards
#Valid values are: 10hd 10fd 100hd 100fd auto_on


HP_GELAN_SPEED= [VALUE]


after then, you can confirm your setting value was true or wrong by lanadmin command like this,

# landadmin -x [PPA]




Have a good day!




Easy going at all.
Michael Tully
Honored Contributor

Re: Wrong duplex-mode with GBIT-SX-NIC on L-Class and HPUX11 ?

lanadmin -x

# lanadmin -x 0 (shows current values)

# lanadmin -X 1000FD 0 (changes values to 1000 full duplex, not auto-negotiate and will issue a reset which takes 11 seconds.)

You can update the file as suggested for the next reboot.
Anyone for a Mutiny ?
Robert-Jan Goossens
Honored Contributor

Re: Wrong duplex-mode with GBIT-SX-NIC on L-Class and HPUX11 ?

Hi,

Below is a small sh script I named it lanspeed and placed it /usr/local/bin.

#!/usr/bin/sh
TH=/usr/sbin:/usr/bin
ppas=`lanscan | awk '$3~/^[0-9]$/{print $3}' | xargs`
for i in $ppas
do
printf "Card at PPA %s - " $i
ipa=`ifconfig lan${i} 2>/dev/null | awk '{ip=$2}END{if(ip==""){printf("Not assig
ned")}else{printf("%s ",ip)}}'`
printf "IP Address: %15s- " "$ipa"
lanadmin -x $i 2>/dev/null | awk '{$1="";printf("%s",$0)}'
echo ""
done

it prints your current conf of all your lan's.

Hope it helps,

Robert-Jan.
Suresh Patoria
Super Advisor

Re: Wrong duplex-mode with GBIT-SX-NIC on L-Class and HPUX11 ?

You can check ur interface running which mode through the command

lanadmin -x (PPA is the ur instance no. for lan Adapter like 0,1,2,3)


If you want to change the mode the apply the following command

lanadmin -X
Pete Randall
Outstanding Contributor

Re: Wrong duplex-mode with GBIT-SX-NIC on L-Class and HPUX11 ?

I believe I've read here on the forums (from well respected sources) that the gigabit NICs should not be manually set: they *HAVE* to auto-negotiate! Try a search on gigabit.


Pete



Pete
Angus Crome
Honored Contributor

Re: Wrong duplex-mode with GBIT-SX-NIC on L-Class and HPUX11 ?

Pete is essentially correct. The autonegotiate feature is pretty much a requirement for the server (it works much better than the 10 and 100 layers do). However, the switch should still be hard set to 1000 FD.
There are 10 types of people in the world, those who understand binary and those who don't - Author Unknown
Steven E. Protter
Exalted Contributor

Re: Wrong duplex-mode with GBIT-SX-NIC on L-Class and HPUX11 ?

Contrary to HP's 10/100 BaseT cards autonegotiate is a must for 1000 BaseT cards.

Has to be auto negotiate on the switch, and you shouldn't go through the hard coding instructions in /etc/rc.config.d/hpbtlanconf that you'll see if you run through an itrc search on this topic.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Todd Whitcher
Esteemed Contributor

Re: Wrong duplex-mode with GBIT-SX-NIC on L-Class and HPUX11 ?

The Manual Provides the Details:

For the SX, you should auto-negotiate as mentioned above, the switch should as well.

From docs.hp.com
http://www.docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/J5683-90002/J5683-90002_top.html&con=/hpux/onlinedocs/J5683-90002/00/00/8-con.html&toc=/hpux/onlinedocs/J5683-90002/00/00/8-toc.html&searchterms=duplex&queryid=20030630-053026

The manual part number is J5683-90002
Its under the Section Networks and Communications on the docs page.

Hope that helps