How do I freeze my route configurations? They always get reconfigured on reboot.
Every time I reboot I need to do..
Code:
route del default So how do I freeze my route configurations so that they do not change on reboot? I can't seam to find any information on how to do it. :/ |
If you have /etc/rc.d/rc.local you can add those commands into this file and they will run as the very last thing in the system startup process.
If you wanted to add them in with the rest of the networking inititlization, you can add them into /etc/rc.d/rc.inet1 at the end of the file. |
There is no /etc/rc.d/rc.local or /etc/rc.d/rc.inet1, I'm using Debian.
Anyway that doesn't really sound like a solution, more of a workaround. What I would really like to do is to define my routing configuration and keep them that way, it sounds logical to me that I should be able to configure my routing and keep that configuration, I don't really grasp why the routing should be reconfigured on reboot. Is there no way to define the routing without having to do it every time you reboot? |
Im having a problem keeping my gateway
I found this file, I havent restarted yet to find out if it fixed my problem /etc/network/interfaces I know little about route, or what your command does, so this probably isnt what your looking for |
Wordan, could I see your /etc/networks/interfaces file so I can see how you changed it to have a specific gateway?
It might be what I'm looking for, I don't know, does ifconfig use this file at boot time? If not then what? |
Debian woody
Code:
# The loopback interface see ~$ man interfaces I just changed the gateway line |
route add -net fjoltengi netmask 255.255.255.255 gateway 10.9.12.1 eth0
what does this do? |
Sorry, but each time your system boots, it has to re-configure your network interfaces and set up the routing. Unfortunately your startup scripts don't set them up correctly. So it may appear to be a kluge fix, but it is how every system (including non-linux) does it.
I'm not a Debian user, but I believe the default file that sets up the network is /etc/init.d/network You should be able to add your route commands to the end of this file. |
All times are GMT -5. The time now is 10:36 AM. |