Defaultrouter not changing !!

Hi experts

I have to change the default router of some system

I tried changing by deleing the existing route by following line

#route delete default 172.24.2.101

then I added executed the below line to add the new router

#route add default 172.24.1.254

as per the above line the file /etc/defaultroute should be changed and it should show me the latest route ip which is 172.24.1.254 however still its showing me the ip 172.24.1.101 .

Please suggest as what could be reason .

Depends on the OS. What system are you on? On some platforms you would change the file /etc/defaultroute rather than vice versa.

Output from /etc/release

Please change the /etc/defaultrouter file manually

Please see the output of netstat

I can use the system from telnet . do you think we need manual change to /etc/defaultrouter file

if you do not set /etc/defaultrouter you will lose your default route on next reboot.

Please use below comamdn

kill -HUP inetd

And restart the inetd daemon after killing it.
Check the netstat output for the default gateway

update the new ipaddress at /etc/defaultrouter manually and then reboot the machine. next time you will see new default router

Thanks. i did that and its working fine .