key conflict message for create host by Omapi
Graham Clinch
g.clinch at lancaster.ac.uk
Wed Oct 21 12:43:12 UTC 2015
On 21/10/2015 08:13, Simon Hobson wrote:
> Clodoaldo de Borba Lambiase <clodoaldo at cpd.ufrgs.br> wrote:
>
>> I'm trying to enable duplicate MACs in different subnets for ISC DHCP- 4.3.3 with OMAPI host entries. I have two IPs with the same MAC address in different subnets.
>
> It sounds like you are trying to do via OMAPI the equivalent of this in the config file
>
> host "blah1" { hardware ethernet aa:bb:cc:dd:ff ; ip address 192.168.1.123 ; }
> host "blah2" { hardware ethernet aa:bb:cc:dd:ff ; ip address 192.168.2.123 ; }
>
> IIRC this doesn't work.
Drifting gently away from the original request, just noting that
multiple host records (in different subnets) with the same hardware
address *does* work (at least in 4.2) when configured through the
configuration files. I've not tried it via OMAPI.
=-=-=
subnet 148.88.141.0 netmask 255.255.255.0 {
option routers 148.88.141.1;
}
# static_allocation_id=18460
host 148.88.141.167 {
fixed-address 148.88.141.167;
hardware ethernet 00:13:44:00:05:0c;
}
[...]
subnet 148.88.186.0 netmask 255.255.254.0 {
option routers 148.88.186.1;
}
# static_allocation_id=24416
host 148.88.186.71 {
fixed-address 148.88.186.71;
hardware ethernet 00:13:44:00:05:0c;
}
=-=-=
>From a cursory skim of server/omapi.c, it does appear that the omapi
server tries to find any lease with the same hardware address and
doesn't restrict it to being within the same subnet.
Graham
More information about the dhcp-users
mailing list