Cant get IP while connecting through DumbAP

Hi!
I'm trying to solve this problem for a few days.
As the title mentioned, it seems that I cant get IPs from DHCP. if I'm connecting with static IP I have internet without a problem, But if i'm trying to receive IP automatically nothing works.
I have this setup:

  • main ISP modem (192.168.1.1) with DHCP on (wireless off)
  • Xiaomi 4A Gigabit with OpenWrt 21.02.2 r16495 (192.168.1.2)
  • Xiaomi AX6S with with OpenWrt 22.03.0-rc1 (192.168.1.200)

I've followed the DumbAP wiki, so the Xiaomis are connected through cable (LAN ports) and their IP is static - with dnsmasq, odhcpd & firewall disabled. GW is 192.168.1.1 and DNS is 1.1.1.1 (if I'm not changing the DNS in the AP I don't have internet).

AX6S /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 'fd9c:6e33:94f4::/48'

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

config interface 'lan'
        option device 'br-lan'
        option proto 'static'
        option netmask '255.255.255.0'
        option ipaddr '192.168.1.200'
        option gateway '192.168.1.1'
        list dns '1.1.1.1'
        option delegate '0'

4A /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 packet_steering '1'
        option ula_prefix 'fdf0:8005:3f3d::/48'

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

config interface 'lan'
        option device 'br-lan'
        option proto 'static'
        option netmask '255.255.255.0'
        option ipaddr '192.168.1.2'
        option gateway '192.168.1.1'
        list dns '1.1.1.1'
        option delegate '0'

I've also tried to disable IP6V because I thought that it might help.
Am I missing something in my configuration?
Thanks!

Why not let dhcp assign IP to Access Points.

Reserve a static IP for each AP using it MAC address on the main router.

Enable DHCP on both AP?
Or only on one?
Iv'e tried something like that but ISP modem has very annoyig Interface - I will try again

It should make zero difference, and the APs will become inaccessible if the DHCPs down.
Technically, an AP doesn't need an IP to do what's supposed to, it's just a convenience for
the network admin.

1 Like

Now I think that I maybe didn't understand your suggestion...
Do you mean that I'll leave DHCP off on the AP and let the AP receive their own IP from the modem's DHCP?
How will that help?

probably nothing, which is exactly what I wrote ...

The DHCP should always be off on the APs.

What happens on the clients when you configure them for DHCP ?

2 Likes

Yes, suggesting AP should receive it's IP from DHCP.

Not suggesting to enable DHCP on AP

Your config should work as is. If it doesn't, then it's time to make more tests. Try with a Linux client and see what do the logs say, inspect the packets using tcpdump, ...

1 Like

What happens if you connect a client directly to the ISP modem? Does it get an DHCP and DNS adresse?

Yes, thats how I've worked before I've added the openWRT routers

OK, so I've tried that on one of them and now if connect when I'm close to him I do get an IP! That's weird...
My Main concern is that it seems that the AP doesn't get an IP for itself at all so I cant log in if I want to change anything

Hence the recommendation to use static IPs...

1 Like