1833514 Members
6398 Online
110061 Solutions
New Discussion

Re: route add

 
Shivkumar
Super Advisor

route add

Dear Sirs,

I saw one of my colleague adding default gateway by using route add command.

will this be permanent or after reboot the changes would be lost ?

How to make this as permanent change ?

Thanks,
Shiv
4 REPLIES 4
Joseph Loo
Honored Contributor

Re: route add

hi,

to make permanent change, add it to the file, /etc/rc.config.d/netconf follow by a restart of /sbin/init.d/net.

regards.
what you do not see does not mean you should not believe
Muthukumar_5
Honored Contributor

Re: route add

It is permanen to that session. If you logged or it is applicable to other login session. You have to add /etc/rc.config.d/netconf file to keep the setting always.

hth.
Easy to suggest when don't know about the problem!
Muthukumar_5
Honored Contributor

Re: route add

Example default setting:

ROUTE_DESTINATION[0]=default
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]="xx.xx.xx.xx"
ROUTE_COUNT[0]=""
ROUTE_ARGS[0]=""

change xx.xx.xx.xx to your ip-address.

hth.
Easy to suggest when don't know about the problem!
Arunvijai_4
Honored Contributor

Re: route add

Routing table information will be available throught out the session. It will be cleared when you reboot your server. Take a look at

# cat /etc/rc.config.d/netconf

for more details.


-Arun
"A ship in the harbor is safe, but that is not what ships are built for"