dhcpd related issue - not giving up
Ian Smith
smithi at nimnet.asn.au
Mon Nov 2 13:25:54 UTC 2009
In freebsd-questions Digest, Vol 283, Issue 2, Message: 4
On Mon, 2 Nov 2009 02:04:31 -0800 (PST)
Dánielisz László <laszlo_danielisz at yahoo.com> wrote:
> Sorry, I misspell it, (192.168.1.1) at 00:13:8f:86:2f:64 on rl1
> permanent [ethernet] <- actually this is my rl1 interface on BSD
Ok. Chomping heavily .. I've just reviewed this thread through four
digests, rather a top-posting, multi-tail-quoting mess. Please trim
quotes to the necessary then add your response; we've seen the rest.
> > mac# $ dhcping -h 00:23:32:dc:72:19 -s 192.168.1.1
> > no answer
> >
> > bsd# tcpdump -i rl1 -n port 67 or port 68
> > tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
> > listening on rl1, link-type EN10MB (Ethernet), capture size 96 bytes
> > 19:14:38.604545 IP 192.168.1.234.68 > 192.168.1.1.67: BOOTP/DHCP, Request
> > from 00:23:32:dc:72:19, length 250
> > 19:24:06.600131 IP 192.168.1.234.68 > 192.168.1.1.67: BOOTP/DHCP, Request
> > from 00:23:32:dc:72:19, length 250
You could perhaps usefully add 'or arp' to that tcpdump.
Like your earlier tcpdump; the Mac's asking and 192.168.1.1 is not
responding. I don't think anyone's asked yet what you get from:
# netstat -finet -an | grep 67
ie, is dhcpd really listening? something like ..
udp4 0 0 192.168.1.1.67 *.*
If not, there's your problem .. if so, looks like your firewall might be
blocking those packets from reaching 192.168.1.1 (OR its responses back)
If dhcpd is running, even if it's misconfigured, I'd expect to see some
response if it's receiving requests.
> > bsd# arp -a
> > ? (192.168.1.234) at 00:23:6c:86:41:d9 on rl1 [ethernet] <- this is my
> > MacBook
> > ? (192.168.1.1) at 00:13:8f:86:2f:64 on rl1 permanent [ethernet] <- this is
> > the layer 3 switch
> >
>
> So your switch and your rl1 interface have the same IP? That can't be good,
> can't see why it would affect things when the switch isn't in action though.
>
> # sockstat -4l | grep dhcp
> > dhcpd dhcpd 4747 7 udp4 *:67 *:*
Yeah sockstat's always useful too; both it and netstat -a will show udp
port 67 listening if dhcpd's running (right).
>From a later message ..
> pool {
> option domain-name-servers cns01.hdsnet.hu;
> max-lease-time 300;
> range 192.168.1.200 192.168.1.253;
> allow unknown-clients;
> }
> }
.. it seems from the arp -a above that the Mac already has 192.168.1.234
which is within that range? However, concentrate on getting as far as
seeing return responses from dhcpd on port 67 to clients with tcpdump,
with your firewall momentarily disabled if need be ..
HTH, Ian
More information about the freebsd-questions
mailing list