Forum Discussion
monica_74227
Nimbostratus
Jun 10, 2009outbound iRule help
hey guys, i make a irule to use choose diffrent links as following:
when CLIENT_ACCEPTED {
if { [matchclass [IP::local_addr] equals $::CNC_class]} {
pool ISP-WANGTONG-FIRST...
monica_74227
Nimbostratus
Jun 16, 2009Posted By hoolio on 06/15/2009 8:39 AM
There is a typo: mathclass should be matchclass. Also, you should use parentheses to ensure the logic in LB_SELECTED is correct:
if { ([IP::addr [LB::server addr] equals 221.218.250.62] and [IP::addr [IP::client_addr] equals 12.10.10.2]) or ([IP::addr [IP::client_addr] equals 12.10.10.1]) } {
...
elseif { ([IP::addr [LB::server addr] equals 202.224.233.89] and [IP::addr [IP::client_addr] equals 12.10.10.1]) or ([IP::addr [IP::client_addr] equals 12.10.10.2])} {
Aaron
Thanks
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