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

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

  1. Run the command route -n to view the current routing table. This will show all the routes that are currently configured on the system.
  2. To remove the specific route, use the command route del -net 169.254.0.0 netmask 255.255.0.0. This will delete the route for the specified subnet from the routing table.
  3. Verify the route has been removed by running the command route -n again.

It is important to note that this command will only delete the route, it will not prevent the subnet from being added again in future. If you want to prevent the subnet from being added again, you can configure your network settings to not use that subnet.

Leave a Comment