I have a new Openwrt One (I've not used Openwrt before).
What I want it to do is essentially just act as a wireless bridge - clients connect to the wifi and all traffic gets passed to my server (which runs a DHCPd). I feel this ought to be easy...
I've set up networking as follows:
device eth1.2 [VLAN 2 on eth1, which is the LAN port]
interface lan device eth1.2, static config, assigned to LAN firewall zone, DHCP Server set to Ignore interface
br-lan bridge (which I think came pre-configured) set to use eth1.2 in Bridge ports
both radios enabled, both default OpenWrt SSIDs enabled, network set to "Lan"
Under DHCP and DNS, Authoritative un-ticked.
The LAN port on the openwrt one is connected to an ethernet port on my server, which is configured to use VLAN 2 to talk to it - and I can connect via ssh and http fine.
I tried adding an explicit relay from 172.16.22.253 (the openwrt one IP) to 172.16.22.254 (my server's address) or having no relay configured (which seems more natural, I just want the packets passed on), but no joy.
I've been running tcpdump -i enp1s0f1.2 port 67 or port 68 -e -n -vand DHCP packets are not getting through.
What am I doing wrong, please?
[to address the "why" question - eventually I want to have different SSIDs on the wireless and bridge them to different VLANs so they'll get different IPs from my server and so on]
I don't quite understand the question, sorry. I'm trying to bring from wifi (where my client machines are) to my DHCP server (which is attached to the LAN port of the openwrt one with an ethernet cable) [and said DHCP server is in turn connected to the wider internet]
i.e. a client device should connect to the wireless network, and have its DHCP request bridged to my DHCP server
Please confirm that the DHCP server is connected via ethernet to the OpenWrt One. And can you confirm that the ethernet connection is also the path to the internet, as well?
A diagram could be helpful if there is any ambiguity or multiple things to consider here (a photo of one that is hand drawn w/ pen and paper is fine).
Yes, DHCP server connected via ethernet to OpenWrt One. And that's also the path to the internet (and that's working - from the diagnostics tab I can ping openwrt.org just fine).
Ok... so the setup is quite simple... you just need a few edits:
Remove the bridge line at the bottom of this section, and change the device to br-lan:
This will work assuming that your ethernet connection is tagged VLAN 2. If you're working with an untagged network, just edit the br-lan definition to use eth1 instead of eth1.2.