[Solved] Problems with VLANs on specific device

Hello,

I have 3 (new) of these routers:

I try to configure a simple VLAN-Setup. But it did not work as expected.
Lastly I endet up with a try to configure it exactly like the example:

But it did not work on all 3 devices.

If I configure the example VLAN setup from above, then
everything works, but after reboot, the ports shotdown and I need to do a soft factory reset
(I tried a hard factory reset with no luck)

I remember that I do that VLAN config severeal years ago and I am sure that this setup
worked befor (maybe 19.x.x or 21.x.x)

Anyone get working VLAN with 4040 with the newest stable release?

regards

Let's see the configs of all three devices:

Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </> " button (red circle; this works best in the 'Markdown' composer view in the blue oval):

Screenshot 2025-10-20 at 8.14.14 PM

Remember to redact passwords, VPN keys, MAC addresses and any public IP addresses you may have:

ubus call system board
cat /etc/config/network

I attached screenshots, because the output do not refelct the settings (becasue of not pressing apply)
But ok, otherwise:

root@OpenWrt:~# ubus call system board
{
	"kernel": "6.6.119",
	"hostname": "OpenWrt",
	"system": "ARMv7 Processor rev 5 (v7l)",
	"model": "AVM FRITZ!Box 4040",
	"board_name": "avm,fritzbox-4040",
	"rootfs_type": "squashfs",
	"release": {
		"distribution": "OpenWrt",
		"version": "24.10.5",
		"revision": "r29087-d9c5716d1d",
		"target": "ipq40xx/generic",
		"description": "OpenWrt 24.10.5 r29087-d9c5716d1d",
		"builddate": "1766005702"
	}
}
root@OpenWrt:~# cat /etc/config/network 

config interface 'loopback'
	option device 'lo'
	option proto 'static'
	option ipaddr '127.0.0.1'
	option netmask '255.0.0.0'

config globals 'globals'
	option ula_prefix 'fd9a:3af4:ef87::/48'

config device
	option name 'br-lan'
	option type 'bridge'
	list ports 'lan1'
	list ports 'lan2'
	list ports 'lan3'
	list ports 'lan4'

config interface 'lan'
	option device 'br-lan'
	option proto 'static'
	option ipaddr '192.168.1.1'
	option netmask '255.255.255.0'
	option ip6assign '60'

config interface 'wan'
	option device 'wan'
	option proto 'dhcp'

config interface 'wan6'
	option device 'wan'
	option proto 'dhcpv6'

root@OpenWrt:~# 

What happens when you hit apply?

LAN ports shut down. If I repower the device it boots shutdown and all LEDs going off. Then I do a soft fact. reset. (same on all 3 devices)

If I let the default bridge and device, and create VLANs then everything worked after apply, but if I reboot I lost the config at all

After you hit apply, do the ports still show link lights?

the ports do not have LEDs on the ports

ok... what about the other side of the connection? if there are LEDs, are those lit? If not, does the software indicate that there is a physical link (often it will get an APIPA 169 address if there is a physical link but the logical link (L2 +) isn't working.

NIC LED on Laptop is off and "ip addr" shows state of the NIC is down

Ok... that shouldn't happen.

Let's do this from the default state:

Create a bridge VLAN:

config bridge-vlan
	option device 'br-lan'
	option vlan '1'
	list ports 'lan1:u*'
	list ports 'lan2:u*'
	list ports 'lan3:u*'
	list ports 'lan4:u*'

Then edit the lan interface to use br-lan.1 instead of br-lan:

config interface 'lan'
	option device 'br-lan.1'
	option proto 'static'
	option ipaddr '192.168.1.1'
	option netmask '255.255.255.0'
	option ip6assign '60'

Restart the router and test.

yes, this worked.

and I do know why: I have forgot to set a primary VLAN (your VLAN 1, the star "*")
Thank you, now my setup work too

fantastic!

If your problem is solved, please consider marking this topic as [Solved]. See How to mark a topic as [Solved] for a short how-to.
Thanks! :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.