Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
SMS Forum Index » SMS User Support

Post new topic   Reply to topic
Need to add a static route
View previous topic :: View next topic  
Author Message
shpongle
Junior Member


Joined: 07 Nov 2010
Posts: 2

PostPosted: Mon Apr 29, 2013 5:29 pm    Post subject: Need to add a static route Reply with quote

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
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1752
Location: Greece

PostPosted: Mon Apr 29, 2013 6:04 pm    Post subject: Reply with quote

Edit /etc/rc.d/rc.inet1.conf and add your gateway in
Code:
GATEWAY=""


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
View user's profile Send private message Visit poster's website
shpongle
Junior Member


Joined: 07 Nov 2010
Posts: 2

PostPosted: Mon Apr 29, 2013 8:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SMS Forum Index » SMS User Support All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

SMS - Superb! Mini Server Project © 2016
Powered by phpBB © 2001, 2002 phpBB Group
iCGstation v1.0 Template By Ray © 2003, 2004 iOptional