That entirely depends on what interface the route is going to. If the interface itself is always up (br0/VLAN's) then you can use the advanced routing page to create it. If the interface isn't always up (tunnels) then you'll need to use a .if script or possibly the tunnel's config script. I'm not sure if the router will automatically recreate static routes for the WAN port but if it doesn't then it could be put into the firewall script or a .wanup script.
If all else fails you could use a cron job.
You could also use a dynamic routing protocol since that what it's designed for. _________________ Read the forum announcements thoroughly! Be cautious if you're inexperienced.
Available for paid consulting. (Don't PM about complicated setups otherwise)
Looking for bricks and spare routers to expand my collection. (not interested in G spec models)
my Routing is for VPN on interface tap0 between two DD-WRT Routers - sometimes the client gets disconnected
the client automaticaly pushs the route to the server but the route form server to client (i think)can´t be set by OVPN serverscript - so i did set the static route for that
i guess am not able to do that by useing Scripts
Dynamic routing sounds interresting - but i found no Wiki Article on this topic ;(
so i think best noob method is to try to set up a cronjob _________________ wrt54gl V1.1
DD-WRT v23 SP311