01-16-2008 05:22 AM
Hi guys,
I need LB something like this in routed mode:
first data flow:
[client]->[vip1-c(css)]->[www1/www2]
and second (backend) flow is:
[www1/www2]->[vip2-c(css)]->[www3/www4]
vip1,2-c = VIP address on client side
www1,2,3,4 = all servers are in the same VLAN
problematic is second data flow (www1/2 -> vip2 -> www3/4(because www3/4 are in the same VLAN as www1/2).
I have two solution for this:
1. migrate www1/2 and www3/4 to the independent VLANs (this can be design problem in existing topology)
2. communication from www1/2 with destination to www3/4 translate to IP address located on the CSS using group, but I'm not sure if it's possible, or how it's possible to configure on the CSS.
group gr1
add service www1
add service www2
add destination service www3
add destination service www4
vip address ip-from-client-side(for example vip2-c)
active
it's possible to use this configuration?
martin
01-16-2008 05:58 AM
The group is a good solution.
However, the way it was configured is incorrect.
You either specify the source or destination.
So, if you want to nat all traffic from www1 and www2 you leave the 'add server www1' commands and remove the 'add destination service www3'.
Or you can nat all traffic going to www3 and www4. In this case, you remove the 'add service www1' and keep the others.
Another way of doing this would be to remove all 'add ..' commands and use an acl to specify when to use the group using the option 'sourcegroup gr1' inside the acl.
Gilles.
01-16-2008 06:28 AM
thanks gilles,
I forgot an acl with group option. thanks.
martin
01-16-2008 08:47 AM
Gilles,
I have one guestion about using acl with group option (www1 and www3 are in the same vlan).
data flow: www1 -> vip -> www3
src address will be www1 and dst addr in the acl will be vip address? that means, *source address* (www1) for the backend communication (css -> www3) will be translated. right?
or dst address should be www3? (I think, first example is right and this isn't).
martin
01-17-2008 12:24 AM
the acl are always applied inbound.
So the dst should the VIP.
Also, when matching a vip, use the option "content" instead of using the ip address.
ie:
acl 1
clause 10 permit any
Gilles.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: