Forum Discussion
George_Watkins_
Aug 27, 2010Historic F5 Account
Hi cerpika,
Here are two ways to do the same thing. If you need more than two addresses or so, I'd recommend consolidating them into a datagroup for ease of manageability.
Example 1:
when LB_SELECTED {
if { [[IP::server_addr] != 10.0.0.1] or [[IP::server_addr] != 10.0.0.2] } {
snat automap
}
}
Example 2:
when LB_SELECTED {
switch -glob [IP::server_addr] {
10.0.0.1 -
10.0.0.2 { }
default {
snat automap
}
}
}
Hope this helps,
George