Can Isc-dhcp-server give two static ip addresses to one mac address?
I have several Genexis terminals in my network. Each terminal have two interfaces, one for public traffic and one for a management traffic. Both interfaces have same mac address. DHCP server can detect interfaces via dhcp option field and dhcp class declarations.
Every terminal have to have static ip address instead of dynamic address. With dynamic address and dynamic pools this would be an easy task.
Or is there any dhcp server that can do this?
Best Answer
Regardless of whether you use DHCP or not, you'd better not putting two interfaces with identical MACs and different IPs into the same link (broadcast domain). Unless You are able to predict exactly all results.
If you have two isolated subnets, your DHCP config is straightforward: just put host entries into corresponding subnet declarations. But remember that hostname should be globally unique.
This approach works fine at least with isc-dhcpd-V3.0.5-RedHat.
If you have a managed switch you can use port-based VLANs to create isolated subnets.
As well as a network card with VLAN support allows you to map this subnets to sub-interfaces. Otherwise use two cards.
Extracts from working config:
On client (addresses got dynamically):
On server:
dhcpd.conf: