key conflict message for create host by Omapi

Shraddha Pandhe spandhe.openstack at gmail.com
Tue Oct 20 21:00:24 UTC 2015


Hi Clodaoldo,

I am just a user of isc-dhcpd myself. Just wondering, is it supposed to
allow multiple MAC entries in the config? If so, how will it distinguish
between DHCP requests?



On Tue, Oct 20, 2015 at 1:53 PM, Clodoaldo de Borba Lambiase <
clodoaldo at cpd.ufrgs.br> wrote:

> Hi,
>
> 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.
>
>
>
> After the commands below in OMSHELL I have received an error message
> called "key conflict". This error occurs because the MAC Address is equal.
> However, it should not happen in with “ip address” from different subnets.
>
>
>
> Someone already encountered this behavior? Could help me?
>
>
>
> Second IP address: 143.54.246.2
>
>
>
> >>root at nac:/home/clodoaldo/Scripts# omshell
>
> > server localhost
>
> > connect
>
> obj: <null>
>
> > new host
>
> obj: host
>
> > set name="143.54.246.2"
>
> obj: host
>
> name = "143.54.246.2"
>
> > set hardware-type=1
>
> obj: host
>
> name = "143.54.246.2"
>
> hardware-type = 1
>
> > set hardware-address=d6:37:64:30:39:3e
>
> obj: host
>
> name = "143.54.246.2"
>
> hardware-type = 1
>
> hardware-address = d6:37:64:30:39:3e
>
> > create
>
> can't open object: key conflict
>
> obj: host
>
> name = "143.54.246.2"
>
> hardware-type = 1
>
> hardware-address = d6:37:64:30:39:3e
>
>
>
>
>
> Firt IP address: 143.54.244.2 OK
>
> Result:
>
> host 143.54.244.2 {
>
>   dynamic;
>
>   hardware ethernet d6:37:64:30:39:3e;
>
>   fixed-address 143.54.244.2;
>
> }
>
>
>
>
>
> >>root at nac:/home/clodoaldo/Softwares/dhcp-4.3.3# vi
> /etc/dhcp3/dhcpd.subnets
>
> shared-network enfermagem {
>
>     # Enfermagem - Campus Saúde
>
>     subnet 143.54.246.0 netmask 255.255.255.0 {
>
>         option domain-name-servers 143.54.2.165,143.54.2.166;
>
>         option routers 143.54.246.1;
>
>         default-lease-time 1209600;
>
>         option domain-name "ufrgs.br";
>
>     }
>
> }
>
> shared-network bioquimica {
>
>     # Bioquimica - Campus Saúde
>
>     subnet 143.54.244.0 netmask 255.255.255.0 {
>
>        default-lease-time 1209600;
>
>         option domain-name-servers 143.54.1.52,143.54.1.53;
>
>         option routers 143.54.244.1;
>
>         option domain-name "bioquimica.ufrgs.br";
>
>     }
>
> }
>
>
>
>
>
> Regards,
>
> Eng. Clodoaldo de B. Lambiase
>
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20151020/22085dc9/attachment-0001.html>


More information about the dhcp-users mailing list