Operating System - HP-UX
1825771 Members
2121 Online
109687 Solutions
New Discussion

hpgelanconf & autonegotiation

 
Greg Geyer
Frequent Advisor

hpgelanconf & autonegotiation

I have the hpgelanconf file set to disable autonegotiation but when the system reboots it still sets the gelan back to Autonegotiate. And no,its not a igelan. The only boxes with these built-in gigabit adapters we have are the RP8400s, and all 3 display this behavior.

I get the same result by leaving the HP_GELAN_STATION_ADDRESS line empty.

The btlan does not exhibit this problem.

=-=-=-=-=-=-=-=-=
-------------------------------------------------
root@semas0:/opt/netperf# ./netperf -H semdb1e1
TCP STREAM TEST to semdb1e1
Recv Send Send
Socket Socket Message Elapsed
Size Size Size Time Throughput
bytes bytes bytes secs. 10^6bits/sec

32768 32768 32768 11.28 0.36
-------------------------------------------------
root@semas0:/opt/netperf# lanadmin -x 0
Speed = 100 Half-Duplex.
Autonegotiation = On.
WARNING: The link settings of this card may be incompatible
with the settings of its link partner.
-------------------------------------------------
root@semas0:/etc/rc.config.d# lanscan | grep lan0
0/0/0/1/0 0x00306E0A80C4 0 UP lan0 snap0 1 ETHER Yes 119
-------------------------------------------------
root@semas0:/# cat /etc/rc.config.d/hpgelanconf

HP_GELAN_INTERFACE_NAME[0]=lan0
HP_GELAN_STATION_ADDRESS[0]=0x00306E0A80C4
HP_GELAN_SPEED[0]=100fd
HP_GELAN_MTU[0]=1500
HP_GELAN_FLOW_CONTROL[0]=1
HP_GELAN_AUTONEG[0]=0
HP_GELAN_SEND_COAL_TICKS[0]=1000
HP_GELAN_RECV_COAL_TICKS[0]=0
HP_GELAN_SEND_MAX_BUFS[0]=16
HP_GELAN_RECV_MAX_BUFS[0]=1

# End of hpgelanconf configuration file

-------------------------------------------------
root@semas0:/opt/netperf# lanadmin -X 100fd 0
WARNING: The link settings you have specified for this card
must match the settings of its link partner.
-------------------------------------------------
root@semas0:/etc/rc.config.d# lanadmin -x 0
Speed = 100 Full-Duplex.
Autonegotiation = Off.
-------------------------------------------------
root@semas0:/opt/netperf# ./netperf -H semdb1e1
TCP STREAM TEST to semdb1e1
Recv Send Send
Socket Socket Message Elapsed
Size Size Size Time Throughput
bytes bytes bytes secs. 10^6bits/sec

32768 32768 32768 10.01 84.03
12 REPLIES 12
Ken Hubnik_2
Honored Contributor

Re: hpgelanconf & autonegotiation

Does the port on the switch have autonegotaiate on??
Greg Geyer
Frequent Advisor

Re: hpgelanconf & autonegotiation

Negative. We don't use HP switches, and as you can see from my post, when autonegotiate was turned on at the card, performance was crappy. Turning it off on the card sets things right. That's not the issue. How to make sure the card is not set to autonegotiate when it reboots is my question.
Ken Hubnik_2
Honored Contributor

Re: hpgelanconf & autonegotiation

Why is one set to Half duplex and the other is set to Full duplex?
Greg Geyer
Frequent Advisor

Re: hpgelanconf & autonegotiation

It is the same card (everything above refers to lan0). It is set to half-duplex autonegotiate when I boot. If you read the post you'll see these following steps:

1: netperf test showing the 1000base-T is getting 0.36 Megabits per second performance.

2: lanadmin command showing that the card is at half-duplex, autonegotiate (right after reboot).

3: showing the mac address for lan0

4: a listing of the hpgelanconf file.

5: I manually set the card to 100FD no autonegotiate.

6: displays that the settings took

7: a netperf test showing that the performance is what it should be, 84 megabits/sec.
Robert-Jan Goossens
Honored Contributor

Re: hpgelanconf & autonegotiation

Hi,

Could you display the /etc/rc.config.d/hpgelanconf file.

Kind regards,

Robert-Jan.
Greg Geyer
Frequent Advisor

Re: hpgelanconf & autonegotiation

Robert-Jan,

Please refer to my previous posts. The variables from that file are displayed above.
Mladen Despic
Honored Contributor

Re: hpgelanconf & autonegotiation

From KBase document id:
BHERRKBRC00006817

Notes:

A. The 1000Base-T adapter cannot be manually set to 1000Mbps operation. The auto-negotiation function must be ON to achieve 1000Mbps operation.

B. When the system is rebooted, settings that were made via the lanadmin command will be lost. To retain configuration settings permanently in the
configuration file /etc/rc.config.d/hpgelanconf, use the SAM utility or
manually edit the /etc/rc.config.d/hpgelanconf file.
Greg Geyer
Frequent Advisor

Re: hpgelanconf & autonegotiation

I am NOT trying to set it to 1000fd. If you read my post you can see I have the configuration file set to 100fd.

I KNOW that the lanadmin command loses its changes after a reboot. That is why I am posting here. Sigh. Again, if you read my posts I have no problem using lanadmin to change it, what I need is to not have to set it to 100fd no autonegotiate after reboot manually. I want it to read the hpgelanconf file and set it correctly.

Robert-Jan Goossens
Honored Contributor

Re: hpgelanconf & autonegotiation

Hi,

Sorry missed your info, beleave i need some glasses !!

Just checked a few of my own files, they are all set to
100FD instead 100fd maybe it's just the syntax that's wrong.

Kind regards,

Robert-Jan.
Greg Geyer
Frequent Advisor

Re: hpgelanconf & autonegotiation

Robert-Jan:

I think I found the answer, it says contact HP for the repair script.
--------------
http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000062909614



Built-in Gigabit duplex setting is not correct DocId: KBRC00008857 Updated: 1/17/02 5:09:00 AM

PROBLEM
The Built-in Gigabit card on the RP8400 (Keystone), software verison
B.11.11.14, does not set correct duplex upon reboot.CONFIGURATION
System : RP8400 on 11i Interface : Gigabit Built-in (Sofware B.11.11.14)
RESOLUTION
If the SPEED parameter is set to 100FD in the hpgelanconf file,
after a reboot the link does not work and in fact is set to 100HD.

#lanadmin -x PPA# 100 Half Duplex Autonegotitation Off


If the speed is set manually with lanadmin, the duplex is set correctly.

#lanadmin -X 100FD PPA#

Please contact the Response Center for the gelan start up script that repairs
this problem. A future patch is planned for release to correct the
/sbin/init.d/gelan.
Greg Geyer
Frequent Advisor

Re: hpgelanconf & autonegotiation

for any future lookers, this is fixed for 11.11 with PHNE_26939
Wilfred Chau_1
Respected Contributor

Re: hpgelanconf & autonegotiation

1. Make a copy of your /sbin/init.d/hpgelan file.

2. replace with the attached hpgelan file.

3. run /sbin/init.d/hpgelan start