Operating System - HP-UX
1834530 Members
3400 Online
110068 Solutions
New Discussion

Gigabit ethernet refuses to work as fast properly

 
SOLVED
Go to solution
Filipe_1
Frequent Advisor

Gigabit ethernet refuses to work as fast properly

Hi folks,

We have a gigabit ethernet interface (HP-UX 11.11, latest patches). But the swith it is connected to, only works as fast ethernet. It seems OK due to the possibility to change the interface to fast. Both, switch and interface are presently configured as 100, NONEG and full duplex.

The issue here is that the interface refuses to work properly. The switch sees the interface as up, send control ethernet packets but gets no response.

When I run landiag, it shows me that it is configured as gigabit, even if SAM shows otherwise.

As far as we know, there is no cabling problem. The details are attached.

Anyone has any idea of what is going on?

Cheers,

Filipe.
9 REPLIES 9
Jeff_Traigle
Honored Contributor
Solution

Re: Gigabit ethernet refuses to work as fast properly

Um, landiag shows it's set to 100Mbps. I think you miscounted your 0's. That's 100,000,000, not 1,000,000,000 for the Speed.

Have you tried letting the NIC autonegotiate? I seem tor ecall reading in some forum posting at some point in the past that the 1000BaseT cards would only work if set to autonegotiate, regardless of what the switch speed is. (Unlike the 100Mbps cards that seem to only work well when switch and NIC are set to the same speed/duplex manually.)
--
Jeff Traigle
OldSchool
Honored Contributor

Re: Gigabit ethernet refuses to work as fast properly

Hi Filipe,

Note that lanadmin replaces landiag begining w/ HPUX 10.0.

Just for giggles, try lanadmin and see what it reports for the card.
Pete Randall
Outstanding Contributor

Re: Gigabit ethernet refuses to work as fast properly

Yes, Jeff is correct. The GB interface has to be configured to autonegotiate.


Pete

Pete
Jeff Schussele
Honored Contributor

Re: Gigabit ethernet refuses to work as fast properly

Hi Filipe,

Do I understand correctly that you *do* want this running at 100FD?
If so then NO Negotiation is valid.
Only when running 1000 do you need Auto Negotiation.
One thing you might do is determine the driver type - probably either iether, gelan or igelan.
Then hard code the speed, duplex & Negotiation in the appropriate /etc/rc.config.d/hp??????conf file.
This will *force* the NIC to those settings.
And double check that Negotiation is truly set off on the switch. You should also probably try another switch port.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Steven E. Protter
Exalted Contributor

Re: Gigabit ethernet refuses to work as fast properly

Filipe,

You should have to do nothing. Autonegotiate will do the job.

landadmin -x 0

change the zero to the numeric part of lan0 or whatever the card is.

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
rick jones
Honored Contributor

Re: Gigabit ethernet refuses to work as fast properly

Unless and until you _KNOW_ that the NIC and switch cannot get along via autosense/autoneg etc, my personal belief is one should leave things at both ends to AUTO. Even for a 100BT NIC rather than a GbE NIC.

Once one starts hardcoding one side or the the other, the following comes into play:

How Autoneg is supposed to work:

When both sides of the link are set to autoneg, they will "negotiate"
the duplex setting and select full duplex if both sides can do
full-duplex.

If one side is hardcoded and not using autoneg, the autoneg process
will "fail" and the side trying to autoneg is required by spec to use
half-duplex mode.

If one side is using half-duplex, and the other is using full-duplex,
sorrow and woe is the usual result.

So, the following table shows what will happen given various settings
on each side:

Auto Half Full

Auto Happiness Lucky Sorrow

Half Lucky Happiness Sorrow

Full Sorrow Sorrow Happiness

Happiness means that there is a good shot of everything going well.
Lucky means that things will likely go well, but not because you did
anything correctly :) Sorrow means that there _will_ be a duplex
mis-match.

When there is a duplex mismatch, on the side running half-duplex you
will see various errors and probably a number of late collisions. On
the side running full-duplex you will see things like FCS errors.
Note that those errors are not necessarily conclusive, they are simply
indicators.

Further, it is important to keep in mind that a "clean" ping (or the
like - eg "linkloop") test result is inconclusive here - a duplex
mismatch causes lost traffic _only_ when both sides of the link try to
speak at the same time. A typical ping test, being synchronous, one at
a time request/response, never tries to have both sides talking at the
same time.
there is no rest for the wicked yet the virtuous have no pillows
Rory R Hammond
Trusted Contributor

Re: Gigabit ethernet refuses to work as fast properly


Other thoughts.

On the gig card, Auto neg has always worked. Except for two conditions.
1. We had an older exterasys switch, were we had to hard code the speed.

2. We had a bad patch cable.

Rory
There are a 100 ways to do things and 97 of them are right
Filipe_1
Frequent Advisor

Re: Gigabit ethernet refuses to work as fast properly

Rick,

You got ten just for the "Happiness Lucky Sorrow" thing.

Folks, thanks a bunch you all, but the real culprit was the switch, that being a different thing that I was informed since the beggining of this mess.

Cheers,

Filipe.
Filipe_1
Frequent Advisor

Re: Gigabit ethernet refuses to work as fast properly

Thanks y'all.