aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifdown
diff options
context:
space:
mode:
Diffstat (limited to 'sysconfig/network-scripts/ifdown')
-rwxr-xr-xsysconfig/network-scripts/ifdown6
1 files changed, 5 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifdown b/sysconfig/network-scripts/ifdown
index c807c711..c9b03c85 100755
--- a/sysconfig/network-scripts/ifdown
+++ b/sysconfig/network-scripts/ifdown
@@ -83,7 +83,11 @@ if [ "$BOOTPROTO" = bootp -o "$BOOTPROTO" = dhcp ]; then
}
else
expand_config
- ip addr del ${IPADDR}/${PREFIX} brd ${BROADCAST:-+} dev ${REALDEVICE}
+ # we can't just delete the configured address because that address
+ # may have been changed in the config file since the device was
+ # brought up. Flush all addresses associated with this
+ # instance instead.
+ ip addr flush dev ${REALDEVICE} label ${DEVICE}
fi
if [ "${REALDEVICE}" = "${DEVICE}" ]; then