I am a new OpenWrt user and thus member of the forum. I hope that you can help me further...
I have read everything I could find on the forum and on the web as well but could not find the solution.
My issue is that I get an IP address via DHCP on WLAN but not on LAN despite being both on the same vlan (10), neither on the router itself nor on the switch. Thus no internet and no access to the router nor the switch. I can only connect via LAN if I set a fixed IP as 192.168.10.x.
On WLAN everything works...
My goal is to have everything on vlan 10 for my network except Iot and guests.
Note: IoT vlan is not in use currently, it is just to set the base for my future installation.
I have a "router on a stick" configuration :
MANAGED SWITCH (Zyxel GS1200-8) downstairs connected to ONT and to LAN
fixed IP 192.168.10.2, management interface only from vlan 10
LAN 1: vlan 10 untagged, pvid 10
LAN 2: vlan 10 tagged. vlan 100 tagged, vlan 20 tagged, vlan 30 tagged, pvid 999 (999 is not used elsewhere. it is just to ensure that only tagged traffic is allowed)
Indeed, the screenshot is from the switch. I can access via WLAN.
I set 192.168.10.1 for the router since all my devices are on vlan 10 and I want to be able to access LuCI from any of them.
Regarding wifi, don't use sae-mixed as it causes more problems that it solves. Use either WPA2 (psk2) or WPA3 (sae). Obviously this should be changed for all of your APs.
Anyway, after you make the changes to the network config file, restart the router and test again. It should start working as expected, assuming that the DHCP config is correct (you didn't share that yet).
If this doesn't fix the issues, please post the updated network file as well as the DHCP file.
Thank you for your help. I modified the configuration as indicated but it still does not work
I have just added an unused vlan on lan 1 as I did on the switch and advised on the DSA page of openwrt.org. I tried with and without so does not seem to be the problem.
The only way to access the router or internet is by setting a manual IP4 address on vlan 10.
Even there some websites are not accessible. It seems that I have a DNS issue. I paused Adguard home but no changes.
In the overview in LuCI there are no DHCP leases somehow only DHCPv6...
In my client I indeed only see IPV6 addresses on both LAN and wifi.
Shall I delete the WAN6 since my ISP only provide me an IPV4 address ?
Furthermore the wifi did work yesterday but today somehow not anymore. It seems since the 12h lease expired.
Here the new network config:
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 'fdb8:3a5f:d285::/48'
option packet_steering '1'
config device
option name 'br-lan'
option type 'bridge'
list ports 'lan1'
list ports 'lan2'
list ports 'lan3'
list ports 'lan4'
list ports 'lan5'
config interface 'lan'
option device 'br-lan.10'
option proto 'static'
option ipaddr '192.168.10.1'
option netmask '255.255.255.0'
option ip6assign '60'
config interface 'wan'
option device 'br-lan.100'
option proto 'dhcp'
option vendorid 'neufbox_NB6V-XXXXXXXXXXXXX'
config interface 'wan6'
option device 'br-lan.100'
option proto 'dhcpv6'
option reqaddress 'try'
option reqprefix 'auto'
option norelease '1'
config bridge-vlan
option device 'br-lan'
option vlan '10'
list ports 'lan1:t'
list ports 'lan2:u*'
list ports 'lan3:u*'
list ports 'lan4:u*'
list ports 'lan5:u*'
config interface 'iot'
option proto 'static'
option device 'br-lan.20'
option ipaddr '192.168.20.1'
option netmask '255.255.255.0'
config interface 'guest'
option proto 'static'
option device 'br-lan.30'
option ipaddr '192.168.30.1'
option netmask '255.255.255.0'
config bridge-vlan
option device 'br-lan'
option vlan '20'
list ports 'lan1:t'
config bridge-vlan
option device 'br-lan'
option vlan '30'
list ports 'lan1:t'
config bridge-vlan
option device 'br-lan'
option vlan '100'
list ports 'lan1:t'
config bridge-vlan
option device 'br-lan'
option vlan '999'
option local '0'
list ports 'lan1:u*'
This port does not have an untagged network, except for this one which doesn’t go anywhere. Make sure you’re connecting via the other ports or that you are connected to vlan10 via your external ap/switch.
Remove the last 4 lines. These are invalid and will cause the dhcp server to fail.
You may actually need to specify options 3 and 6 due to the fact that you’ve modified your dns with something non-default (doh/dot/Adblock/adguard?).
I am not sure to understand: do you mean deleting the last 4 lines of the dhcp ‘lan’ config or setting options 3 and 6 ? If the latter, what should I write with regards to Adguard Home ?
I opted for option 2 and it did the trick. Thank you !
One more question though: I have set in the DHCP settings a range of IP addresses from 100 to 150 (offset from the network address) so the range shall be 101 to 151 but some of my clients leases are outside, actually above, this range. Do I misunderstand this setting ?