summaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup
diff options
context:
space:
mode:
authorMiloslav Trmac <mitr@volny.cz>2007-01-30 18:19:37 +0000
committerMiloslav Trmac <mitr@volny.cz>2007-01-30 18:19:37 +0000
commit980f43c79e5f63e2e7342750a143bc3f8fc70676 (patch)
tree6c8059224efff1cbea65ad85d7a8c583be56c7f4 /sysconfig/network-scripts/ifup
parente758d4058576dab4a81b6fe5fb376b0ff8fd2635 (diff)
* Tue Jan 30 2007 Miloslav Trmac <mitr@redhat.com> - 7.93.28.EL-1r7-93-28-EL
- Fix MACADDR on bonding slaves Resolves: #222711
Diffstat (limited to 'sysconfig/network-scripts/ifup')
-rwxr-xr-xsysconfig/network-scripts/ifup13
1 files changed, 7 insertions, 6 deletions
diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup
index 03c76047..a1a8eff3 100755
--- a/sysconfig/network-scripts/ifup
+++ b/sysconfig/network-scripts/ifup
@@ -210,6 +210,13 @@ is_available ${REALDEVICE} || {
# is the device wireless? If so, configure wireless device specifics
is_wireless_device ${DEVICE} && . ./ifup-wireless
+# 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.
+if [ -n "${MACADDR}" ]; then
+ ip link set dev ${DEVICE} address ${MACADDR}
+fi
+
# slave device?
if [ "${SLAVE}" = yes -a "${ISALIAS}" = no -a "${MASTER}" != "" -a \
-x /sbin/ifenslave ]; then
@@ -241,12 +248,6 @@ if [ "$ISALIAS" = no ] && \
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.
-if [ -n "${MACADDR}" ]; then
- ip link set dev ${DEVICE} address ${MACADDR}
-fi
if [ -n "${MTU}" ]; then
ip link set dev ${DEVICE} mtu ${MTU}
fi