1

How does one list the options that are sent to a client from a DHCP server? Using a utility run from bash?

2
  • Noting that the bash command-line is just a command-line, and doesn't affect the ability to list DHCP options.
    – Jeff Schaller
    Sep 2, 2021 at 19:05
  • You can monitor the DHCP traffic by installing and using wireshark. The actual DHCP "options" aren't saved anywhere - they're applied to the system, and reflected in the running system's configuration, until something changes them.
    – waltinator
    Sep 2, 2021 at 21:01

2 Answers 2

1

You can use tshark, the commandline version of wireshark, tshark -tad -nn -VOdhcp -ixenbr0 -f 'ip and udp port 67'

1

The only way to see the options (unless the machine you are running this on is the client, then you can see the effect of the options) is to capture the traffic for the DHCP exchange.

So you use anything you like to monitor network traffic (wireshark, tshark, tcpdump, ...). There's also a dedicated tool called dhcpdump.

Note that you might not see what's going on with another client if your network setup doesn't allow to capture the traffic between the DHCP server and that client.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.