[SOLVED] PVE installed (Dual LAN) in Subnet - How to connect to Mainnet?

down4life

New Member
Nov 6, 2023
3
0
1
Hello everyone,

I have a server with 2 LAN ports. The first is connected to my subnet router (192.168.188.x) and the second is connected to my mainnet router (192.168.178.x).

My goal is to create in PVE VMs which are configured in sub- or in the mainnet.

After installation it looks like expected. The vmbr0 is connected with enp2s0 and I can see the other enp3s0 (which should be LAN Port 2)
Screenshot 2023-11-07 135735.png

Now I want to create the connection for the mainnet, which does not work atm.

Create new Linux bridge (vmbr1) and set as Bridge port enp3s0 with Gateway 192.168.178.1 leads to following error message:
Parameter verification failed. (400)
gateway: Default gateway already exists on interface 'vmbr0'.

Screenshot 2023-11-07 142544.png

But vmbr0 is configured with another gateway, 192.178.188.1.

What am I doing wrong, what am I overlooking? Is my approach wrong and should I do it differently?

Thanks folks!
 
Last edited:
Hi,
The gateway that you are setting here is for proxmox, so that it knows where to route packages outside of your network.
Since there is usually just one default gateway, you can only set one.

The vms can have a different gateway, i.e. if they are in the subnet, 192.168.178.1
 
During creation of a new VM the dialog offers me only the option for the vmbr0 bridge.
1699366187478.png

But I want to create it in the other network (192.168.178.x)
 
Just to make sure, you have now created vmbr1, with enp3s0 as bridge port and without an ip an gateway and it shows up in the network settings of your node, but you can't assign at to your vm?
 
  • Like
Reactions: down4life
Well done, I think that was exactly what I was looking for.

I created vmbr1 and just set the bridge port to enp3s0. I then created a test ubuntu VM using this vmbr1 network. The VM is now created on the mainnet and is visible in the routers network interface (192.168.178.97)
 

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!