how to CentOS / RHEL: Remove Routes 169.254.0.0 / 255.255.0.0 From the System

To remove the route for the 169.254.0.0/255.255.0.0 network from a CentOS or RHEL system, you can use the “route” command with the “del” option.

First, check the current routing table to confirm that the route for the 169.254.0.0/255.255.0.0 network is present:

route -n

Then, remove the route using the following command:

route del -net 169.254.0.0 netmask 255.255.0.0

You can also use the following command to remove the route permanently:

echo "169.254.0.0/255.255.0.0" >> /etc/sysconfig/network-scripts/route-interface

Please note that this will delete the route permanently, it will not be available after a system reboot.

Leave a Comment