aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup-eth
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2006-08-23 19:00:33 +0000
committerBill Nottingham <notting@redhat.com>2006-08-23 19:00:33 +0000
commitbca88b14edd7d41d4b3baaae12671bc807a154c6 (patch)
treeededa2605c9642154bb4e8599bf6a1aa3ecd36e1 /sysconfig/network-scripts/ifup-eth
parentf7c2a708eadad5699effc08ad8327df97f07b728 (diff)
downloadinitscripts-bca88b14edd7d41d4b3baaae12671bc807a154c6.tar
initscripts-bca88b14edd7d41d4b3baaae12671bc807a154c6.tar.gz
initscripts-bca88b14edd7d41d4b3baaae12671bc807a154c6.tar.bz2
initscripts-bca88b14edd7d41d4b3baaae12671bc807a154c6.tar.xz
initscripts-bca88b14edd7d41d4b3baaae12671bc807a154c6.zip
if they have explicitly defined an address in 169.254, things go really
strange if you don't set this route before the default route (#203591)
Diffstat (limited to 'sysconfig/network-scripts/ifup-eth')
-rwxr-xr-xsysconfig/network-scripts/ifup-eth5
1 files changed, 5 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/ifup-eth b/sysconfig/network-scripts/ifup-eth
index 2cf5d6d1..d8f5d132 100755
--- a/sysconfig/network-scripts/ifup-eth
+++ b/sysconfig/network-scripts/ifup-eth
@@ -260,6 +260,11 @@ else
( sleep 2;
arping -q -U -c 1 -I ${REALDEVICE} ${IPADDR} ) > /dev/null 2>&1 < /dev/null &
+ # Add Zeroconf route.
+ if [ -z "${NOZEROCONF}" -a "${ISALIAS}" = "no" ]; then
+ ip route replace 169.254.0.0/16 dev ${REALDEVICE}
+ fi
+
# Set a default route.
if [ -z "${GATEWAYDEV}" -o "${GATEWAYDEV}" = "${REALDEVICE}" ]; then
# set up default gateway. replace if one already exists