question about dhcp 4.3.2

Waitman Gobble gobble.wa at gmail.com
Fri Mar 13 18:47:24 UTC 2015


On Wed, Mar 11, 2015 at 11:19 PM, Waitman Gobble <gobble.wa at gmail.com> wrote:
> I'm working on a dhcp server instance and the client is not assigning IP.
>
> I get DHCPDISOVER followed by DHCPOFFER on 192.168.1.50 then a DHCPNAK
> and DHCPINFORM on 192.168.0.16 (wrong network) - same device/ MAC.
>
>
> This machine has two interfaces, one on 192.168.0.1 network and the
> other 192.168.1.1 network. However, they are not bridged.
>
> # uname -a
> FreeBSD blynk.waitman.net 11.0-CURRENT FreeBSD 11.0-CURRENT #0
> r275492: Fri Dec  5 06:52:11 PST 2014
> waitman at blynk.waitman.net:/usr/obj/usr/src/sys/BLYNK  amd64
>
>
> I am wondering why the client is not assigning the IP. I see the
> request and the offer repeated several times, while the client status
> is 'Assigning IP' ... which times out (then i see the 'wrong network'
> messages appear in log and the client status reports 'IP assignment
> failed')
>
> Also, wondering about the 'wrong network' messages.
>
> Here is the log file:
> https://gist.github.com/waitman/533706a4133026ed0838
>
>
> dhcpd.conf:
>
> default-lease-time 86400;
> ddns-update-style none;
> deny bootp;
> one-lease-per-client true;
> authoritative;
> log-facility local7;
>
> option routers 192.168.1.254;
> option broadcast-address 192.168.1.255;
> option subnet-mask 255.255.255.0;
> subnet 192.168.1.0 netmask 255.255.255.0 {
> range 192.168.1.50 192.168.1.199;
> }
>
>
> ifconfig:
>
> https://gist.github.com/waitman/b59d3a1c7e42a2a84407
>
>
> Any help, tips or pointers are appreciated.
>
> Thank you,
>
> --
> Waitman Gobble
> Los Altos California USA
> 510-830-7975


After doing some more experimentation using different client machines
and tcpdump it seems that the dhcpd server is sending replies out
through wanl0 instead of wlan1
(I was curious about 'why' I was getting what seemed to be backscatter
about 192.168.0.x wrong network requests... )

example:

# tcpdump -i wlan0 -vvv -s 1500 '(port 67 or port 68)'
tcpdump: listening on wlan0, link-type EN10MB (Ethernet), capture size
1500 bytes
capability mode sandbox enabled
11:34:42.040699 IP (tos 0x0, ttl 64, id 1926, offset 0, flags [none],
proto UDP (17), length 328)
    192.168.0.32.bootps > 255.255.255.255.bootpc: [udp sum ok]
BOOTP/DHCP, Reply, length 300, xid 0xd19857ce, Flags [none] (0x0000)
          Your-IP 192.168.1.116
          Client-Ethernet-Address 00:e0:4c:81:81:ea (oui Unknown)
          Vendor-rfc1048 Extensions
            Magic Cookie 0x63825363
            DHCP-Message Option 53, length 1: Offer
            Server-ID Option 54, length 4: 192.168.1.1
            Lease-Time Option 51, length 4: 86400
            Subnet-Mask Option 1, length 4: 255.255.255.0
            BR Option 28, length 4: 192.168.1.1
            END Option 255, length 0
            PAD Option 0, length 0, occurs 32



I'm starting the dchpd process with wlan1 as the argument, for
example: /usr/cust/sbin/dhcpd wlan1

a few things of note:
1) there's no bridge between wlan0 and wlan1
2) no pf or firewall running on test server or client

the worrisome issue for me is that dhcpd - 4.3.1 works fine, (started
with /usr/local/sbin/dhcpd wlan1 using same config file) - it's when I
start 4.3.2 that I see dhcpd replies coming out of wlan0 interface
instead of wlan1 as they should.

Thanks,

-- 
Waitman Gobble
Los Altos California USA
510-830-7975


More information about the dhcp-users mailing list