diff --git a/scripts/setup-netdev b/scripts/setup-netdev index a616b48..4b64781 100755 --- a/scripts/setup-netdev +++ b/scripts/setup-netdev @@ -52,11 +52,11 @@ for VLAN in $VLANS ; do fi ip link set $VLAN_BOND up [[ -n $MTU ]] && ip link set $VLAN_BOND mtu $MTU - #if [[ -n $SPEED ]] ; then - # ethtool -s $SLAVE_0 autoneg off speed $SPEED duplex full - # ethtool -s $SLAVE_1 autoneg off speed $SPEED duplex full - #fi - #sleep 5 + if [[ -n $SPEED ]] ; then + ethtool -s $SLAVE_0 autoneg off speed $SPEED duplex full + ethtool -s $SLAVE_1 autoneg off speed $SPEED duplex full + fi + sleep 5 ifenslave $VLAN_BOND $SLAVE_0 $SLAVE_1 sleep 5 fi