I personally find the route command one of the most frustrating and difficult commands to use in linux. Below are my attempts to delete the default route pointing to 10.0.37.250, becuase it needs to be repointed.
Code:
loadbal3 ~ # netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
10.0.37.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
10.0.33.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
127.0.0.0 127.0.0.1 255.0.0.0 UG 0 0 0 lo
0.0.0.0 10.0.37.250 0.0.0.0 UG 0 0 0 eth0
loadbal3 ~ # route del 0.0.0.0
SIOCDELRT: No such process
loadbal3 ~ # route del 0.0.0.0 10.0.37.250
SIOCDELRT: No such device
loadbal3 ~ # route delete 0.0.0.0 dev eth0
SIOCDELRT: No such process
loadbal3 ~ # route delete 0.0.0.0 gw 10.0.37.250
SIOCDELRT: No such process
loadbal3 ~ #
If anyone could give me a pointer on the correct syntax, I would appreciate it.
Thanks!
DT