AP ip address assignment

Hi all:
When STA connection AP, STA can automatically obtain an ip address .

192.168.2.xx <== dhcp===> AP(wan 192.168.2.6 / lan 192.168.1.1 ) <===wireless====> STA

My STA ip address is 192.168.2.7 , Why?

But some STA ip address is 192.168.1.3 , Why?

thanks.

Hi all :
When STA connection AP, STA can automatically obtain an ip address .

192.168.2.xx <== dhcp===> AP(wan 192.168.2.6 / lan 192.168.1.1 ) <===wireless====> STA

Two situations:
(1) My STA ip address is 192.168.2.x .
(2) My STA ip address is 192.168.1.x .

WHY?
thanks.

An AP should have one network, not both wan and lan. How is it configured? If you randomly receive DHCP leases in different subnets (192.168.1.0/24 and 192.168.2.0/24) then you may have multiple DHCP servers in your network.

1 Like

Hi mikma:
My AP wan dhcp a ip address is 192.168.2.6, why my STA ip is 192.168.2.x .
I think my STA ip is 192.168.1.x .
thanks.

Compare your configuration against this
https://openwrt.org/docs/guide-user/network/wifi/bridgedap

1 Like