07-03-2017 03:26 AM
We have DHCP running and we want to have some IP from DCHP range to be reserved for some hosts, so that IP would not be leased to another device other than reserved host.
What should be the best option to achieve this ?
Tried with fixed addressing but it didn't work as after fixed address with MAC address configuration for one end system, it is getting other DHCP leased IP address rather than the fixed reserved IP.
What could have caused such issue?
07-06-2017 01:09 AM
Are you sure it was exaclty the same MAC address?
You can also convert the IP address from the range where the device got its IP to a fixed address after the inital lease has been granted.
07-07-2017 02:17 PM
New fixed address creation AND fixed address changes are most often required to be written directly to the DHCP configuration file [dhcpd.conf]. Hence any new fixed address creation, changes to existing ones would require you to restart the service on the concerned DHCP server. However, there are features such as "Immediate FA configuration", in NIOS version 7.0 and above which can apply a fixed address without having to restart the dhcp service. Having said that, even if immediate FA configuration is enabled, if the fixed address you are allocating to a MAC address falls in an existing DHCP range, you will have to restart the service for the changes to take effect.
Apart from the above, DHCP server most often uses relay agent information (giaddr) for subnet selection for a client. For example: If the Fixed Address you configured is 184.108.40.206 inside 220.127.116.11/24 network and if the client's request for an IP address is via 18.104.22.168 which falls in 22.214.171.124/24 network, your client would end up receiving an IP address from the pool inside 126.96.36.199 network. Having said that, I would like to clarify that subnet selection may not always be associated to relay agent info. Sometimes, it could be on the basis of certain custom configuration such as Option-82, sub-option 5 [Link selection]