Proxmox VMs connected over bridge not lan?

I am curious if I can connect a one vm (truenas) to another vm (media server). Is this something that can be done? I would like to bypass lan network to reduce lan network traffic if possible.

Doesnt Proxmox keep internal traffic… internal normally?

Two virtual interfaces talking to each other, would have no need to be transmitter further than the internal switch Proxmox creates anyway?

You could create an additional virtual network in Proxmox, and add it as an additional nic only to each VM

But traffic may still flow over existing virtual interface, in the same way it can ignore a 10gig link, and go over a 1 gig link sometimes?

Afaik the vmbr0 only bridges to the physical host and isn’t smart enough to rout internal.

I would create a new linux bridge with no gateway and assign it as a second adapter to the vms.

I did manage to get it working. Create a empty host bridge. Attached to no device. Then add that bridge to both vm and then assigned a ip with no gateway. Direct ip connection now works between vms on the same machine.

You should have a look at Proxmox SDN (included since 8.1):

• Software-defined Network (SDN): With this version the core Software-defined Network (SDN)
packages are installed by default. The SDN technology in Proxmox VE enables to create virtual
zones and networks (VNets), which enables users to effectively manage and control complex
networking configurations and multitenancy setups directly from the web interface at the
datacenter level. Use cases for SDN range from an isolated private network on each individual node
to complex overlay networks across multiple Proxmox VE clusters on different locations. The
benefits result in a more responsive and adaptable network infrastructure that can scale according
to business needs.

1 Like

Are you sure, I thought if two VMs talk over the bridge there is no need to get physical ports involved. But yes you can easily create a second bridge and assign the virtual NICs of your VMs to it.

I successfully did it. It works by creating a host bridge that is not assigned to a physical network device and then add as a second network device to the vms. Then assign a unique ip in the same subnet (not lan ip or subnet) and then bobs your uncle. You do have to assign each machine ip inside the vm but then they can communicate via host bridge and not lan.