Is there a way to add many static routes
-
Hi
I need to add about 100 static routes.
I know how to do it through the GUI, but is it possible to edit a file or are the routes only included in th XML file.
If so if XML is the only way, how to do it? -
@hsv
download a configuration backup (Diagnostic / Backup & Configuration)
edit with notepad++
search for staticroutes
copy/paste respecting the syntax<staticroutes> <route> <network>172.17.0.0/24</network> <gateway>OPT3_VTIV4</gateway> <descr><![CDATA[SRV]]></descr> </route> <route> <network>192.168.10.0/24</network> <gateway>OPT3_VTIV4</gateway> <descr><![CDATA[LAN]]></descr> </route> </staticroutes>
save as a new file,
restore the configuration and rebootor use the GUI,
afaik there is no other way -
@hsv said in Is there a way to add many static routes:
I need to add about 100 static routes.
Just my curiosity cat meowing at me - why? Can you not just summarize the routes?
For example route to 192.168.0/24 and 192.168.1/24 could be routed as just 192.168.0/23
If you have a lot of routes - I would try and summarize as much as possible.. Shoot you could sometimes route 100 with 1 statement, ie 192.168/16 for example..
Or run a routing protocol? So the routes are exchanged?