Multiple mac addresses for one static host configuration.

Glenn Satchell Glenn.Satchell at uniq.com.au
Tue Jun 16 14:15:26 UTC 2009


>Date: Tue, 16 Jun 2009 15:17:13 +0200
>From: Jan Hugo Prins <jhp at jhprins.org>
>
>Hello,
>
>In an old version of dhcpd, for some hosts I had 2 mac addresses
>configured for their static IPv4 address.
>This worked great, for example when they were transitioning from an old
>system to a new one, or had both wireless and wired access.
>In these cases they would always have their own IP and firewall rules
>etc would match.
>
>On a new set of dhcp servers I installed version 4.0 and now I can't do
>this anymore, I get the following error in my logfiles:
>Jun 16 13:52:25 firewall02 dhcpd: /etc/dhcpd.d/dhcpd.vlan1 line 262:
>Host benz hardware address already configured.
>Jun 16 13:52:25 firewall02 dhcpd: #011#011hardware
>Jun 16 13:52:25 firewall02 dhcpd:                  ^
>Jun 16 13:52:25 firewall02 dhcpd: /etc/dhcpd.d/dhcpd.vlan1 line 262:
>expecting a parameter or declaration
>Jun 16 13:52:25 firewall02 dhcpd: #011#011hardware ethernet
>Jun 16 13:52:25 firewall02 dhcpd:                  ^
>
>
>Is their some way to get around this? Maybe something with class
>declarations ? Or am i missing an option somewhere?
>
>The specific host part for this client looks like this:
>
>        host benz {
>                option host-name "benz";
>                hardware ethernet 00:16:36:85:B4:C9;
>                hardware ethernet 00:18:DE:30:51:F1;
>                fixed-address 192.168.2.73;
>        }
>
>Thanks a lot,
>Jan Hugo Prins

Must have been a very old version of dhcpd, or a bug in the parser :)

Split it into two host statements. Note that the host label must be
unique, so something like this will work:

        host benz-old {
                option host-name "benz";
                hardware ethernet 00:16:36:85:B4:C9;
                fixed-address 192.168.2.73;
        }
        host benz {
                option host-name "benz";
                hardware ethernet 00:18:DE:30:51:F1;
                fixed-address 192.168.2.73;
        }

regards,
-glenn




More information about the dhcp-users mailing list