Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to create a custom Layer 2 network? #3916

Open
monkey92t opened this issue Apr 14, 2024 · 1 comment
Open

Is it possible to create a custom Layer 2 network? #3916

monkey92t opened this issue Apr 14, 2024 · 1 comment

Comments

@monkey92t
Copy link

In the documentation, there are default Overlay and Underlay networks to choose from. The Overlay network creates a virtual bridge named br-int, while the Underlay network creates a bridge with a custom name (temporarily also called br-int). Subsequently, the eth0 interfaces of the containers created will all be connected to the br-int bridge. If additional interfaces are created using MULTUS, they will also be connected to the br-int bridge, just like eth0.

My goal is to create a separate Layer 2 network for the MULTUS interfaces, where eth0 remains connected to the default br-int, while the MULTUS interfaces are connected to a custom bridge. In other words, I want to create a bridge similar to br-int called br-int2, which will manage all MULTUS interfaces. The eth0 interface will be used for the default container management network, while the br-int2 interface will be responsible for the business network.

I can create multiple ProviderNetworks, which will create multiple bridges, and this seems to achieve my goal. However, I'm not sure how to specify different ProviderNetworks for pods (VMIs). By default, all container interfaces are connected to br-int. How can I specify that MULTUS interfaces should be connected to other ProviderNetworks while eth0 remains in the default network?

@zhangzujian
Copy link
Member

Actually, all ovs interfaces are connected to br-int, including underlay. The difference is that underlay interfaces are programmed to be connected to underlay bridges logically.

If you want to use underlay for the attachment networks, you can create an underlay subnet and set its .spec.provider as documented, such as nad-name.nad-ns.ovn and refer this provider name in multus network attachment definition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants