r/openstack • u/myridan86 • Sep 20 '24
Interconnection between datacenters (Multiple Regions)
Hi all,
Guys, this is another question/issue about networks, but maybe, based on your experience, you can help me.
Here I have 3 datacenters geographically connected via layer 2.
What is the best practice to use regarding IP addressing and VLANs for virtualization hosts (hypervisor)?
For example... everything is interconnected via L2, can I leave all hosts in the same subnet and same VLAN or, according to good practices, should I segment these networks?
For example:
Hosts DC1: 10.0.1.0/24 - VLAN 1
Hosts DC2: 10.0.2.0/24 - VLAN 2
Hosts DC3: 10.0.3.0/24 - VLAN 3
However, by segmenting like this, I absolutely need to use a router for communication between hosts.
Or another example. Use the same subnet and VLAN for all virtualization hosts:
Hosts DC1: 10.0.1.10-20/24 - VLAN 1
Hosts DC2: 10.0.1.21-30/24 - VLAN 1
Hosts DC3: 10.0.1.31-40/24 - VLAN 1
I don't know if I was clear enough in my question...
Cheers!
View all comments
Show parent comment
1
u/myridan86 Sep 22 '24
So, theoretically, I would need to use a router to communicate between the subnets, through the datacenters.
This would not have an impact on performance, since, if I have L2 connectivity between the DCs, I would still need to use a router (L3).
host (dc1) -> router (dc1) <-> L2 connection<-> router (dc2) <- host (dc2)
Do you understand?
PS: Of course, if we think about it, we could have a broadcast storm if we don't segment the networks...