"supersede" the IP address

Jack Bates ms419 at freezone.co.uk
Tue Apr 21 17:53:10 UTC 2009


How can I configure dhclient to "supersede" the IP address supplied by
the DHCP server?

The DHCP server supplies addresses in the range 192.168.1.100 to
192.168.1.149. I am configuring a server with a fixed address outside
this range, 192.168.1.2

Until now, I have not used DHCP on this server - I configured it
statically with address 192.168.1.2. I want to continue to use this
fixed address, but want to start using DHCP for other configuration
information, for example I want to use DHCP to configure the DNS
servers.

I tried using dhclient instead of static configuration, and added to my
dhclient.conf,

lease {
  fixed-address 192.168.1.2;
}

- however the server was then configured with an address in the .100
to .149 range. IIUC, this is because the fixed-address lease is only
used if dhclient *cannot* contact the DHCP server? In my case it does
contact the DHCP server.

I also considered adding to my dhclient.conf,

supersede address-or-something 192.168.1.2;

- but I could not find a DHCP option for the IP address in
dhcp-options(5)

I am using dhclient 3.1.2 on Debian

How can I use dhclient to configure the DNS servers, but ignore the IP
address and use a static address instead?



More information about the dhcp-users mailing list