[Techtalk] How to hard code the speed of a virtual interface (bond0)?

Rudy Zijlstra rudy at grumpydevil.homelinux.org
Thu May 7 10:03:26 UTC 2009


Hi Joana,

Op donderdag 07-05-2009 om 10:48 uur [tijdzone +0100], schreef Joana
Botto:
> Hi,
> 
> I configured two NICs with bonding, balance-alb. But now I would like
> to hard code the bond0 interface speed to 1000Mb and full duplex.
> Because bond0 it's a virtual interface, the ethtool output says the
> interface doesn't exist.

fixing speed on a gigabit is pretty much against the spec, and i suspect
that is why this is failing. auto-negotiation on Gigabit is a mandatory
part of the gigabit spec. Also, with gigabit please always use cables
with 8 wires, and not the cheaper 4 wire cables that could work with
100Mbit or lower NIC's. 

Cheers,

Rudy

> 
> In /etc/rc.local I've put
> ethtool -s eth0 duplex full speed 1000 autoneg off
> ethtool -s eth1 duplex full speed 1000 autoneg off
> 
> But ethtool still says that autoneg is on.
> 
> I didn't found anything relevant in google.
> 
> Does anyone have an idea how to do it? Thank you.
> 
> 
> Regards,
> Joana Botto
> _______________________________________________
> Techtalk mailing list
> Techtalk at linuxchix.org
> http://mailman.linuxchix.org/mailman/listinfo/techtalk



More information about the Techtalk mailing list