How do I disable the route 169.254.0.0 / 255.255.0.0 from CentOS or RHEL 6 Linux server?
zeroconf (Zero configuration networking), is a techniques that automatically creates a usable Internet Protocol (IP) network without manual operator intervention or special configuration servers. 169.254.0.0/255.255.0.0 route is part of zeroconf under RHEL 6 / CentOS 6 or older versions. To see current routing table, enter:
# route -n
Sample outputs:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
74.8x.4y.zz 0.0.0.0 255.255.255.248 U 0 0 0 eth1
10.10.29.64 0.0.0.0 255.255.255.192 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 1003 0 0 eth1
10.0.0.0 10.10.29.65 255.0.0.0 UG 0 0 0 eth0
0.0.0.0 74.8x.yy.zz 0.0.0.0 UG 0 0 0 eth1Every time the server or Linux desktop boots, the zeroconf route 169.254.0.0 is enabled and added to the kernel routing table. To disable zeroconf route under RHEL / CentOS / Fedora Linux, enter:
# vi /etc/sysconfig/network
Append the following directive:
NOZEROCONF=yes
Save and close the file. Reboot the system / server or restart the networking service:
# /etc/init.d/network restart
Verify routing table, enter:
# route -n
OR
# ip route
You should follow me on twitter here or grab rss feed to keep track of new changes.
Featured Articles:
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop













{ 6 comments… read them below or add one }
What are the benefits of disabling this route?
Ask yourself, conversely, what are the benefits of having that route?
How can i set the default gateway be in the last line of routing table?
That is outside of the scope of this article.
However, googling will show you that you edit /etc/sysconfig/network and add the keyword “gateway” like so:
GATEWAY=10.0.0.1
Replace 10.0.0.1 with the default gateway you desire. After, just restart networking. (/etc/init.d/networking restart)
See our faq: Red Hat / CentOS Linux Setting a Default Gateway.
yes i want to red hed software.