[Solved] DHCP don't allow Internet access

Hello to all, i have a WAC104 with OpenWrt 22.03.2 r19803-9a599fee93, this one is connected to a Livebox router from Orange provider.
This WAC104 is configured in acces point to send WiFi, the WiFi router is not working.
If i configure the dhcp on the wac104 (no DHCP in the router) all devices can't go to Internet,on the other hand, if I run the dhcp on the router (and make it OFF in the WAC104), everything works normally.
I'm a little lost, if you could explain it to me that would be very kind.
Thanks.

You need to tell the clients, using DHCP options, the router is default gw and DNS, not the AP.
You'll need options 3 and 6 - https://www.iana.org/assignments/bootp-dhcp-parameters/bootp-dhcp-parameters.xhtml

1 Like

Please copy the output of the following commands and post it here using the "Preformatted text </> " button:
grafik
Remember to redact passwords, MAC addresses and any public IP addresses you may have:

cat /etc/config/network
cat /etc/config/wireless
cat /etc/config/dhcp
cat /etc/config/firewall
1 Like
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 packet_steering '1'
        option ula_prefix 'fda0:6a10:21cd::/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 netmask '255.255.255.0'
        option ip6assign '60'
        option ipaddr '192.168.1.71'
        option gateway '192.168.1.1'
        list dns '192.168.1.1'

root@OpenWrt:~# cat /etc/config/wireless

config wifi-device 'radio0'
        option type 'mac80211'
        option hwmode '11g'
        option path '1e140000.pcie/pci0000:00/0000:00:01.0/0000:02:00.0'
        option cell_density '0'
        option htmode 'HT40'
        option channel 'auto'
        option txpower '20'
        option disabled '1'

config wifi-device 'radio1'
        option type 'mac80211'
        option hwmode '11a'
        option path '1e140000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0'
        option cell_density '0'
        option txpower '20'
        option channel 'auto'
        option htmode 'HT40'

config wifi-iface 'default_radio1'
        option device 'radio1'
        option network 'lan'
        option mode 'ap'
        option key '************'
        option encryption 'psk-mixed'
        option ssid '***********'

config wifi-iface 'wifinet2'
        option device 'radio0'
        option mode 'ap'
        option key '***********'
        option encryption 'psk-mixed'
        option network 'lan'
        option ssid '***********'
        option disabled '1'

config wifi-iface 'wifinet3'
        option device 'radio0'
        option mode 'ap'
        option encryption 'psk-mixed'
        option key '***********'
        option network 'lan'
        option ssid '***********'
        option disabled '1'

root@OpenWrt:~# cat /etc/config/dhcp

config dnsmasq
        option localise_queries '1'
        option rebind_protection '1'
        option rebind_localhost '1'
        option local '/lan/'
        option domain 'lan'
        option expandhosts '1'
        option readethers '1'
        option leasefile '/tmp/dhcp.leases'
        option resolvfile '/tmp/resolv.conf.d/resolv.conf.auto'
        option localservice '1'
        option ednspacket_max '1232'
        option domainneeded '1'

config dhcp 'lan'
        option interface 'lan'
        option leasetime '12h'
        option dhcpv4 'server'
        option start '191'
        option force '1'
        option limit '1'
        option ignore '1'

config dhcp 'wan'
        option interface 'wan'
        option ignore '1'

config odhcpd 'odhcpd'
        option maindhcp '0'
        option leasefile '/tmp/hosts/odhcpd'
        option leasetrigger '/usr/sbin/odhcpd-update'
        option loglevel '4'

config host
        option dns '1'
        option mac '00:92:FA:08:CE:24'
        option ip '192.168.1.191'
        option name 'Teclast.M89'

root@OpenWrt:~# cat /etc/config/firewall

I hope it's what you need, at this time the DHCP is OFF on the WAC104, for the test only one IP was valide, thank you.

Have you already added the required options to the dhcp server?

Hello.
If you use the WAC104 as an AP, than you should rely on the livebox for DHCP. You said it yourself, it works. As an AP, the WAC is not meant to be the DHCP server for your LAN.
On the other hand, you can configure the WAC as the DHCP server, but that requires extra configuration (gateway ...) and that you disable DHCP on the livebox. Can it be disabled easily ?

I can disable the DHCP in the Livebox easily, the problem is that the Livebox DHCP is crappy, it sees the same name for all devices when i put them in "static leases", that is the reason i would like to use the WAC104 as DHCP server instead of this shitty Livebox :wink:

No, because i don't understand how to :slightly_frowning_face:

What's what the wiki page is for.

Seems reasonable indeeed.

Some news now, i'm online with Orange, they will change my Livebox asap, which until now was impossible for them to understand.
So i will use the new one as DHCP server.

Thank you for your help and your patience with me who am really new in the Openwrt world.

We can mark this thread as solved.

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