Removing DHCP (169.254.0.0) From static routes
My Red hat box is set up with a static private IP address on our work network. However when I type route -n I see the ¨ I cant find a DHCP server ¨address of 169.254.0.0 as a route in my routing table. Whilst harmless and easy to remove with the command :
route del -net 169.254.0.0 netmask 255.255.0.0 eth0 placed in my /etc/rc.local script I would like a more sophisticated solution - i.e. no just a hack. Where does this offensive route come from so I can dd it out in vi. On a similar tack Im trying to assign a static route to eth0 on my home server - to do this ive created a static-route file in my /etc/sysconfig direvtory and used the command: eth0 net 172.168.0.1 netmask 255.255.0.0 gw 192.168.1.11 but is only works if I replace eth0 with any which assigns thew route to all the interfaces - I can do the assignment using redhat-config-network - but I cant find the script that benighted GUI wimps tool configures - and I HATE GUI configuration vim rulz. :-) |
You can get rid of 169.254.0.0 by setting NOZEROCONF=yes in /etc/sysconfig/network.
|
I realize this is an old thread now, but for anyone that comes upon this while scratching their head over mysterious 169.254.0.0/16 routes, here is the definitive answer and solution you need:
http://www.brennan.id.au/04-Network_Configuration.html -Cadstar |
All times are GMT -5. The time now is 07:34 PM. |