After a few trial and error attempts to upgrade the NIC and port speed on several Linux servers running Suse Linux Enterprise Server 9 I have documented the procedure I follow to complete this successfully.  First of all, the port on the switch needs to be set at the speed that you want to configure the NIC at.  In this case, I’m am setting all of my servers to 1000/Full duplex.
First, make sure the module options for the nic is configured correctly.  You should be able to find this file at /etc/sysconfig/hardware and it should look like this;

serverhost:/etc/sysconfig/hardware # cat hwcfg-bus-pci-0000:06:00.0
MODULE=’bcm5700′
MODULE_OPTIONS=’line_speed=1000 full_duplex=1 auto_speed=1′
STARTMODE=’auto’
#################

Also, I created the following script to manually match the speed and duplex, because Suse is tempramental.


#!/bin/ksh
#
### BEGIN INIT INFO
# Provides: Netspeed
# Required-Start: $network
# Required-Stop:
# X-UnitedLinux-Should-Start:
# X-UnitedLinux-Should-Stop:
# Default-Start: 3 5
# Default-Stop:
# Description: Sets Netspeed
### END INIT INFOif [ -x /usr/sbin/ethtool ]; then
/usr/sbin/ethtool -s eth1 speed 1000 duplex full autoneg on
fi
exit 0Then vi a file /etc/init.d/netspeed and paste the script above and follow these commands.

#cd /etc/init.d
#chmod 755 netspeed
#chkconfig netspeed on
#/etc/rc.d/rc3.d/S07netspeed

Then check NIC again using ethtool, reboot and verify it reboots at the right speed and duplex.

+ Recent posts