How can I set one hostname and IP for multiple MACs in DHCPd (isc-dhcpd-4.1.1-P1) on CentOS 6.x?

I am trying to get my DHCP server (isc-dhcpd-4.1.1-P1) in CentOS to give the same IP and hostname to two different MAC addresses (LAN and WLAN) on the same computer depending on which is connected..

This is my entry in dhcpd.conf

host hostname.my.domain {
        option host-name hostname;
        hardware ethernet xx:xx:xx:xx:xx:xx;
        fixed-address 10.0.1.134;
}

I've tried adding a second hardware line and adding the second MAC to the first hardware line. Neither worked. Does anyone have an idea how I can accomplish this task while using the same hostname and IP in DHCPd?

EDIT: My users bring their laptops into work. I want to make sure, whether they use our Wireless or LAN to connect to the network that their device gets the same IP address. I want to do this because I'm running out of IP addresses on my current internal ClassC.


Solution 1:

host hostname-primary.my.domain {
    option host-name hostname;
    hardware ethernet xx:xx:xx:xx:xx:xx;
    fixed-address 10.0.1.134;
}
host hostname-secondary.my.domain {
    option host-name hostname;
    hardware ethernet yy:yy:yy:yy:yy:yy;
    fixed-address 10.0.1.134;
}

Just for the record... You are opening yourself for an IP address conflict, but I am sure you have a very valid reason for doing something like this.