Some more details about my configuration.
I set dhcpd_flags="sis1 wi0" in /etc/rc.conf.local.
I made also some tests by running /usr/sbin/dhcpd -d wi0 and I got the
same issue.
Éric
Le mercredi 10 octobre 2012 à 17:25 +0200, Eric Boudrand a écrit :
> Hello,
>
> I have a problem to make dhcpd working on a wi interface. I am using a
> Senao 2551CD PLUS EXT2 wireless adapter as AP on Soekris box.
>
> DHCP server can deliver IP addresses to the clients on the wired network
> (sis1), but not on the wireless network (wi0). Tcpdump gives the
> following capture :
>
> # tcpdump -nettti wi0
> tcpdump: listening on wi0, link-type EN10MB
> Sep 30 09:19:29.668992 14:da:e9:3c:7a:6c 00:02:6f:36:ab:d3 0000 14: [|
> llc]
> 0002 6f36 abd3 14da e93c 7a6c 0000
> Sep 30 09:19:29.689362 14:da:e9:3c:7a:6c 00:02:6f:36:ab:d3 0000 14: [|
> llc]
> 0002 6f36 abd3 14da e93c 7a6c 0000
> The MAC addresses are correct. But, not upper layers :(
>
> My /etc/dhcpd.conf is :
> shared-network WIFI {
> option domain-name "bureau";
>
> subnet 192.168.32.0 netmask 255.255.255.0 {
> option routers 192.168.32.1;
> range 192.168.32.100 192.168.32.150;
> }
> }
>
> shared-network FILAIRE {
> option domain-name "bureau";
>
> subnet 192.168.1.0 netmask 255.255.255.0 {
> option routers 192.168.1.1;
> range 192.168.1.100 192.168.1.150;
> }
> }
> If I remote "FILAIRE" configuration, I still cannot get an IP address on
> wi0.
>
> Interface are configured as follow :
> # ifconfig wi0
> wi0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
> lladdr 00:02:6f:36:ab:d3
> priority: 4
> groups: wlan
> media: IEEE802.11 DS11 hostap
> status: active
> ieee80211: nwid TestWifi chan 11 bssid 00:02:6f:36:ab:d3 nwkey
> 1234567890 -23dBm (auto)
> inet6 fe80::202:6fff:fe36:abd3%wi0 prefixlen 64 scopeid 0x5
> inet 192.168.32.1 netmask 0xffffff00 broadcast 192.168.32.255
> # ifconfig sis1
> sis1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
> lladdr 00:00:24:c1:f3:59
> priority: 0
> media: Ethernet autoselect (none)
> status: no carrier
> inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255
> inet6 fe80::200:24ff:fec1:f359%sis1 prefixlen 64 scopeid 0x2
>
> If I disable PF, I am getting the same issue. By default, I have the
> next rules :
> # pfctl -sr
> pass all flags S/SA
> block drop in on ! lo0 proto tcp from any to any port 6000:6010
> Maybe it is a PF issue. But, DHCPD works well on sis1 with the same
> rules.
>
> Do you have an idea where the issue can come from ? Thanks for any help.
>
> Regards.
>
> Éric Boudrand