VyOS version: 1.5-rolling-202406060020 (I forgot to mention the version of VyOS.)
Here is my setup:
The screenshot shows VyOS router that will run VyOS podman containers, each behaving as its own router. This allows me to do things such as configuring OSPF that can bridge between routers within each of the containers. What’s physically attached to the VyOS router is my server and my desktop, each having VLANs that gets assigned to its own bridges (br300, br301, etc.). The same goes for my home server.
Here is the snipped config for VyOS:
...
bridge br300 {
member {
interface eth3.300 {
}
interface eth4.300 {
}
}
}
bridge br301 {
member {
interface eth3.301 {
}
interface eth4.301 {
}
}
}
bridge br302 {
member {
interface eth3.302 {
}
interface eth4.302 {
}
}
}
...
bridge br390 {
address 10.210.0.254/24
description "VLab Network"
member {
interface eth3.390 {
}
interface eth4.390 {
}
}
}
bridge br391 {
address 10.210.1.254/24
description "VLab Network"
member {
interface eth3.390 {
}
interface eth4.390 {
}
}
}
...
ethernet eth3 {
hw-id 34:1a:4c:04:16:92
vif 300 {
}
vif 301 {
}
vif 302 {
}
vif 303 {
}
vif 304 {
}
vif 305 {
}
vif 306 {
}
vif 307 {
}
vif 308 {
}
vif 309 {
}
vif 390 {
}
vif 391 {
}
}
ethernet eth4 {
hw-id 34:1a:4c:04:16:93
vif 300 {
}
vif 301 {
}
vif 302 {
}
vif 303 {
}
vif 304 {
}
vif 305 {
}
vif 306 {
}
vif 307 {
}
vif 308 {
}
vif 309 {
}
vif 390 {
}
vif 391 {
}
}
With the setup and the snipped config file in mind, is it possible to assign bridges to podman containers so I can perform routing within the containers? Or am I better off putting VyOS in its own VM and setup additional VMs for virtual routing setups? The reason why I’m going for this is because I want to setup some make-believe companies that make use of Windows Server Cores in separate VLANs in my server along with running Windows 10/11 VMs in virtual machines in my desktop.
Update as of 9:30 PM EST: Know what? I don’t like starting my first thread just to answer my own question. Regardless, it does seem that Podman does not support binding to a specific bridge interface and I had a look through this article:
Well, so much for running a couple of VyOS routers within the main VyOS. I’m leaving this thread here in case someone might ask questions about assigning pod containers to a bridged interface.