Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Is there a way to turn off autonegotiation for a ethernet card ?: (5 Items)
   
Is there a way to turn off autonegotiation for a ethernet card ?  
I would like to run my ethernet card always with 100MBit fullduplex.
It should not change the mode if the cable gets unplugged and 
plugged in again.

regards,
  Clemens
RE: Is there a way to turn off autonegotiation for a ethernet card ?  
Is this with io-net or io-pkt?

Out of curiosity, why would you want to do this?


-----Original Message-----
From: clemens gmeiner [mailto:community-noreply@qnx.com] 
Sent: Tuesday, November 11, 2008 12:38 PM
To: general-networking
Subject: Is there a way to turn off autonegotiation for a ethernet card
?

I would like to run my ethernet card always with 100MBit fullduplex.
It should not change the mode if the cable gets unplugged and plugged in
again.

regards,
  Clemens

_______________________________________________
General
http://community.qnx.com/sf/go/post16404
Re: RE: Is there a way to turn off autonegotiation for a ethernet card ?  
I am running io-net, 
I need to check that because I have 
problems with hot plug of ethernet cable.
RE: RE: Is there a way to turn off autonegotiation for a ethernet card ?  
Check the docs for the driver that you're using.  You should be able to
specify the speed and duplex from the command line.

E.g.

io-net -dspeedo speed=100,duplex=1 -ptcpip

Forces 100 Mbps, full duplex operation on the speedo driver.




-----Original Message-----
From: clemens gmeiner [mailto:community-noreply@qnx.com] 
Sent: Tuesday, November 11, 2008 1:03 PM
To: general-networking
Subject: Re: RE: Is there a way to turn off autonegotiation for a
ethernet card ?

I am running io-net,
I need to check that because I have
problems with hot plug of ethernet cable.

_______________________________________________
General
http://community.qnx.com/sf/go/post16410
RE: RE: Is there a way to turn off autonegotiation for a ethernet card ?  
> io-net -dspeedo speed=100,duplex=1 -ptcpip
>
> Forces 100 Mbps, full duplex operation on the speedo driver.

Correct.  I should mention that generally speaking,
the speed and duplex command line options to the
driver create more problems than they solve.

When you force speed and duplex at one end of
the link, it's really best to force it at the 
OTHER end of the link, too.  Otherwise you're 
not sure what you're going to end up with.

Because virtually no one ever force both
ends, I found that the speed and duplex
options worked much better if the auto-
negotiation was still performed by the driver,
but with a restricted subset - namely, the one 
specified.

It's not hard for one end to guess the media
speed, but it's easy to end up with one end
full duplex and the other end half duplex
when you skip the auto-negotiation and force
the link, which isn't good.

Generally, try not to force the link with the 
speed and duplex options.  99.999% of the time, 
the auto-negotiation will do the "right thing".

--
aboyd