• Increase font size
  • Default font size
  • Decrease font size
delete route

 To delete a route from Windows routing table, follow these steps:

 
Click Start -> Run, and enter Cmd, and then press Enter to open a command prompt window. In Windows Vista or Windows 7, use Start Search instead.
The syntax for the route command to delete a routing table entry is:
route delete [destination]
 
For example,
 
route delete 172.16.10.254
 
Press enter after entering the command to delete and remove a route.
After deletion, view the routing table to verify that the correct routing table rule was deleted.
 
 

 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
 

 Delete a route

To delete a route, enter:
# route delete dest gateway
# route delete myhost myrouter

# netstat -nr | grep 10.252.14
10.252.14.16         10.251.229.254        UG       1      3
10.252.14.0          10.251.229.254        UG       1      1
#
# route delete -net 10.252.14.0 10.251.229.254
delete net 10.252.14.0: gateway 10.251.229.254: not in table
 
 

Login Form