[SOLVED] VM can not access internet

griddy

New Member
Sep 24, 2024
9
0
1
Hi guys, I have set up Proxmox with a trunk port connected to my NIC. My management interface has internet access and is accessible over the network. My VLAN gateway and DHCP are working, as I was running Proxmox without a VLAN-aware setup, bound to an access port on a VLAN.

I have changed my configuration to be VLAN aware, but my VMs can not access the VLAN gateway or the Internet. Any help is much appreciated!
Please see my configuration below:
Code:
auto lo
iface lo inet loopback

iface enp4s0f1 inet manual

auto vmbr0
iface vmbr0 inet static
        address 192.168.200.77/24
        gateway 192.168.200.1
        bridge-ports enp4s0f1.200
        bridge-stp off
        bridge-fd 0
# management interface

auto vmbr1
iface vmbr1 inet manual
        bridge-ports enp4s0f1
        bridge-stp off
        bridge-fd 0
        bridge-vlan-aware yes
        bridge-vids 2-4094
# vlans

source /etc/network/interfaces.d/*

Node Network:
1729145662745.png

VM Network:
1729145760017.png

Edit: interface enp4s0f0 removed from config as it is not being used.
 
Last edited:
Did you activate VLAN-aware while the VMs are running? You need to restart the VMs in that case.
 
I have restarted the VMs multiple times. I can see the IP reported on the suppary page for both my VMs.
 
Last edited:
Thank you, This worked perfectly. Here is the working expample:

Code:
auto lo
iface lo inet loopback

iface enp4s0f1 inet manual

auto vmbr0.200
iface vmbr0.200 inet static
        address 192.168.200.77/24
        gateway 192.168.200.1
# management interface

auto vmbr0
iface vmbr0 inet manual
        bridge-ports enp4s0f1
        bridge-stp off
        bridge-fd 0
        bridge-vlan-aware yes
        bridge-vids 2-4094
# all vlans

source /etc/network/interfaces.d/*

The vm or container is bound to vmbr0 with the vlan tag you choose: 100.