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

To remove the route 169.254.0.0/255.255.0.0 from a CentOS or Red Hat Enterprise Linux (RHEL) system, you can use the route command.

Here’s an example of how to remove the route:

route del -net 169.254.0.0 netmask 255.255.0.0

In this example, the route del command is used to delete the route, and the -net option is used to specify the network address (169.254.0.0) and the netmask option is used to specify the subnet mask (255.255.0.0).

This will remove the route from the routing table. Note that the changes made using the route command will be lost when the system is rebooted, so if you need to persist the changes, you will need to add the route del command to a startup script.

Leave a Comment