VLAN differences between routers

I have 2 routers on my network -

  • Netgear R7800 (IPQ806x) that is main router
  • D-Link DIR-2640 (mt7621) AP mode

Both on OpenWRT 22.03.2.

On the R7800, I see VLAN options in Luci under "Network->Switch" and have successfully setup my VLANs there.
On the DIR-2640, that option does not exist. I do see VLAN filtering options under the Bridge device ("Network->Interfaces->Devices->br-lan->Configure...->Bridge VLAN filtering"). I also see that option in the R7800, but it's all blank, which leads me to believe they are seperate.

How come the D-Link doesn't have the "Network->Switch" option in luci? Will the bridge VLAN filtering work just the same?

DIR-2640 output:

ls -l /sys/class/net
lrwxrwxrwx    1 root     root             0 Oct 14 15:44 br-lan -> ../../devices/virtual/net/br-lan
lrwxrwxrwx    1 root     root             0 Dec 31  1969 eth0 -> ../../devices/platform/1e100000.ethernet/net/eth0
lrwxrwxrwx    1 root     root             0 Dec 31  1969 lan1 -> ../../devices/platform/1e100000.ethernet/mdio_bus/mdio-bus/mdio-bus:1f/net/lan1
lrwxrwxrwx    1 root     root             0 Dec 31  1969 lan2 -> ../../devices/platform/1e100000.ethernet/mdio_bus/mdio-bus/mdio-bus:1f/net/lan2
lrwxrwxrwx    1 root     root             0 Dec 31  1969 lan3 -> ../../devices/platform/1e100000.ethernet/mdio_bus/mdio-bus/mdio-bus:1f/net/lan3
lrwxrwxrwx    1 root     root             0 Dec 31  1969 lan4 -> ../../devices/platform/1e100000.ethernet/mdio_bus/mdio-bus/mdio-bus:1f/net/lan4
lrwxrwxrwx    1 root     root             0 Dec 31  1969 lo -> ../../devices/virtual/net/lo
lrwxrwxrwx    1 root     root             0 Dec 31  1969 wan -> ../../devices/platform/1e100000.ethernet/mdio_bus/mdio-bus/mdio-bus:1f/net/wan
lrwxrwxrwx    1 root     root             0 Oct 14 15:44 wlan0 -> ../../devices/platform/1e140000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/net/wlan0
lrwxrwxrwx    1 root     root             0 Oct 14 15:44 wlan1 -> ../../devices/platform/1e140000.pcie/pci0000:00/0000:00:01.0/0000:02:00.0/net/wlan1

R7800 output:

# ls -l /sys/class/net | grep -v virtual
lrwxrwxrwx    1 root     root             0 Dec 31  1969 eth0 -> ../../devices/platform/soc/37200000.ethernet/net/eth0
lrwxrwxrwx    1 root     root             0 Dec 31  1969 eth1 -> ../../devices/platform/soc/37400000.ethernet/net/eth1
lrwxrwxrwx    1 root     root             0 Oct 18 12:06 wlan0 -> ../../devices/platform/soc/1b500000.pci/pci0000:00/0000:00:00.0/0000:01:00.0/net/wlan0
lrwxrwxrwx    1 root     root             0 Oct 19 13:33 wlan1 -> ../../devices/platform/soc/1b700000.pci/pci0001:00/0001:00:00.0/0001:01:00.0/net/wlan1
lrwxrwxrwx    1 root     root             0 Oct 19 13:33 wlan1-1 -> ../../devices/platform/soc/1b700000.pci/pci0001:00/0001:00:00.0/0001:01:00.0/net/wlan1-1

Your dlink uses the new DSA method for configuration while the netgear uses the older swconfig.

1 Like