diff options
author | Bill Nottingham <notting@redhat.com> | 2006-12-07 18:16:42 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2006-12-07 18:16:42 +0000 |
commit | 15850b0ee2ad50bf0fe981c9d926881af429ed66 (patch) | |
tree | 03b29cc2daca0013691e06656a86414f6c02a950 /sysconfig/network-scripts | |
parent | 7f3a464c39114270bd85e4e72fa5ccf4238bcd51 (diff) | |
download | initscripts-15850b0ee2ad50bf0fe981c9d926881af429ed66.tar initscripts-15850b0ee2ad50bf0fe981c9d926881af429ed66.tar.gz initscripts-15850b0ee2ad50bf0fe981c9d926881af429ed66.tar.bz2 initscripts-15850b0ee2ad50bf0fe981c9d926881af429ed66.tar.xz initscripts-15850b0ee2ad50bf0fe981c9d926881af429ed66.zip |
set MACADDR, MTU before initializing bonding slaves, etc (#218792)
Diffstat (limited to 'sysconfig/network-scripts')
-rwxr-xr-x | sysconfig/network-scripts/ifup-eth | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/sysconfig/network-scripts/ifup-eth b/sysconfig/network-scripts/ifup-eth index 7c94e310..84500851 100755 --- a/sysconfig/network-scripts/ifup-eth +++ b/sysconfig/network-scripts/ifup-eth @@ -96,6 +96,16 @@ 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 +if [ -n "${MTU}" ]; then + ip link set dev ${DEVICE} mtu ${MTU} +fi + # slave device? if [ "${SLAVE}" = yes -a "${ISALIAS}" = no -a "${MASTER}" != "" ]; then /sbin/ip link set dev ${DEVICE} down @@ -129,16 +139,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 - if [ -n "${DYNCONFIG}" -a -x /sbin/dhclient ]; then # Remove any temporary references which were previously added to dhclient config |