8

On a FreeBSD computer

  • Is there a DHCP client log that I could use to debug a DHCP issue?
  • Can I set a debug param to get more information from the dhclient?
UPDATE #1

I found a lead on this article handy tools for debugging DHCP on linux but that's on Linux (dhcping, dhcpdump), and I don't have these on my FreeBSD, I won't be able to install them.

UPDATE #2
$ tcpdump -lenx -i eth0 -s 1500 port bootps
1

2 Answers 2

6

dhcpdump is the tool of your choice.

If you haven't installed it already, it's available from the FreeBSD pkg repository: pkg install dhcpdump.

Then, just use dhcpdump -i fxp0.

I found more information at https://linux.die.net/man/1/dhcpdump

2
  • 1
    That link redirects to some fraudulent site. Sep 4, 2023 at 12:40
  • 2
    I edited the answer to fix it, @HolgerBöhnke Jan 7 at 11:47
4

From the manpage:

It can be made to emit verbose messages displaying the startup sequence events until it has acquired an address by supplying the -v command line argument.

Type:

dhclient -v eth0

...where eth0 is your network interface.

1
  • 2
    -v is not a valid switch on FreeBSD, but thanks.
    – zabumba
    Jan 23, 2014 at 11:45

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .