Wired/wireless AP under an existing router: DHCP off, new LAN IP, LAN port
What AP mode really means
Section titled “What AP mode really means”An AP is not “another router”:
- connect the LAN port, not WAN;
- disable DHCP on the AP; the main router keeps leasing;
- put the AP LAN IP outside the main DHCP pool;
- do not NAT/double-route unless you intentionally want a second router.
This lab verifies wired AP + upstream DHCP only; Wi-Fi SSID/encryption/roaming has no hardware and is E1.
Topology
Section titled “Topology”Main router 192.168.1.1 (DHCP) │ LAN port │ OpenWrt AP LAN br-lan 192.168.1.2/24 DHCP: ignore │ LAN port │ Client 192.168.1.136/24 gateway 192.168.1.1- The client leases from the main router; gateway is
.1, not AP.2; - AP
.2is for management only; - if the client gateway becomes
.2, a second DHCP server or a wrong config exists.
Configuration
Section titled “Configuration”uci show network.lanuci show dhcp.lanuci show network.wan 2>/dev/nullcp /etc/config/network /etc/config/network.bak.$(date +%F)cp /etc/config/dhcp /etc/config/dhcp.bak.$(date +%F)AP mode usually does not need WAN; if WAN remains, ensure it does not steal the default route or NAT.
ExpectedYou know LAN IP, DHCP state and whether WAN is used.
Network → Interfaces → LAN → Edit:
- IPv4 address:
192.168.1.2/24(outside the main pool); - DHCP Server → General → Ignore interface;
- Save and apply.
CLI:
uci set network.lan.ipaddr='192.168.1.2/24'uci set dhcp.lan.ignore='1'uci commit networkuci commit dhcp/etc/init.d/network reload/etc/init.d/dnsmasq restartThen reopen LuCI/SSH at 192.168.1.2.
ExpectedAP is 192.168.1.2/24 and no longer leases addresses.
Connect the OpenWrt LAN port to the main router’s LAN port; do not use WAN.
Reconnect/renew on the client:
ip addr showip routecat /etc/resolv.confping 192.168.1.1ping 192.168.1.2This lab client got 192.168.1.136/24, gateway 192.168.1.1; AP .2 was reachable.
ExpectedThe client leases from the main router with the main gateway.
# Linux exampleudhcpc -i eth0 -f -q -n -t 5Check server 192.168.1.1; if it says 192.168.1.2, AP DHCP is still on.
This AP-only lab had no internet, so ping 1.1.1.1 failing is expected; real internet depends on the main router.
ExpectedThe DHCP server is the main router, not the AP.
Wireless AP (E1)
Section titled “Wireless AP (E1)”No wireless hardware, so not verified:
- SSID/password/WPA2/WPA3;
- 2.4/5 GHz channel, width, TX power;
- roaming/802.11r/weak-signal kick;
- wireless client isolation;
- multiple APs with one SSID.
Principles:
- bridge the wireless interface into
br-lan; - disable DHCP;
- use WPA2/WPA3, never open;
- stagger channels, reuse SSID/password across APs;
- verify wired first, then add Wi-Fi, so you do not change two layers at once.
Common failures
Section titled “Common failures”Whole network dies after adding the AP
Section titled “Whole network dies after adding the AP”- AP DHCP still on, conflicting with the main router;
- AP LAN IP conflicts with the main router;
- AP WAN port was connected to the main LAN;
- a loop between main router and AP.
Disconnect the AP, restore the main router, then change one item at a time.
Clients get no address
Section titled “Clients get no address”- AP is not connected to the main LAN;
- AP DHCP is off but the main DHCP is off/full;
- VLAN/isolated port;
- wireless interface is not bridged to
br-lan.
Clients have an address but the wrong gateway
Section titled “Clients have an address but the wrong gateway”- another DHCP server hands out
.2; - client kept an old lease;
- AP is still running a DHCP server;
- check
cat /tmp/dhcp.leases(the AP should have no new leases).
Wi-Fi connects but no internet
Section titled “Wi-Fi connects but no internet”- wireless interface is not in the LAN bridge;
- firewall separates wireless and LAN zones;
- upstream main router blocks it;
- client isolation/guest network.
Recorded demo (008 lab)
Section titled “Recorded demo (008 lab)”E2 lab run (2026-10-20)
Section titled “E2 lab run (2026-10-20)”- Environment: OpenWrt 25.12.6 x86 VM 200; AP LAN
192.168.1.2/24;dhcp.lan.ignore=1; upstream netns192.168.1.1/24+ BusyBox udhcpd; client192.168.1.136/24. - Client DHCP: server
192.168.1.1, lease 864000s; gateway.1. - Client pinged AP
.2and upstream.1; this AP-only lab had no public internet, so1.1.1.1failed. - Not tested: real main-router internet, Wi-Fi/SSID/encryption/roaming, Windows/phone clients, IPv6/RA.
- Cast:
public/casts/008-ap.cast; recipe:tests/recipes/ap-mode-25.12.md.
Sources and review
Section titled “Sources and review”- This is E2 partial: wired AP/L2/DHCP were tested; wireless and real upstream internet were not.
- No independent reviewer; conclusions are limited to this VM/netns environment.
- AP mode is “LAN-only + DHCP off + LAN IP outside the pool”, not a specific UI.
Sources
Independent OpenWrt notes. Every page states the firmware, device, package manager and way back.
Icons: Solar by 480 Design, CC BY 4.0