I am very new to OpenWrt and flashed a few old Aruba 303H I had to extend my network.
I wanted to set them up as dumb APs with my router doing most of the work.
I tried two different guides on here, Dumb AP, Bridge AP, but I'm having the same problems.
I am 100% sure this is down to something newbish I am doing as oppsed to something hardware related. I would be a bit more comfortable with cli config as im still getting used to the web interface.
Setup
The devices is powered via PoE on eth0 and I have a laptop connected to eth1 with the two wireless modems setup. I am doing the config via serial port.
The main config I tried is shown below.
config interface lan
option type 'bridge'
option ifname 'eth0 eth1.1'
option proto 'static'
option ipaddr 192.168.88.200
option netmask 255.255.255.0
option gateway 192.168.88.1
option dns 192.168.1.10
The problem I am having is that with a static set on my laptop on eth1 or any wifi devices, I can use the network no problem but I cannot get DHCP from my router, so seems there might be a broadcast issue. On the switch the AP is connected to, I see the arp entries for any devices connected to wifi or eth1, but I cannot connect to the static IP on the AP from the eth0 network side, I can from client side on any devices on wifi or eth1.
Firewall and DHCP are disabled and stopped on the AP.
As I said, I am very new to OpenWrt so this might seem like a stupid issue.
disable (and totally ignore) the WAN port (proto=none)
configure your desired (static-) IP on LAN
disable DHCPd and DHCPdv6 on LAN
connect to your existing LAN network using one of the LAN ports (leave WAN unconnected)
set up wireless as you desire
This should get you a working setup, everything from there on would be an optimization, but not functionally required - so this is a safe baseline configuration.
Adding WAN to the LAN bridge is something I'd avoid, unless really needed - especially in this case, where you'd have to resort to software bridging (and the performance penalty that incurs).
I have just noticed after a reset that eth0 is actually the physical E1 port on the AP and eth1 is E0. So thats added a bit of confusion to the matter.
Ok, Putting eth1 (the WAN port) into LAN got me up and going. I can reach the AP from the network and the AP and see the outside world. Now to get DHCP requests to passthrough as thats not working.
For anyone searching with the same issue. Below is the final full /etc/config/network that works, but remember that this is specific to situations where eth1 is the WAN port and eth0 was the LAN. Ensure that you know which is which as this caused much of my confusion.
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config device
option name 'br-lan'
option type 'bridge'
list ports 'eth1'
option ipv6 '0'
config interface 'lan'
option proto 'dhcp'
option delegate '0'
option device 'br-lan'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '0 0 2 3 4'
option vid '1'