3

How to know all DHCP options and values (on the client side, Linux Ubuntu / Debian / ArchLinux ) provided by the server. I need to pass non-standard option to the client by the DHCP option code example:

222-223 Unassigned 
224-254 Reserved (Private Use)

All DHCP Options here

The file /var/lib/dhcp.lease does not contiend my options

Alban
  • 191
  • 1
  • 9

2 Answers2

3

just edit the config file /etc/dhcp/dhclient.conf and add also request

# custom dhcp option (72 = www-server)
also request www-server;

the value is avaible in /var/lib/dhcp/dhclient.lease

Alban
  • 191
  • 1
  • 9
0

On my Debian based system with NetworkManager, the lease information is available in files like /var/lib/NetworkManager/internal-$UUID-$IFACE.lease.