key conflict message for create host by Omapi

Clodoaldo de Borba Lambiase clodoaldo at cpd.ufrgs.br
Tue Oct 20 20:53:02 UTC 2015


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";
    }
}
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20151020/f618ffbe/attachment.html>


More information about the dhcp-users mailing list