Thursday, 1 September 2011

How to remove a static route in SPLAT without using SYSCONFIG

It's pretty simple:

Consult the routing table to verify the routing information of your to-be-deleted route with one of the two following commands:
route | grep ip_of_your_route
netstat -nr | grep ip_of_your_route

An example is below:
netstat -nr |grep UGH    0 0        0 eth5

Delete the route (help for the command can be found with 'route --help'):
route del -net netmask gw

Verify the route has been deleted (you should not see the original route anymore):
netstat -nr |grep

Save the changes (in case the route was pulled from sysconfig/netconf.C):
route --save


  1. Replies
    1. Just replace "del" with "add"
      route add -net netmask gw

    2. Thanks Rajan, missed this one earlier