how to make proxmox node use vmbr1 instead of default vmbr0

fekry

New Member
Mar 20, 2025
2
0
1
I have a dedicated public server with single physical port eno1
currently i have
Code:
iface lo inet loopback

iface eno1 inet manual   #Physical active port

iface enx7260520e2e2a inet manual    #usb nic i assume for kvm/ipmi ?

iface eno2 inet manual   #physical port down

auto vmbr0      #default used by pve node and opnsense wan port
iface vmbr0 inet static
        address x.x.x.130/29
        gateway x.x.x.129
        bridge-ports eno1
        bridge-stp off
        bridge-fd 0
#wan

auto vmbr1     #opnsense lan port and I want pve node to use this port instead so not have public access
iface vmbr1 inet manual
        bridge-ports none
        bridge-stp off
        bridge-fd 0
        bridge-vlan-aware yes
        bridge-vids 2-4094
#lan

auto vmbr2    #opnsense lan2 port
iface vmbr2 inet manual
        bridge-ports none
        bridge-stp off
        bridge-fd 0
        bridge-vlan-aware yes
        bridge-vids 2-4094
#lan2

source /etc/network/interfaces.d/*

I want proxmox node to get a local ip from opnsense using dhcp on vmbr1, i read online that proxmox uses vmbr0 by default, can i change that so it uses vmbr1 instead ?
if not possible to change default vmbr0 can i just change everything to make vmbr0 not bridged to physical eno1 port then make vmbr0 bridged to virtual network card of opnsense vm lan port that has dhcp, and then remove the bridge of eno1 from vmbr0 to vmbr1 which will be the wan port of opnsense VM ?

what is best way to do this ? i also read about SDN but still not sure how they would work out and still reading about them.

I already have vpn access to local network of opnsense so i can access pve admin page and other vm when i am succesful
 
Proxmox does not use DHCP for network configuration.

You could remove the IP configuration from vmbr0 and add a local IP on vmbr1 and also point the default gateway to the opnsense VM.

You just have to make sure that these changes happen so that Proxmox is still reachable (via opnsense).
 
  • Like
Reactions: fekry
Yes, you can use vmbr1 instead of vmbr0 for management, you just need remove IP addresses from vmbr0 and then change vmbr1's setting let get IP from DHCP server, all can be done from WebUI. And remember unclick "VLAN Aware" because IP will belongs to default vlan1.
Code:
auto vmbr1
iface vmbr1 inet dhcp
        bridge-ports none
        bridge-stp off
        bridge-fd 0
You can reference following discuss.
 
  • Like
Reactions: fekry
thank you both turned out to be very easy, i read online that proxmox defaults to vmbr0 which was wrong it defaults to any vmbr that has a working ip address set, i tried dhcp but it didnt work but for now i just set a static ip address and its all working as i needed.
Thank you again