I try to delete the route on one of the server
But I am not able to do it
its show the error
# route delete 10.1.88.0 10.37.201.33
delete host 10.1.88.0: gateway 10.37.201.33: not in table
If I add the route also its shows the error message
# route add -net 10.1.88.0 10.37.201.33
add net 10.1.88.0: gateway 10.37.201.33: entry exists
But still its there in netstat -rn
# netstat -rn |grep 10.1.88.0
10.1.88.0 193.172.69.62 UG 1 302
10.1.88.0 10.37.201.33 UG 1 0
Solaris 8 server
what was the issue here. How to resolve the same
Try deleting both routes and re-adding the one you want.
Hey pls chck through below files
/etc/gateways
/etc/defaultrouter
check through what this script does /usr/sbin/in.routed, srry dont have sol8 with me to check through
And routeadm serves as alternative
Try,
# route delete -net 10.1.88.0 10.37.201.33
Don't have solaris here but I think that's the correct syntax
hi bapu
this is proper syntax on solaris
route delete default < GW ip>
Hi,
Your syntax is wrong, as pointed by Juan you have missed -net while deleting the route.
Correct syntax is
route delete -net 10.1.88.0 10.37.201.33
If you look at the output of netstat -nr.
# netstat -rn |grep 10.1.88.0
10.1.88.0 193.172.69.62 UG 1 302
10.1.88.0 10.37.201.33 UG 1 0
The flag G means the route was added with -net option [-net Force the destination to be interpreted as a network], hence in order to delete it you must specify -net while deleting otherwise it will always say not in table.
Regards,
Vishal Aswani