Forum Discussion
RicFer
Nimbostratus
Dec 03, 2013Howto - Add a bunch of Static Routes
Hi Community,
We are having a big network change and have to add some static routes on our BIG-IP LTM (Vers 11.2.1) e.g. about 32 Routes.
Question: is there a smart way we can achieve this in a fast...
uni
Altocumulus
Dec 03, 2013Shell is the fastest way. Create the commands in a text editor and paste them in when you are ready. e.g.
tmsh create net route 10.1.1.0 { gw 10.1.1.1 network 10.1.1.0/24 }
tmsh create net route 10.1.2.0 { gw 10.1.2.1 network 10.1.2.0/24 }
Alternatively, and my preferred technique, is to have the config all ready and merge it in. For example, create a file routes.txt:
net route 10.1.1.0 { gw 10.1.1.1 network 10.1.1.0/24 }
net route 10.1.2.0 { gw 10.1.2.1 network 10.1.2.0/24 }
then use "tmsh load sys config merge file routes.txt" when you are ready. The nice thing about that is you can check your change in advance without applying it using the verify option:
tmsh load sys config merge file routes.txt verify
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects