Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

which file are the routes stored in

Status
Not open for further replies.

hcclnoodles

IS-IT--Management
Jun 3, 2004
123
GB
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
 
Check /etc/defaultrouter, I think there is might be a file called /etc/gateways as well. You should also check your /etc/rc?.d directories for hard coded entries.
 
Have you tried editing /etc/defaultrouter ?

Alan Bennett said:
I don't mind people who aren't what they seem. I just wish they'd make their mind up.
 
Too fast on the return key for me coffeysm!

Alan Bennett said:
I don't mind people who aren't what they seem. I just wish they'd make their mind up.
 
/etc/defaultrouter contains the ip address of my default gateway only, the "route add -net ....." commands arent in there.

when I type "route add -net blh blah" it adds it to my routing table but it must store it in a file so its there when it next boots

stuff thats hard coded in rc*.d isnt really what im looking for, im after the file that dynamically gets updated when you add a route

cheers
 
As far as I know, there isn't necessarily anything that is 'dynamically updated'. If you do have hard codings in your rc*.d directories, these are what will be picked up when a reboot takes place.

Alan Bennett said:
I don't mind people who aren't what they seem. I just wish they'd make their mind up.
 
If you are looking to keep a route entry when your system reboots, you will have to add that command to a startup script.
 
Sorry - just to clarify my 'anything' above. I meant in terms of physical files, not the OS (or kernel) itself.

Alan Bennett said:
I don't mind people who aren't what they seem. I just wish they'd make their mind up.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top