Network Enhancers - "Delivering Beyond Boundaries" Headline Animator

Tuesday, March 26, 2013

F5 LTM VE – Configuring iRules (CLI)



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 the HTTP_MOBILE_POOLcreate ltm pool HTTP_MOBILE_POOL load-balancing-mode round-robin members add {192.168.1.41:81 192.168.1.42:81 192.168.1.43:81}

Create the iRule DETECT_DEVICE_TYPEEnter this command from tmsh to enter the editor…
edit ltm rule DETECT_DEVICE_TYPE
Then you should see something like this…


image
Build your iRule within the curly brackets of the ‘modify’ statement. When you are done it should look like…
image

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 iRulemodify 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


 

No comments:

Post a Comment

My Blog List

Networking Domain Jobs