PDA

View Full Version : static route steps


jp498
10-14-2008, 07:46 AM
I have been searching how to do a static route on an NS5. It has 3.1.1 firmware on it.

http://forum.ubnt.com/forum/viewtopic.php?t=1122&highlight=static+route

I can do it, but not make it survive a reboot.

I used vi to create a /etc/rc.d/rc.poststart file containing
/sbin/route add -net 10.10.1.0 netmask 255.255.255.0 gateway 10.10.0.3

usually I have to chmod a file before it works as a script, but chmod is not present on the NS5. I can sh rc.poststart and it creates the route.

Then I did a cfgmtd -w and used the web interface system tab to reboot it. After it comes back up the rc.poststart file is gone and the route is not present.

What do I need to do to make this persistent?

I would suggest this be added to the GUI at some point. I like linux CLI and don't mind using it for more things if the CLI were better documented for NS. Thanks!

Update. I have tried putting the file in /etc/persistent with no luck either.

http://www.midcoast.com/~jp/staticroute.png

UBNT-Mike.Ford
10-15-2008, 02:58 PM
Hey Jason,

Keep an eye out for a new release of the firmware that will allow you to do this grom the GUI.

Thanks,

don.marshall
05-20-2009, 05:00 PM
Hey Jason,

Keep an eye out for a new release of the firmware that will allow you to do this grom the GUI.

Thanks,


Any news about when this new release with static route config in GUI will be coming???

skyhook
05-20-2009, 10:16 PM
...at this time, only via scripting: http://wiki.ubnt.com/wiki/index.php/Manual_Routes

bgoode
05-21-2009, 07:59 AM
...at this time, only via scripting: http://wiki.ubnt.com/wiki/index.php/Manual_Routes

The script is helpful but when do you expect the static route add ability in the GUI as hinted at in the previous posts???

UBNT-Mike.Ford
05-26-2009, 02:53 PM
Hy Guys,

I have asked my software guys for an update.

Thanks,

Mike

CzechEnglishFrenchGermanItalianPolishPortugueseRussianSpanish
Thanks to vBET 3.5.4 you can enjoy automatic translations