• Increase font size
  • Default font size
  • Decrease font size

How to delete route in linux

 Usage: route [-nNvee] [-FC] []           List kernel routing tables

       route [-v] [-FC] {add|del|flush} ...  Modify routing table for AF.
 
Here's how to delete the routes added in the previous section.
 
[root@localhost]# route del -net 10.10.10.0 netmask 255.255.255.0 gw 192.168.1.1 wlan0
 
The file /etc/sysconfig/network-scripts/route-wlan0 will also have to be updated so that when you reboot the server will not reinsert the route. Delete the line that reads:
10.0.0.0/24 via 192.168.1.1
Last Updated ( Wednesday, 21 October 2009 15:54 )  

Add comment


Security code
Refresh