summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-07-31 14:57:10 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-07-31 14:57:10 -0700
commita480b37344085966baa6aa4b4ee1143dfe9f28a0 (patch)
tree57128a586bab69a5c1b90700e460b1595cac33ae
parentbaf3926d84280860cfcd75522f9b0054d65918ab (diff)
downloadvyatta-cfg-system-a480b37344085966baa6aa4b4ee1143dfe9f28a0.tar.gz
vyatta-cfg-system-a480b37344085966baa6aa4b4ee1143dfe9f28a0.zip
Bonding: load module with MII monitor enabled
Unless miimon parameter is set, bonding device won't watch for link changes (which makes it useless for any backup modes).
-rw-r--r--templates/interfaces/bonding/node.def2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/interfaces/bonding/node.def b/templates/interfaces/bonding/node.def
index 53800dba..cc86c89a 100644
--- a/templates/interfaces/bonding/node.def
+++ b/templates/interfaces/bonding/node.def
@@ -4,7 +4,7 @@ help: Set bonding interface
syntax:expression: pattern $VAR(@) "^bond[0-9]+$" \
; "bonding must be (bond0-bond99)"
begin: if [ ! -f /sys/class/net/bonding_masters ]; then
- sudo modprobe bonding max_bonds=0
+ sudo modprobe bonding max_bonds=0 miimon=250
fi
create: sudo sh -c "echo +$VAR(@) > /sys/class/net/bonding_masters" || exit 1
sudo ip link set "$VAR(@)" up