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 --- initscripts.spec | 6 +++++- sysconfig/network-scripts/ifup | 13 +++++++------ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/initscripts.spec b/initscripts.spec index 3d380cb9..2c4166a7 100644 --- a/initscripts.spec +++ b/initscripts.spec @@ -1,6 +1,6 @@ Summary: The inittab file and the /etc/init.d scripts. Name: initscripts -Version: 7.93.27.EL +Version: 7.93.28.EL License: GPL Group: System Environment/Base Release: 1 @@ -207,6 +207,10 @@ rm -rf $RPM_BUILD_ROOT %ghost %attr(0664,root,utmp) /var/run/utmp %changelog +* Tue Jan 30 2007 Miloslav Trmac - 7.93.28.EL-1 +- Fix MACADDR on bonding slaves + Resolves: #222711 + * Mon Jan 15 2007 Miloslav Trmac - 7.93.27.EL-1 - Do unmount network mounts, not doing so can prevent other unmounting other filesystems 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