From 591aa4691f8b378b1696b75c3da1830d9369e394 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Mon, 15 Jan 2007 20:38:50 +0000 Subject: - set MACADDR, if specified, before bringing up bonding master/slaves (#218792) --- sysconfig/network-scripts/ifup-eth | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'sysconfig') diff --git a/sysconfig/network-scripts/ifup-eth b/sysconfig/network-scripts/ifup-eth index 7c94e310..dd1907de 100755 --- a/sysconfig/network-scripts/ifup-eth +++ b/sysconfig/network-scripts/ifup-eth @@ -96,6 +96,13 @@ if [ -n "${BRIDGE}" -a -x /usr/sbin/brctl ]; then exit 0 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 + # slave device? if [ "${SLAVE}" = yes -a "${ISALIAS}" = no -a "${MASTER}" != "" ]; then /sbin/ip link set dev ${DEVICE} down @@ -129,12 +136,6 @@ if [ "$ISALIAS" = no ] && is_bonding_device ${DEVICE} ; then 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 v1.2.1