r/openstack • u/dentistSebaka • May 26 '25
Flat or vlan regrading external network
I was having a chat with someone about openstack but he mentioned something he said that we should use vlan for production openstack use and flat is used for testing
Is that right?
Also is that the case that i can't connect vms to internet through the second NIC i have that i used it as the external neutron interface?
5
Upvotes
2
u/dasbierclaw May 26 '25
Flat or vlan isn't really an argument, like Ford vs Chevy. Flat is an untagged or "native vlan" network, meaning you only get 1 per provider 'interface' or bridge. If you use a VLAN, you can have multiple provider networks ride that same interface or bridge. There are probably some security implications pushing the preference to VLAN, but flat network types come in handy.
You can definitely use a single interface for management and neutron networks, in which case vlan probably makes the most sense. If you don't create a vlan sub interface for the management IP, you'll need to apply the IP to the OVS bridge.
2
u/prudentolchi May 27 '25
Incorrect!! Both modes are there for you to use when you need them depending on your network architecture and your needs.
1
u/rsm-mrs May 26 '25
This is a key component, its not just flat or vlan you should know also other layers of security pls consult with a Openstack expert before going live , make it in the right way.
1
u/CodeJsK May 27 '25
In my personal experience to deploy POC for my client, they provided me a vlan of public subnet, so I must deploy vlan type for the provider network So, it depend on the network type you design.
4
u/[deleted] May 26 '25
[removed] — view removed comment