settings de ethtool desactivados
This commit is contained in:
parent
a361a1c717
commit
6108b2799e
1 changed files with 15 additions and 15 deletions
|
@ -44,7 +44,6 @@ for VLAN in $VLANS ; do
|
||||||
echo "$VLAN_BOND not available"
|
echo "$VLAN_BOND not available"
|
||||||
exit 23
|
exit 23
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
MY_MODE=`cut -d ' ' -f 2 /sys/class/net/$VLAN_BOND/bonding/mode`
|
MY_MODE=`cut -d ' ' -f 2 /sys/class/net/$VLAN_BOND/bonding/mode`
|
||||||
if [[ "$MY_MODE" != "$BOND_MODE" ]] ; then
|
if [[ "$MY_MODE" != "$BOND_MODE" ]] ; then
|
||||||
echo $BOND_MODE \
|
echo $BOND_MODE \
|
||||||
|
@ -53,13 +52,14 @@ for VLAN in $VLANS ; do
|
||||||
fi
|
fi
|
||||||
ip link set $VLAN_BOND up
|
ip link set $VLAN_BOND up
|
||||||
[[ -n $MTU ]] && ip link set $VLAN_BOND mtu $MTU
|
[[ -n $MTU ]] && ip link set $VLAN_BOND mtu $MTU
|
||||||
if [[ -n $SPEED ]] ; then
|
#if [[ -n $SPEED ]] ; then
|
||||||
ethtool -s $SLAVE_0 autoneg off speed $SPEED duplex full
|
# ethtool -s $SLAVE_0 autoneg off speed $SPEED duplex full
|
||||||
ethtool -s $SLAVE_1 autoneg off speed $SPEED duplex full
|
# ethtool -s $SLAVE_1 autoneg off speed $SPEED duplex full
|
||||||
fi
|
#fi
|
||||||
sleep 5
|
#sleep 5
|
||||||
ifenslave $VLAN_BOND $SLAVE_0 $SLAVE_1
|
ifenslave $VLAN_BOND $SLAVE_0 $SLAVE_1
|
||||||
sleep 5
|
sleep 5
|
||||||
|
fi
|
||||||
if [[ $VLAN == $CTLPLANE ]] ; then
|
if [[ $VLAN == $CTLPLANE ]] ; then
|
||||||
ip addr add $VLAN_IP/$MASK dev $VLAN_BOND
|
ip addr add $VLAN_IP/$MASK dev $VLAN_BOND
|
||||||
GATEWAY=`cut -d ',' -f 8 <<< $VLAN_CONF`
|
GATEWAY=`cut -d ',' -f 8 <<< $VLAN_CONF`
|
||||||
|
|
Loading…
Reference in a new issue