The machine I'm working on is running Fedora 14 and has 24 fiber optic network interfaces.
The interfaces are configured at boot time with a custom script in rc.local. This is a test machine, so changing scenarios call for different port configurations that change sometimes between boots, which the rc.local script handles, so I'm not using Network Manager (in fact, the service is disabled).
The problem is that for some reason the ports are autonegotiating duplex incorrectly. I modified the rc.local script to add something like:
Code:
ethtool -s eth$ethNumber autoneg off duplex full
The other connections are set to 100MB Full, but on the Linux machine, they negotiate to half and I start seeing errors. If I manually set them to full, the errors stop.
This script modification worked fine until I ran into a situation where if a link is down, ethtool won't configure it and leaves it at the default Autonegotiation. If/when the link finally comes up, it doesn't negotiate to the proper duplex.
Enabling Network Manager so it uses network-scripts is the only way I know of to ensure that the links come up in proper duplex every time, but it means that I'll have to manually edit the other configuration for each network interface each time our test setup changes.
By the way, I'm talking about just one of two identical computers, which means I'd have to manually configure 28 NICs each time the test setup changes.
The only other thing I can think of is to figure out a script to manually edit all of the ifcfg files with the changes I need, but that's beyond my scripting level at the moment.