CentOS / RHEL: Remove Routes / From the System

How do I disable the route / 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. 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 U     0      0        0 eth1 U     0      0        0 eth0     U     1002   0        0 eth0     U     1003   0        0 eth1       UG    0      0        0 eth0         74.8x.yy.zz         UG    0      0        0 eth1

Every time the server or Linux desktop boots, the zeroconf route 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:


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
# ip route

Posted by: SXI ADMIN

The author is the creator of SXI LLC and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.