virtual Switching between Hosts

Feb 3, 2022
65
6
13
29
Hey there,

maybe I am stupid or I missing something. Idk :D
So i wanted to create a virtual Firewall for testing and sandboxing with some VMs.
I created a Linux Bridge without a port but I have the problem that i cannot reach the vm from a different host even its the same vswitch config.
Is there something I miss? I guess theoretically and only from the logic I need a physical nic to route the traffic between the hosts right?
Can I do that with one nic which is utilized alredy by a different bridge?

Kind regards,
 
if you have a switch that supports VLANs you could span vlan traffic between the hosts
 
Create a VLAN interface on either host, allow tagged traffic on each port on the switch

e.g
Code:
iface eno1 inet manual

iface eno1.5 inet manual

auto vmbr0v5
iface vmbr0v5 inet manual
        bridge-ports eno1.5
        bridge-stp off
        bridge-fd 0

auto vmbr0
iface vmbr0 inet static
        address  10.10.10.10/24
        gateway  10.10.10.1
        bridge-ports eno1
        bridge-stp off
        bridge-fd 0
 
nevermind I could figure it out myself. but for now I face a different problem. I may need a different switch because I use a Netgear one which support VLAN 802.1Q Tagging but If I tag it correctly I can access the Proxmox Host but not the switch anymore and another way around.
So its kind of a mess and I need to figure it out later then.
 
the switch ports assigned to the two proxmox hosts should be left as untagged on vlan1 but should be tagged for vlan5, this shouldn't affect your existing setup.

Once this is done, a vm on one host with a nic assigned to vmbr0v5 should be able to communicate with a vm on the other host, setup in the same way and also in vlan5, on the same subnet.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!