Multiple IP addresses defined on the host for NFS sharing

lee023470

New Member
Mar 18, 2025
1
0
1
My Proxmox server currently has 2 NICs, one is (vmbr0/enp3s0) is used for the Proxmox host and the other NIC is a trunk port (vmbr1/enp4s0) used by the VMs which set at VLAN tag. My issue is the host has some ZFS shares defined for which I've turned on NFS sharing (realize probably not best practice). These NFS shares are then mounted by some of the VMs. However, I would prefer to further isolate the host VLAN (192.168.1.0/24) from the VMs VLANs. To do this I would like to have the NFS shares also be available in say VLAN 10 (192.168.10.0/24). I attempted to add an address to vmbr1 i.e. 192.168.10.2/24 with no gateway defined. However, upon applying the changes, I was locked out of the Proxmox host (192.168.1.5) via both my previously working SSH and web UI connections.

In summary, is it possible to define an address for multiple bridges? And if so, why would I be getting locked out of the Proxmox host when trying to define a second IP address?

Code:
auto lo

iface lo inet loopback

iface enp3s0 inet manual

iface enp4s0 inet manual

iface enp5s0 inet manual

auto vmbr0
iface vmbr0 inet static
    address 192.168.1.5/24
    gateway 192.168.1.1
    bridge-ports enp3s0
    bridge-stp off
    bridge-fd 0

auto vmbr1
iface vmbr1 inet manual
    bridge-ports enp4s0
    bridge-stp off
    bridge-fd 0
    bridge-vlan-aware yes
    bridge-vids 2-4094
 
Last edited:
Hey,

this should not be a problem. What is the output of ifreload -avvv after adding address 192.168.10.2/24 to vmbr1? Also, what is ip a after ifreload? Should work anyway, but change iface vmbr1 inet manual to iface vmbr1 inet static if you set an ip.
 
I have a question! if above vmbr1 have bridge-vlan-aware yes and bridge-vids 2-4094 two arguments, if we also added address 192.168.10.2/24 then the IP will belongs to which VLAN? I googled to find following discuss.. may you can reference.