Forum Discussion
Sheila_Liu_8576
Nimbostratus
Jul 01, 2005setting up a 0.0.0.0 virtual server with irule
I'm new to irules and pulling my hair to get this working...
in a two armed design, with multiple external and multiple internal interfaces:
setup a virtual server 0.0.0...
unRuleY_95363
Jul 06, 2005Historic F5 Account
A couple of things about your actual rule:
1) You will want to use the IP::addr command to compare your addresses
2) You want to be careful with whitespace separating statements, otherwise Tcl may get confused about which arguments are which.
Try this:
when CLIENT_ACCEPTED {
if {[IP::addr [IP::local_addr] equals 172.18.200.254]} {
pool default-gateway-1
} elseif {[IP::addr [IP::local_addr] equals 172.18.203.253]} {
pool default-gateway-2
} else {
pool default-gateway-SNAT
}
}
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