[openib-general] [RFC] [PATCH V2 0/3] bonding support for operation over IPoIB - example config script

Or Gerlitz ogerlitz at voltaire.com
Thu Nov 30 03:00:46 PST 2006


Below is an example script i was using to configure bonding in my testing

Or.

--- /dev/null	2006-10-30 17:30:04.465997856 +0200
+++ bond_init_sysfs.bash	2006-11-30 12:51:05.109565889 +0200
@@ -0,0 +1,25 @@
+#!/bin/bash
+
+BOND_IP=192.168.10.118
+BOND_NETMASK=255.255.255.0
+
+SLAVE_A=ib0
+SLAVE_B=ib1
+
+modprobe bonding
+
+echo active-backup > /sys/class/net/bond0/bonding/mode
+echo 100           > /sys/class/net/bond0/bonding/miimon
+
+modprobe ib_ipoib
+
+## this is some debug info that can enable seeing below the scenes...
+## to learn more see Documentation/infiniband/ipoib.txt
+
+#echo 1 > /sys/module/ib_ipoib/parameters/mcast_debug_level
+#echo 1 > /sys/module/ib_ipoib/parameters/debug_level
+
+echo +$SLAVE_A > /sys/class/net/bond0/bonding/slaves
+echo +$SLAVE_B > /sys/class/net/bond0/bonding/slaves
+
+ifconfig bond0 $BOND_IP netmask $BOND_NETMASK up




More information about the general mailing list