VLAN cascading and dropouts

jdog1

Member
Jan 26, 2023
2
0
6
Hi,
I'm running Proxmox on a mini-pc with 4 i226-v ports.
one of the VMs is runnign OpenWrt, and its job is to cascade a bunch of VLANs (a-la managed switch), that I have on my main network - a device also running OpenWrt.
3 out of 4 NICs are passed through to OpenWrt, and the first one enp2s0 (eth0 in the bottom scheme) is bridged in Proxmox as the network for the rest of the VMs, and as a management port for the Proxmox env.

if I plug a LAN (vlan id 1 on main OpenWrt) device to the x86 port eth2, I start getting dropouts that resolve if I unplug and replug the ethernet cable from eth2, until it happens again within 2-3 minutes.
sometimes the connection recovers on its own, but sometimes it doesn't.

here are the command line network configurations from Proxmox:
Code:
root@fanless:~# cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.1.182 fanless.lan fanless

# The following lines are desirable for IPv6 capable hosts

::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

Code:
root@fanless:~# cat /etc/network/interfaces
auto lo
iface lo inet loopback

iface enp3s0 inet manual
iface enp4s0 inet manual
iface enp5s0 inet manual

auto enp2s0
iface enp2s0 inet manual

auto vmbr0
iface vmbr0 inet static
  address 192.168.1.182
  netmask 255.255.255.0
  gateway 192.168.1.1
  bridge-ports enp2s0
  bridge-stp off
  bridge-fd 0

source /etc/network/interfaces.d/*

this is a rough image of the networking:

da7b1a5107901912016b8bf5db7fb932b4f5a008.png



I've started a discussion on OpenWrt forum, bottom line of which is that the two OpenWrt devices (real device and VM) are configured correctly: https://forum.openwrt.org/t/vlans-across-multiple-openwrt-devices-getting-dropouts/237176

can anyone help me understand the issue? what is the source of these droupouts?
 
Last edited: