From a480b37344085966baa6aa4b4ee1143dfe9f28a0 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Fri, 31 Jul 2009 14:57:10 -0700 Subject: 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). --- templates/interfaces/bonding/node.def | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates') 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 -- cgit v1.2.3