how to debug dhcp?

Garry Harthill gazzerh at gmail.com
Thu Jul 20 10:49:28 UTC 2006


On 19/07/06, David Timms <dtimms at bigpond.net.au> wrote:
> dragoran wrote:
> > dragoran wrote:
> >> John Reiser wrote:
> >>>> when I try to use dhcp for my network device (eth0 - forcedeth) it does
> >>>> not get an IP with the result: failed
> >>>>
> >>>
> >>>
> >>>> 2) how can I debug it to find out what is causing it?
> >>>>
> >>>
> >>> Boot single-user, invoke the dhcp program from a console in "non-daemon"
> >>> mode, and watch.
> >> how do I do this (found nothing in the man page)
> >>>   For dhcpd, consider flags -d -tf and perhaps -play.
> >>> Also, consider running under strace.
> >> I am talking about dhclient not dhcpd
> >>>   For lowest-level packet trouble,
> >>> use a program such as tcpdump or ethereal to check what goes over the
> >>> wire.

Run the DHCP server using -d and see if you are getting any DHCP
traffic when the client tries to DHCP Discover.




More information about the devel mailing list