One nic to multiple bridges

antonio_ciaccia

New Member
Feb 12, 2024
5
0
1
Hi all, I am trying to configure my proxmox server network so that I can split VM and CT. Unfortunately with poor results.
This is my configuration. If anyone can help me out, I would be very grateful. PS: I only have one NIC.

Please, can someone help me?

Code:
auto lo
iface lo inet loopback

iface enp0s31f6 inet manual

auto vmbr0
iface vmbr0 inet static
    address 192.168.0.250/24
    gateway 192.168.0.1
    bridge-ports enp0s31f6
    bridge-stp on
    bridge-fd 0

auto vmbr1
iface vmbr1 inet static
    address 192.168.1.1/24
    gateway 192.168.1.1
    bridge-ports none
    bridge-stp on
    bridge-fd 0

# Bridge per i CT
auto vmbr2
iface vmbr2 inet static
    address 192.168.2.1/24
    gateway 192.168.2.1
    bridge-ports none
    bridge-stp on
    bridge-fd 0
    
source /etc/network/interfaces.d/*
 
What about a OPNsense VM working as a router, routing between your different subnets? You then don't need a physical NIC on each bridge and just a virtual NIC of that router VM attached to each bridge. You could also turn PVE into a router. See here for some examples: https://pve.proxmox.com/wiki/Network_Configuration#sysadmin_network_routed
Hi Dunuin, thank you for your response. I think I will try the solution you made me see. I was initially planning to separate the various networks between VM and CT.
I will let you know if it works correctly and if I need any help (I am new to this).

Thanks anyway