Mario_Eury_6049
Dec 18, 2006Nimbostratus
Switch Command
I'm trying to use the "switch" syntac command to load balance traffic based on a client's subnet/network address. I have a list of subnets that would need to be listed to load balance to the test_pool and everything else would go to the default pool. Here is what I have.
when CLIENT_ACCEPTED {
set IPADDR [IP::remote_addr]
switch $IPADDR {
192.168.100.0/255.255.255.192
{
pool test_pool
}
default
{
pool default_pool
}
}
}
The actual "syntac" of this rule works, but I can't seem to get the "functionality" to work. Can anyone help with this.