key conflict message for create host by Omapi

Joseph Bernard jhb at clemson.edu
Tue Oct 20 21:25:37 UTC 2015


Are you trying to give a record 2 IPs or 2 MAC addresses?

Thanks,
Joseph B.

Sent from my iPhone

On Oct 20, 2015, at 4:53 PM, Clodoaldo de Borba Lambiase <clodoaldo at cpd.ufrgs.br<mailto: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#<mailto: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<http://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<http://bioquimica.ufrgs.br>";
    }
}


Regards,
Eng. Clodoaldo de B. Lambiase
_______________________________________________
dhcp-users mailing list
dhcp-users at lists.isc.org<mailto: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/e2a48b5b/attachment.html>


More information about the dhcp-users mailing list