I previously had WIFI and LAN VLANs in unmanaged forward to upstream DHCP servers.
Now, my backup configs no longer work (even if i revert to older openwrt versions).
I am using a comfast e395ax (MT7981AA) AP with the wan getting untagged address for local management. then various vlans for wifi and the lan port.
I reset back to factory and created the below minimalist config to test.
Never the lan nor wifi get an IP. however, if i set up a dhcp server on interfaces the clients do get an ip. i disabled the firewall for testing.
onfig 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 'fd79:5296:bf26::/48'
option packet_steering '1'
config device
option name 'br-lan'
option type 'bridge'
list ports 'lan1'
option bridge_empty '1'
option ipv6 '0'
config interface 'lan'
option device 'br-lan.26'
option proto 'none'
option delegate '0'
config interface 'wan'
option device 'eth1'
option proto 'dhcp'
config interface 'wan6'
option device 'eth1'
option proto 'dhcpv6'
option reqaddress 'try'
option reqprefix 'auto'
config bridge-vlan
option device 'br-lan'
option vlan '1'
list ports 'lan1'
config bridge-vlan
option device 'br-lan'
option vlan '26'
config bridge-vlan
option device 'br-lan'
option vlan '40'
config interface 'wifi'
option proto 'none'
option device 'br-lan.40'
option delegate '0'
config device
option name 'br-lan.26'
option type '8021q'
option ifname 'br-lan'
option vid '26'
option ipv6 '0'
config device
option name 'br-lan.40'
option type '8021q'
option ifname 'br-lan'
option vid '40'
option ipv6 '0'
root@OpenWrt:/etc/config# cat /sys/class/net/br-lan/bridge/vlan_filtering
1
root@OpenWrt:/etc/config# bridge vlan show
-ash: bridge: not found
root@OpenWrt:/etc/config# dmesg | grep -i bridge
[ 1.476667] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
root@OpenWrt:/etc/config# dmesg | grep -i vlan
[ 1.489869] 8021q: 802.1Q VLAN Support v1.8
root@OpenWrt:/etc/config# ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1504 qdisc mq state UP qlen 1000
link/ether 40:a5:ef:0e:1f:79 brd ff:ff:ff:ff:ff:ff
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
link/ether 40:a5:ef:0e:1f:7a brd ff:ff:ff:ff:ff:ff
4: lan1@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-lan state UP qlen 1000
link/ether 40:a5:ef:0e:1f:79 brd ff:ff:ff:ff:ff:ff
13: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
link/ether 40:a5:ef:0e:1f:79 brd ff:ff:ff:ff:ff:ff
14: br-lan.26@br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
link/ether 40:a5:ef:0e:1f:79 brd ff:ff:ff:ff:ff:ff
15: br-lan.40@br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
link/ether 40:a5:ef:0e:1f:79 brd ff:ff:ff:ff:ff:ff
16: phy0-ap0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-lan state UP qlen 1000
link/ether 40:a5:ef:0e:1f:7b brd ff:ff:ff:ff:ff:ff
root@OpenWrt:/etc/config# bridge link show
-ash: bridge: not found
root@OpenWrt:/etc/config#
Hi Peter,
it seems the bug report I referenced goes back even further.
I am using a Comfast E395AX which has an MT7531 switch plus MT7981AA CPU with the architecture below. There is only a single LAN port and single WAN port despite the chip capabilities.
my setup on the wan port was connected untagged to the upstream switch.
my manage network was the untagged ethernet. the wan dhcp received 20.x net
The lan ports are unmanaged as receive 26.x from the vlan26 and pvid 26
The wifi bridge was unmanaged and receive 40.x from vlan40
with swconfig i never had a problem connecting to the APs on the 20.x net
when I first setup after the DSA change, i created a bridge for each network and paired it with a separate vlan for eth1.26, eth1.40.
This seemed to work with the last config backup end 08.25
after the attendsysupgrade, i lost connection to the device. using your guidance above I setup a test environment and added a specific mgmt vlan with a static ip.
I can see the same issue describe in above, in 23.05.04. If eth1 is part of the br-lan bridge, the untagged wan port never gets a dhcp, but all other functionality works.
the setup below only works when eth1 and lan1 are part of the bridge. but dhcp doesn’t
i am doing something wrong? ideally i would like the management on the dhcp address so i don’t have to change my whole 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 'fdc0:a06c:5306::/48'
config device
option type 'bridge'
option name 'br-lan'
list ports 'eth1'
list ports 'lan1'
config bridge-vlan
option device 'br-lan'
option vlan '10'
list ports 'lan1:t'
config bridge-vlan
option device 'br-lan'
option vlan '26'
list ports 'eth1:t'
list ports 'lan1'
config bridge-vlan
option device 'br-lan'
option vlan '40'
list ports 'eth1:t'
config interface 'wan'
option device 'eth1'
option proto 'dhcp'
config interface 'lan26'
option device 'br-lan.26'
option proto 'none'
config interface 'wifi'
option proto 'none'
option device 'br-lan.40'
config interface 'mgmt'
option proto 'static'
option device 'br-lan.10'
option ipaddr '192.168.10.15'
option netmask '255.255.255.0'