Forum Discussion
Anas_A__Hijjaw1
Nimbostratus
Oct 21, 2020iRule to check member status and do LB based on that
I have two sources A & B, one vertual server with a pool of two members X & Y I want source A to send traffic to member X, source B to send traffic to memeber Y If member X Or Y went down...
Oct 21, 2020
Hi Anas A. Hijjawi,
Can you try this iRule after change IPs, subnets and poolname?
when CLIENT_ACCEPTED {
if { [IP::addr [IP::client_addr] equals 10.11.12.13/32] && [LB::status pool pool_name member 172.16.20.1 80] eq "up" } {
node 172.16.20.1 80
}
elseif { [IP::addr [IP::client_addr] equals 10.12.14.0/24] && [LB::status pool pool_name member 172.16.20.2 80] eq "up" } {
node 172.16.20.2 80
}
else {
pool pool_name
}
}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
