i created 2 vlans/selfips; one is internal which connects to server and the other one is external which connects to Agg Switch-A. server’s default gateway is F5. F5’s default gateway is Agg Switch-A. please let us know if i misunderstood anything here.
e.g.
root@B3600-R66-S41(Active)(tmos) list net trunk trunk1
net trunk trunk1 {
cfg-mbr-count 2
id 2
interfaces {
2.1
2.2
}
mac-address 0:1:d7:b3:ab:13
}
root@B3600-R66-S41(Active)(tmos) list net vlan internal
net vlan internal {
interfaces {
trunk1 {
tagged
}
}
tag 4094
}
root@B3600-R66-S41(Active)(tmos) list net vlan external
net vlan external {
interfaces {
trunk1 {
tagged
}
}
tag 4093
}
root@B3600-R66-S41(Active)(tmos) list net self 1.1.1.1/24
net self 1.1.1.1/24 {
allow-service default
vlan internal
}
root@B3600-R66-S41(Active)(tmos) list net self 2.2.2.2/24
net self 2.2.2.2/24 {
allow-service default
vlan external
}
root@B3600-R66-S41(Active)(tmos) list net route default
net route default {
gw 2.2.2.254
}
Can you also calrify the following along with the rest…
a) Are the F5 internal and external VLANs, in same lines as Client and Server VLAN in Cisco CSM?
If yes, then in routed mode, for Cisco, we use to configure the VIP of the virtual server in client VLAN range.
In F5, the VIP sits on the external VLAN range or any other range other than internal and external? I have seen few deployments of F5, where the VIPs sit directly on internet IP range.
a) Are the F5 internal and external VLANs, in same lines as Client and Server VLAN in Cisco CSM? i am sorry i never used CSM, so i am not able to answer it.
In F5, the VIP sits on the external VLAN range or any other range other than internal and external? I have seen few deployments of F5, where the VIPs sit directly on internet IP range.virtual server is able to be listening on any ip range.
In routed mode, if VIP sits on the external VLAN range, i understand it but if its sits directly on internet IP which is not part of external VLAN range, then is it a normal deployment design suggested by F5?
Can you also, please now do the same config for Bridge Mode? I have 1000s of F5 deployed in Bridge mode, so i would appreciate if you show me the above routed mode config in Bridge mode.
i thought bridge mode you said is something like this.
4 Installing a BIG-IP System without Changing the IP Network
as looking at your diagram, i think routed mode is more sense.
In routed mode, if VIP sits on the external VLAN range, i understand it but if its sits directly on internet IP which is not part of external VLAN range, then is it a normal deployment design suggested by F5? i am sorry i might not catch you. anyway, what i want to say is virtual server is able to be listening on any ip range on any vlan. definitely, you are able to enable virtual server on specific vlan.
e.g.
[root@B3600-R66-S41:Active] config tmsh list ltm virtual bar
ltm virtual bar {
destination 2.2.2.10:http
ip-protocol tcp
mask 255.255.255.255
pool foo
profiles {
http { }
tcp { }
}
vlans {
external
}
vlans-enabled
}
if traffic is able to reach virtual server, it is fine. for example, you may have virtual server listening on 3.3.3.3:80 (which does not belong to any vlan) on internal vlan. if client on internal vlan sends request to 3.3.3.3:80 and it can reach bigip (for example, client’s default gateway is bigip), bigip will load balance it.
What is the bigip address in the above config? Is it the self IP of the internal VLAN, 1.1.1.1, and will this also be the default gwy of all servers sitting on the internal vlan?
When the external incoming traffic frome hits the virtual server on, 3.3.3.3:80, while trying to load balance the incoming traffic to the servers in the pool, bigip would change the source ip of the incoming packet to that of its own IP and change the destn ip from VIP,3.3.3.3, to one of the servers in the pool, based on the load balancing method, …Right?
And when servers reply, they would reply to the source IP in the paket as the destn IP, which is the BIGIP IP, and after bigip receives the reply from the server, it would restore the packet source ip to VIP, 3.3.3.3 and destn ip to, actual source IP, right?
bigip would take of routing between the VIP and the internal VLAN range, right?
What is the bigip address in the above config? Is it the self IP of the internal VLAN, 1.1.1.1, and will this also be the default gwy of all servers sitting on the internal vlan?yes
When the external incoming traffic frome hits the virtual server on, 3.3.3.3:80, while trying to load balance the incoming traffic to the servers in the pool, bigip would change the source ip of the incoming packet to that of its own IP you can configure to translate source address (snat) or not. if you do not translate source address, you have to make sure return traffic will send to bigip e.g. pool member’s default gateway is bigip.
and change the destn ip from VIP,3.3.3.3, to one of the servers in the pool, based on the load balancing method, …Right? yes
bigip would take of routing between the VIP and the internal VLAN range, right?if it is not connected subnet, route entry is required (definitely, you are able to configure route in bigip).
I see in your config, that you defined the VLANs as internal and external. Is this must? Or is this a case only in routed mode? routed mode can have one vlan such as one-arm deployment.
What about bridge mode, where all VLANs are in same range? Then also, do we define VLANs as internal and external? you need 2 vlans to bridge traffic between them. you can see there are 2 vlans when configuring vlangroup.
are your access router and servers in the same subnet?
I m seeking to understand how F5 works and behaves in bridge mode, need your help to understand.
In our network, i see that in bridge mode there are 5 VLANs on the F5 pair,and each in different, 172.20.30.x/24;172.20.40.x/24;172.20.50.x/24;172.20.60.x/24;172.20.70.x/24;
and there are more 10 Virtual servers and equal number of pools.
Each virtual server has the VIP on above five ranges, pools are associated with Virtual servers.
Can you please explain, how inbound and outbound traffic gets processed by F5 in bridge mode with above number of VLANs?
if you do not have config such as vlangroupm, l2 forwarding virtual, i do not think it is in bridge mode. when traffic hits virtual, it will be sent to selected pool member based on load balancing algorithm. the pool member returns traffic to bigip and then send back to client.
What is l2 forwarding virtual?it is one of virtual server types. actually, i never used it too.
sol4362: Overview of Layer 2 (L2) forwarding virtual servers
But i do not see the 5 VLANs defined as internal or external anywhere in the config, which is the case in routed mode. right? no, you should have configured vlan. have you checked at local traffic > network > vlans?