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.0 with port 0, which uses the following irule
when CLIENT_ACCEPTED {
if{[[IP::local_addr] equals 172.18.200.254]}{pool default-gateway-1}
elseif{[[IP::local_addr] equals 172.18.203.253]}{pool default-gateway-2}
else{pool default-gateway-SNAT}
}
what type of virtual server should the vip 0.0.0.0 be? Can a vip be up without a default pool?
Thanks for your input.
Sheila
- drteeth_127330Historic F5 AccountThere is no need for a default pool as long as a pool is always selected by an iRule. Based on your rule, this virtual should probably be a FastL4 virtual with translate addr and translate service disabled. Alternatively, you should be able to configure an IP Forwarding virtual in the GUI. This is really just a shortcut for the same thing.
- Sheila_Liu_8576
Nimbostratus
Drteeth - unRuleY_95363Historic F5 AccountA couple of things about your actual rule:
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 } }
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