From 980f43c79e5f63e2e7342750a143bc3f8fc70676 Mon Sep 17 00:00:00 2001 From: Miloslav Trmac Date: Tue, 30 Jan 2007 18:19:37 +0000 Subject: * Tue Jan 30 2007 Miloslav Trmac - 7.93.28.EL-1 - Fix MACADDR on bonding slaves Resolves: #222711 --- sysconfig/network-scripts/ifup | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'sysconfig/network-scripts/ifup') 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 -- cgit