LTM

You are currently browsing articles tagged LTM.

F5 LTM VE – TMSH

I noticed that I’m not being consistent in my posts.  I generally go into the TMSH shell by typing ‘tmsh’ at the console prompt.  This kicks you into the TMSH command shell ,which in my opinion, is far easier to use.  Any command from the TMSH shell can be run from the normal command shell by adding ‘tmsh’ in front of it.  For example…

image 
Is the same as…

image 
Just wanted to clarify since I seem to be giving examples in both modes.

Tags: ,

So since I’m such a huge CLI guy I thought that I’d go back through my previous F5 LTM VE posts and do it all through the CLI.  To be honest, Im brushing up on the topic so that I can someday sit the F5 exams.  Not sure when that will be but I’m hoping soon.  So, I deployed the OVA template into VMWare again and I’m going to do the full setup again.  Not as much explanation this time but I’ll walk through it.

Management IP
Boot the VM up, log in with default credentials, launch the config wizard, setup your management IP.

License
Fire up a SSH connection to the management IP you configured.  At the command prompt enter the following command…

get_dossier –b <Your Registration Key>

This will kick out the dossier file.  Copy the dossier, browse over to activate.f5.com, select the activation method you are looking for, and enter your dossier.  After accepting the terms you should get a license file kicked back to you that looks something like this…

image

Copy the entire text contents of the text box and head back to your SSH session.  Edit the contents of /config/bigip.license with vi…

vi /config/bigip.license

Its a new file so go into insert mode and past the contents.  Write the file and then issue the following command to restart the BigIp processes

bigstart restart

You should notice that your prompt changed from ‘NO LICENSE’ to ‘INOPERATIVE’ after the restart.  That’s a good sign.

image

Hostname
tmsh modify sys global-settings hostname LTM2.interubernet.local

Create VLANs
tmsh create net vlan external interfaces add {1.2}
tmsh create net vlan internal interfaces add {1.1}

Create Self IPS
tmsh create net self 10.20.20.40/24 vlan external
tmsh create net self 192.168.1.40/24 vlan internal

Create HTTP_POOL Pool
tmsh create ltm pool HTTP_POOL load-balancing-mode round-robin members add {192.168.1.41:80 192.168.1.42:80 192.168.1.43:80}

Create HTTP_TEST Virtual Server
tmsh create ltm virtual HTTP_TEST destination 10.20.20.40:80 profiles add {tcp http} pool HTTP_POOL snat automap

Save the config
tmsh save sys config

And that’s it!  You should be able to hit 10.20.20.40 and see round robin traffic between the three web servers.

Tags: ,

So I’m quickly falling in love with F5 and iRules, but writing them was sort of a pain.  I wasn’t good at catching typos and syntax errors on the fly and pasting the code into the LTM, saving it, and it kicking back some cryptic error message about your typos was a little maddening.  So I thought I’d do some googling and check out what I found…

The F5 iRule Editor! (Click here for site)

How awesome is this!  Once installed the app connects to your LTM in one easy step…

image

After connecting to the LTM it loads all your current iRules for editing and allows you to create new ones through it editor and upload them to the LTM.  I literally just installed the app, but my favorite part at this moment is the fact that the editor is what I call ‘command context aware’.  Check this out..

image 
All I Did was type ‘HTTP::’ and the context menu came up with all of the options I can use on the HTTP object.  Awesome!

Well I’m sure there will be more to come on this as I explore but I thought I’d share right away.  More to come soon!

Tags:

« Older entries § Newer entries »