e100 speed duplex under 9.1
I need to disable autonegotiation and force 100/Full-Dup for the speed/duplex on an Intel EtherPro on a SuSE 9.1 system. I found a thread in this group back in May that ended with the posting below. Anyone know of changes since then ? I can get my network admin to let the port autonegotiate temporarily, but I need to figure out how to force the card eventually.
Dave Cunningham
From: Simon Oliver (s.oliver_at_umist.ac.uk)
Date: Fri May 21 2004 - 11:52:35 CEST
* Next message: Sid Boyce: "Re: [SLE] Help compiling 2.6 module" <2935.html>
* Previous message: Simon Oliver: "RE: [SLE] e100 speed duplex under 9.1" <2933.html>
* In reply to: Daniel Thivierge: "Re: [SLE] e100 speed duplex under 9.1" <2799.html>
* Messages sorted by: [ date ]
In the etc/modules.conf add the options line (if 4 is what you want from the def file): alias eth0 e100 options e100 e100_speed_duplex=4
The problem is that the e100.o modules provided with 9.1 doesn't support the e100_speed_duplex module parameter at all. The only parameter it takes is debug: # modinfo -p e100 debug:Debug level (0=none,...,16=all) Regards -- Simon Oliver
Fredag den 3. september 2004 22:11 skrev Cunningham, Dave:
I need to disable autonegotiation and force 100/Full-Dup for the speed/duplex on an Intel EtherPro on a SuSE 9.1 system. I found a thread in this group back in May that ended with the posting below. Anyone know of changes since then ? I can get my network admin to let the port autonegotiate temporarily, but I need to figure out how to force the card eventually.
Dave Cunningham
Check out "ethtool"
From: Simon Oliver (s.oliver_at_umist.ac.uk) Date: Fri May 21 2004 - 11:52:35 CEST * Next message: Sid Boyce: "Re: [SLE] Help compiling 2.6 module" <2935.html> * Previous message: Simon Oliver: "RE: [SLE] e100 speed duplex under 9.1" <2933.html> * In reply to: Daniel Thivierge: "Re: [SLE] e100 speed duplex under 9.1" <2799.html> * Messages sorted by: [ date ]
[ thread ] [ subject ] [ author ] [ attachment ] X-Message-Number-for-archive: 190422 Date: Fri, 21 May 2004 10:52:35 +0100 Message-ID: <00ec01c43f19$57b616e0$a06e5882@bi.umist.ac.uk> Subject: RE: [SLE] e100 speed duplex under 9.1
Daniel Thivierge wrote:
In the etc/modules.conf add the options line (if 4 is what you want from the def file): alias eth0 e100 options e100 e100_speed_duplex=4
The problem is that the e100.o modules provided with 9.1 doesn't support the e100_speed_duplex module parameter at all. The only parameter it takes is debug: # modinfo -p e100 debug:Debug level (0=none,...,16=all) Regards -- Simon Oliver
Ethtool -s eth0 autoneg off speed 100 (or what ever speed you want) duplex full Add that to your start up scripts and you should be OK.
Matthew Stringer writes:
ethtool -s eth0 autoneg off speed 100 (or what ever speed you want) duplex full
Add that to your start up scripts and you should be OK.
I should add that /etc/init.d/boot.local is *not* a good place for this, in case you should try to put it there. This is because boot.local is run before the network is brought up, so whatever you put in there will have no effect on network interfaces that do not yet exist. The appropriate place for this sort of thing is to add a shell script to your /etc/sysconfig/network/if-up.d directory. When the network is being brought up, all scripts in this directory will be executed with the interface name passed in as its command line parameter. Hence, if you were to add a shell script called /etc/sysconfig/network/if-up.d/setspeed, the following code will work nicely to set your eth0 interface to 100kbps/full duplex: if [ "$1" = "eth0" ] then # Set to 100BaseT full duplex. /usr/sbin/ethtool -s eth0 autoneg off speed 100 duplex full fi If your machine has multiple network interfaces, you can set each interface with more of the above lines in the same file, for eth1, eth2, etc... -Ti
On Friday, September 3, 2004 04:11 pm, Cunningham, Dave wrote:
but I need to figure out how to force the card eventually.
Hi Dave, You can use one of ethtool or mii-tool; which one I think depends upon what the card itself supports. e.g.: outside:/home/lms-new # mii-tool eth0: negotiated 10baseT-FD, link ok outside:/home/lms-new # mii-tool --help usage: mii-tool [-VvRrwl] [-A media,... | -F media] [interface ...] -V, --version display version information -v, --verbose more verbose output -R, --reset reset MII to poweron state -r, --restart restart autonegotiation -w, --watch monitor for link status changes -l, --log with -w, write events to syslog -A, --advertise=media,... advertise only specified media -F, --force=media force specified media technology media: 100baseT4, 100baseTx-FD, 100baseTx-HD, 10baseT-FD, 10baseT-HD, (to advertise both HD and FD) 100baseTx, 10baseT outside:/home/lms-new # mii-tool -F 10baseT-FD eth0 outside:/home/lms-new # mii-tool eth0: 10 Mbit, full duplex, link ok outside:/home/lms-new # Hope this helps. Mark -- _________________________________________________ L. Mark Stone Reliable Networks of Maine, LLC 477 Congress Street Portland, ME 04101 Tel: (207) 772-5678 ************************************************ * Please note that my cell number has changed! * * The new number is (207) 615-1529 * * The old number will be retired by Sept 15th. * ************************************************
participants (5)
-
Cunningham, Dave
-
Johan Nielsen
-
L. Mark Stone
-
Matthew Stringer
-
ti@amb.org