lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1243500034.25386.5.camel@ursa.amorsen.dk>
Date:	Thu, 28 May 2009 10:40:34 +0200
From:	Benny Amorsen <benny+usenet@...rsen.dk>
To:	Jonathan Woithe <jwoithe@...sics.adelaide.edu.au>
Cc:	Francois Romieu <romieu@...zoreil.com>,
	David Dillow <dave@...dillows.org>,
	linux-kernel@...r.kernel.org,
	Edward Hsu <edward_hsu@...ltek.com.tw>
Subject: Re: Realtek 8168D: no active link (2.6.29.2)

tor, 28 05 2009 kl. 09:39 +0930, skrev Jonathan Woithe:

> I'm not surprised one way or the other since I have no idea what to expect
> when doing these tests on this card with the patches applied.  Given that
> ethtool has a "duplex" option I naively thought that it controlled the
> card's duplex setting.

It does. The card is set to full duplex when you force full duplex.

> I interprete your comment to mean that duplex can't
> be controlled like this and it requires autonegotiation in order to active
> full duplex mode.  If that's the case then so be it - I'm only reporting
> what I did and what effect it had on the card.

No, you're reporting which effect it had on the SWITCH. The switch
detected that autonegotiation failed, so it picked half duplex mode.
Card full duplex, switch half duplex, recipe for disaster.

> FYI, turning off autonegotiation was the only way I had of forcing the
> card's speed.  If autoneg was left on the "speed 10" and "speed 100" options
> made no difference - the card would always configure for 1000 Mbps.

Correct. If you want to influence autonegotiation, you need to do
something like:

ethtool -s eth1 advertise 0x00F

This allows 10Mbps and 100Mbps with half or full duplex, but nothing
faster.

> Furthermore, in order to attain 1000 Mbps it was necessary to turn autoneg
> on - with it off, "speed 1000" would result in 100 Mbps only.  However, I
> seem to recall reading somewhere that 1000 Mbps required autoneg so I'm not
> all that surprised with that observation.

That is correct.

I can recommend man ethtool.


/Benny

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ