Where are routes stored ?

Hi there

When adding a route (or indeed deleting a route) which file is amended ? I am moving a box from one network to another and when it starts up it tries to connect run 'add net 192.x.x.x' etc etc ...but i dont want it to do that

where do I edit these route additions

cheers

If it's a manual addition, check /etc/init.d or /etc/rc2.d and see if there's a local file. The group I was with had a S96local script with specific route additions. You can also just grep the "add net" in the init.d directory to find the file if it's something else.

Carl

plz ,
go to /etc/defaultrouter and check it

right the altered is /etc/defaultrouter. use following commands to flush and add the router entry

route flush <arguments>
route add default <arguments>

if you add a route manualy with "route add ...." no file is altered. if you want this route to become permanent, edit the file /etc/inet/routes.

manually : route add default xx.xx.xx.xx
config file : /etc/defaultrouter ( default not have this file )
dynamic : in.routed :smiley: