There's a CentOS 5.5 server (network are 172.21.73.0), see its routing table is a strange items found:

  1. [Shengkui @ APP-SERVER ~] $ route

  2. Kernel IP routing table

  3. Destination Gateway Genmask Flags Metric Ref Use Iface

  4. 172.21.73.0 * 255.255.255.0 U 0 0 0 eth0

  5. 169.254.0.0 * 255.255.0.0 U 0 0 0 eth0

  6. default 172.21.73.253 0.0.0.0 UG 0 0 0 eth0


There are actually a project of 169.254.0.0, the routing table entries is doing, come from?

After I find information, and finally understand that this project is: Zero Configuration Network (ZEROCONF). ZEROCONF also called the IPv4 Link-Local (IPv4LL) and Automatic Private IP Addressing (APIPA). It is a dynamic configuration protocol, the system may be connected to the network through it.

Many Linux distributions default installation of the service, when the system can not connect DHCP server, it will attempt to obtain an IP by ZEROCONF.

In CentOS5.x, the route of entry ZEROCONF is added to the routing table in the following startup script.
/etc/init.d/network calls the / etc / sysconfig / network-scripts / ifup-eth script, ifup-eth script adds ZEROCONF routing entries, the code is as follows:

  1. # Add Zeroconf route.

  2. if [ -z "${NOZEROCONF}" -a "${ISALIAS}" = "no" -a "${REALDEVICE}" != "lo" ]; then

  3. ip route replace 169.254.0.0/16 dev ${REALDEVICE}

  4. be


That there is no way to disable ZEROCONF it?
You can accomplish this by adding the "/ etc / sysconfig / network" file line "NOZEROCONF = yes".
In fact, any value NOZEROCONF are assigned to the same effect, can be seen from the above code, only it detects whether NOZEROCONF is empty.
Of course, after a revised and "/ etc / sysconfig / network" , you must restart the network takes effect: /etc/init.d/network restart

also associated with a daemon Zeroconf under Linux, is AVAHI, detailed information refer to: http: / /avahi.org.

For more information ZEROCONF can be found at the following website:
http://www.zeroconf.org/
http://dgz.dyndns.org/mediawiki/index.php/HOWTO_Disable_the_zeroconf_route_%28169.254.0.0/255.255.0.0%29