Saturday, October 31, 2009

Remove 169.254.0.0 routing in Linux

During the setup of Linux OS, you may see the special route even though you haven't added any,

[root@myserver ~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.106.2.0 * 255.255.255.0 U 0 0 0 bond0
10.106.2.0 * 255.255.255.0 U 0 0 0 eth3
169.254.0.0 * 255.255.0.0 U 0 0 0 eth3
default 10.106.2.254 0.0.0.0 UG 0 0 0 bond0

This is the zeroconf route.

Though harmless, the less route you have, the more secure i suppose.

To disable the zeroconf route during system boot, edit the /etc/sysconfig/network file and add the following NOZEROCONF value to the end of the file.

NETWORKING=YES
HOSTNAME=localhost.localdomain
NOZEROCONF=yes

2 comments:

Anonymous said...

Thanks for the assist. That was driving me crazy. It may not be important but it's one more thing to rule out when troubleshooting bonding issues, etc...

Phantom Cloud said...

Glad that this is useful to you. :)