diff options
author | Bill Nottingham <notting@redhat.com> | 2006-08-23 19:00:33 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2006-08-23 19:00:33 +0000 |
commit | bca88b14edd7d41d4b3baaae12671bc807a154c6 (patch) | |
tree | ededa2605c9642154bb4e8599bf6a1aa3ecd36e1 | |
parent | f7c2a708eadad5699effc08ad8327df97f07b728 (diff) | |
download | initscripts-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)
-rwxr-xr-x | sysconfig/network-scripts/ifup-eth | 5 |
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 |