You are currently browsing the archive for the F5 category.

So I’ve been kind of rushing through these but I think Im getting my point across.  CLI (in my opinion) is the fastest and easiest way to configure a lot of these items if you are comfortable with it.  Lets look at configuring iRules.

create ltm pool HTTP_MOBILE_POOL load-balancing-mode round-robin members add {}

Create the iRule  DETECT_DEVICE_TYPE
Enter this command from tmsh to enter the editor…
edit ltm rule DETECT_DEVICE_TYPE
Then you should see something like this…
Build your iRule within the curly brackets of the ‘modify’ statement.  When you are done it should look like…


It’s VI so do your write quit to save.  When you get back to tmsh it will prompt you again to make sure you want to save it.  When you try to do so it will also hit you with any syntax errors you have and make you fix them before saving.

Modify the Virtual Server to specify the iRule
modify ltm virtual HTTP_TEST rules {DETECT_DEVICE_TYPE}

Add HTTP monitors to both pools (Just for fun)
modify ltm pool HTTP_POOL monitor http
modify ltm pool HTTP_MOBILE_POOL monitor http

Tags: ,

Same as the last post, this one is pretty easy to configure from the CLI.  Check the status with ‘list ltm virtual HTTP_TEST persist’. 

As you can see there is no profile applied. 

Apply the default persistence profile with this command.

tmsh modify ltm virtual HTTP_TEST persist replace-all-with {source_addr}

Then take a look at the profile again…

Pretty easy isn’t it?  iRules are up next.

Tags: ,

In this post, we’ll be using the CLI to add monitors to the nodes in the pool.  This will be a much shorted post than the first time we did this with the GUI.  First off, lets check the status of the nodes in the CLI with the ‘tmsh list ltm node status’ command.

As you can see from the output, the nodes are showing a status of unchecked since there isnt a default monitor defined and they dont have an individual monitor defined.  Defining the default monitor is easy with this one command…

tmsh modify ltm default-node-monitor rule icmp

After this has been applied take a look at the status of the nodes again.  As you can see, the status is showing as ‘UP’ once the default monitor has been defined. 


That’s it, next post we’ll look at configuring persistence and iRules. 

Tags: ,

« Older entries