From charlesreid1

Widy as an Access Point

Step by step:

1. Get access point on and broadcasting

2. Connect to access point from another computer

3. DHCP server on Widy, successfully assigning IP addresses

4. Everyone getting on the wifi network can get a DHCP lease

5. Reproduce from scratch. Luci interface, clear out, start from square one, have DHCP config file in a repo somewhere, widy repo, multi clients communicate via network

Getting Access Point On and Broadcasting

To get the access point on and broadcasting:

OpenWrt - click interfaces

Create OpenWrts mode master

Do some other stuff

Set interface type to "Static" - this is important

Then you can set a static IP address (I used 10.0.0.1)

Subnet mask (255.255.255.0)

Gateway 10.0.0.1

That's it, then I saved my changes.

When I disconnected, then reconnected, to the OpenWrt access point network, I got an IPv4 address, and it showed up in the DHCP leases list on the OpenWrt Luci web interface.

Test Connection to Access Point

The next step is to successfully connect to the access point.

One way you can troubleshoot this process, or at least monitor it to make sure it goes as planned, is to connect to the Widy via ethernet, and run tcpdump to monitor the wireless network interface. Then, connect to the OpenWrt wireless network with another computer, and watch the packet traffic that passes through the wireless network interface. You should see some DHCP requests and BOOTP requests, which is the new computer that is connecting to the wireless network getting an IP address.

$ tcpdump -i wlan0
09:10:46.662109 00:21:6a:07:17:14 (oui Unknown) > Broadcast Null Unnumbered, xid, Flags [Response], length 6: 01 00
09:10:46.663583 EAPOL key (3) v2, len 95
09:10:46.672735 EAPOL key (3) v1, len 117
09:10:46.674190 EAPOL key (3) v2, len 151
09:10:46.677946 EAPOL key (3) v1, len 95
09:10:46.699734 IP6 :: > ff02::16: HBH ICMP6, multicast listener report v2, 1 group record(s), length 28
09:10:46.699917 IP6 :: > ff02::16: HBH ICMP6, multicast listener report v2, 1 group record(s), length 28
09:10:46.745280 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 00:21:6a:07:17:14 (oui Unknown), length 300
09:10:46.745457 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 00:21:6a:07:17:14 (oui Unknown), length 300
09:10:46.748579 IP 10.0.0.1.bootps > morpheus.lan.bootpc: BOOTP/DHCP, Reply, length 307
09:10:46.766606 IP morpheus.lan > 224.0.0.22: igmp v3 report, 1 group record(s)
09:10:46.766770 IP morpheus.lan > 224.0.0.22: igmp v3 report, 1 group record(s)
09:10:47.019375 IP morpheus.lan.mdns > 224.0.0.251.mdns: 0 [4q] [7n] ANY (QM)? morpheus._udisks-ssh._tcp.local. ANY (QM)? morpheus.local. ANY (QM)? 228.0.0.10.in-addr.arpa. ANY (QM)? morpheus [00:21:6a:07:17:14]._workstation._tcp.local. (262)
09:10:47.019499 IP morpheus.lan.mdns > 224.0.0.251.mdns: 0 [4q] [7n] ANY (QM)? morpheus._udisks-ssh._tcp.local. ANY (QM)? morpheus.local. ANY (QM)? 228.0.0.10.in-addr.arpa. ANY (QM)? morpheus [00:21:6a:07:17:14]._workstation._tcp.local. (262)
09:10:47.060955 IP morpheus.lan.mdns > 224.0.0.251.mdns: 0*- [0q] 4/0/0 PTR _udisks-ssh._tcp.local., PTR morpheus [00:21:6a:07:17:14]._workstation._tcp.local., PTR _workstation._tcp.local., PTR morpheus._udisks-ssh._tcp.local. (164)
09:10:47.061073 IP morpheus.lan.mdns > 224.0.0.251.mdns: 0*- [0q] 4/0/0 PTR _udisks-ssh._tcp.local., PTR morpheus [00:21:6a:07:17:14]._workstation._tcp.local., PTR _workstation._tcp.local., PTR morpheus._udisks-ssh._tcp.local. (164)