aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2003-09-05 20:18:54 +0000
committerBill Nottingham <notting@redhat.com>2003-09-05 20:18:54 +0000
commit297778421a427bdee4397819b623902a5eaa81b2 (patch)
tree08c2f1eeee76529df83b85c9c35ec810b4ba01c6 /sysconfig/network-scripts
parent2db94baea1ccd3495f13b99bf39e303050d955e0 (diff)
downloadinitscripts-297778421a427bdee4397819b623902a5eaa81b2.tar
initscripts-297778421a427bdee4397819b623902a5eaa81b2.tar.gz
initscripts-297778421a427bdee4397819b623902a5eaa81b2.tar.bz2
initscripts-297778421a427bdee4397819b623902a5eaa81b2.tar.xz
initscripts-297778421a427bdee4397819b623902a5eaa81b2.zip
fix bonding+dhcp (#91399); bring bonding device links up, then bring up slaves, then bring up bonding interface fully
Diffstat (limited to 'sysconfig/network-scripts')
-rwxr-xr-xsysconfig/network-scripts/ifup8
1 files changed, 8 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup
index 123790aa..d50380b2 100755
--- a/sysconfig/network-scripts/ifup
+++ b/sysconfig/network-scripts/ifup
@@ -176,6 +176,14 @@ if [ "${SLAVE}" = yes -a "${ISALIAS}" = no -a "${MASTER}" != "" -a \
exit 0
fi
+# master device?
+if [ "${TYPE}" = "Bonding" ] || ethtool -i $DEVICE | grep -q "driver: bonding" ; then
+ /sbin/ip link set ${DEVICE} up
+ for device in `fgrep -l "MASTER=${DEVICE}" /etc/sysconfig/network-scripts/ifcfg-*` ; do
+ /sbin/ifup ${device##*/}
+ done
+fi
+
# this isn't the same as the MAC in the configuration filename. It is
# available as a configuration option in the config file, forcing the kernel
# to think an ethernet card has a different MAC address than it really has.