Computer Scientist, Graduate Student, and Geek

Tag: route

Deleting a Route

February 09, 2011

Use the route command on Linux to view and delete entries from the routing table. To remove a route for a specific subnet, use the command:

route del -net DST netmask MASK

replacing DST with the subnet IP and MASK with the subnet mask. For example, to delete a route for the subnet 169.254.0.0/16, run the command:

route del -net 169.254.0.0 netmask 255.255.0.0

Categories: Linux, Networking

Tags: route, subnet