View previous topic :: View next topic |
Author |
Message |
shpongle Junior Member
Joined: 07 Nov 2010 Posts: 2
|
Posted: Mon Apr 29, 2013 5:29 pm Post subject: Need to add a static route |
|
|
Hello,
i'm trying to create a static/persistent route.
kernel is 2.6.33.5-smp.
when i execute the following command or configure the route in the webmin interface, it works perfectly but after a reboot the changes are gone.
route add -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.1.250
what is the most efficient way to let this route survive a reboot?
thanks in advance! |
|
Back to top |
|
gerasimos_h Site Admin
Joined: 09 Aug 2007 Posts: 1757 Location: Greece
|
Posted: Mon Apr 29, 2013 6:04 pm Post subject: |
|
|
Edit /etc/rc.d/rc.inet1.conf and add your gateway in
or else you can add your command tin /etc/rc.d/rc.local to run upon boot, I believe webmin do that also for virtual ethernet.
gerasimos_h _________________ Superb! Mini Server Project Manager
http://sms.it-ccs.com |
|
Back to top |
|
shpongle Junior Member
Joined: 07 Nov 2010 Posts: 2
|
Posted: Mon Apr 29, 2013 8:03 pm Post subject: |
|
|
hi,
thanks for the advice, adding this command in rc.local solved the problem!
the first solution was not an option because the gateway of the SMS server had to remain the same (namely the firewall of the site).
192.168.1.250 is a Windows RRAS server that performs the routing to other sites. |
|
Back to top |
|
|