[SOLVED] VLAN issue

kazi

Member
Jan 18, 2024
67
1
8
Hi,
I configured the vlan but I can not access from one vlan to other vlan ip. Did I do anything wrong? Here is my config

auto lo
iface lo inet loopback

iface ens3f3 inet manual

iface eno1 inet manual

iface eno2 inet manual

iface eno3 inet manual

iface eno4 inet manual

iface ens3f0 inet manual

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

#VLAN 51
auto vlan51
iface vlan51 inet static
address 172.16.51.201/24
vlan-raw-device vmbr1

#VLAN 54
auto vlan54
iface vlan51 inet static
address 172.16.54.201/24
vlan-raw-device vmbr1


auto vmbr0
iface vmbr0 inet static
address 172.16.60.148/24
gateway 172.16.60.1
bridge-ports ens3f3
bridge-stp off
bridge-fd 0
 
Your #VLAN 54
has iface vlan51 instead of iface vlan54 ?

What is trying to connect, ie: vm to vm, or host to other devices, etc? Are you trying to have the host be the router, or is something else the router between vlans?
 
Same vlan vm can access but if I want vlan51 to vlan54 then VMs are not accessing.
 
What do the vms have as their gateways? It sounds like you want the proxmox host to be the router?
What is:
cat /proc/sys/net/ipv4/ip_forward

You need to set that to 1 if you want proxmox to forward packets between the vlans.