Setting the NIC speed and duplex mode with a 2.6 kernel
Thought you might like to know how I solved the problem of setting the NIC speed and duplex options with SuSE 9.1, based on kernel 2.6 (2.6.5-7.104-default): It seems that with SuSE 9.1 it is not possible to set the duplex to full via the module options, as confirmed using the modinfo utility: # modinfo -p e100 debug:Debug level (0=none,...,16=all) To tell if you have this problem type the following command and look for the Speed and Duplex settings: ethtool eth0 To correct this problem you first need to identify which ethernet driver is being used: try `lsmod` and see what's there, or just look in YaST. Next, add the module name to the end of the INITRD_MODULES="" setting in the kernel configuration file: /etc/sysconfig/kernel and do a `mkinitrd`. [On my machine it now looks like this: INITRD_MODULES="gdth aic7xxx jbd ext3 e100"] This pre-loads the kernel with the network driver at boot, something which is required for the next step: Now append the following lines to /etc/init.d/boot.local # configure NIC for 100Mb/s full-duplex /usr/sbin/ethtool -s eth0 autoneg off speed 100 duplex full This reconfigures the NIC during boot up. Regards -- Simon Oliver
participants (1)
-
Simon Oliver