Cannot get OpenWRT running in dumb AP mode

Hello,

I installed OpenWRT on a WS-AP3825i AP.

I followed the Wiki instruction but cannot get the wifi working. Devices do not get any IP.
The AP has access to internet.

/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 'fdf6:d5cf:394b::/48'
        option packet_steering '1'

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

config interface 'lan'
        option device 'br-lan'
        option proto 'dhcp'

config interface 'wan'
        option device 'eth1'
        option proto 'dhcp'

/etc/config/wireless

config wifi-device 'radio0'
        option type 'mac80211'
        option path 'ffe0a000.pcie/pcia000:02/a000:02:00.0/a000:03:00.0'
        option band '5g'
        option channel 'auto'
        option htmode 'VHT80'
        option disabled '0'
        option cell_density '0'

config wifi-iface 'default_radio0'
        option device 'radio0'
        option network 'lan'
        option mode 'ap'
        option ssid 'OpenWrt'
        option encryption 'sae-mixed'
        option key '123456789'
        option ocv '0'

config wifi-device 'radio1'
        option type 'mac80211'
        option path 'ffe09000.pcie/pci9000:00/9000:00:00.0/9000:01:00.0'
        option band '5g'
        option channel '36'
        option htmode 'HT40'
        option disabled '1'

config wifi-iface 'default_radio1'
        option device 'radio1'
        option network 'lan'
        option mode 'ap'
        option ssid 'OpenWrt'
        option encryption 'none'

/etc/config/dhcp

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

config dhcp 'lan'
        option interface 'lan'
        option start '100'
        option limit '150'
        option leasetime '12h'
        option dhcpv4 'server'
        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'

i tested other encryption methods and none. neither works. i do get auth anyway, just no ip for the client

Hooking it up using lan or wan port ?

We probably want the firewall file too.

You are doing wireless the hard way.

I would recommend to first save the current config via Luci to file.

Then reset the config to OpenWRT default config.

Then while in default routing mode, test Wifi via Luci GUI, by simply turning on plain OpenWRT Wifi first, without configuring any parameters.

Then one by one, add the Wifi features that you crave and check the result on every round.
When you have reached the desired state, copy the wireless file to your PC.

Then reload your saved config and copy the wireless file back to the router.

no wan port on the AP

Your config disagrees with you...

i'm using this AP https://openwrt.org/toh/extreme_networks/ws-ap3825i, only 2 lan port and 1 serial

Is firewall config useful ? i turned it off to access the Luci UI

OpenWRT will always setup a wan, if there's more than one port.
You can see it in the config you posted.

Whatever assumptions you made, based on how stock fw worked, forget them.

Then, I'm lost as to how i should configure it.

More context: I have an opnsense box working as fw+dhcp+dns. I had an old Netgear router as AP on it, but it only has a 100uplink, so I want to switch to a better AP. the AP I have now is enterprise grade and comes with a controller I don't want to setup (overkill for one AP). I flashed the AP with OpenWRT, now I just want to use it as an access point and let my existing opnsense box handle dhcp+dns+fw

Did you try the other ethernet port, to start with ?

no, i will try tomorrow

Reset to defaults and then follow this guide:

OK, I got it working by connecting the cable on the port labelled "LAN 2" instead of "LAN 1" on the AP.

For learning purpose, @frollic, how did you see that I was using the wrong port ? Both are physically labelled LAN

Like I said, not in Openwrt, they aren't.

Then, how can you see which port to use from the config ?

If there are two ports, and the 1st one didn't work (since it's wan, based on the config you posted)... logic ?

I see... thanks !

You can obviously make both ports LAN, but that for you to configure.

If you are using just it as switch and access point probably it is better to remove wan interface and add both ports to the lsn switch.

I had found instructions to do that.

Basically remove the wan interface and add wan port (eth1) to br-lan switch device as port.

This way you may be able to connect something to that port.

If you use it only as WiFi ap then no need to do it.

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