[Bug Report] key conflict message for create host by Omapi
Muhammad Faisal
faisalusuf at yahoo.com
Thu Oct 29 05:44:56 UTC 2015
Hi Clodoaldo,The DHCP experts might explain this but what about arp resolution within the server ? The MAC address is a unique identifier so if your deployment is getting two IP for the same MAC how the conflict will resolve? Regards, Muhammad Faisal.
From: Clodoaldo de Borba Lambiase <clodoaldo at cpd.ufrgs.br>
To: "dhcp-users at lists.isc.org" <dhcp-users at lists.isc.org>
Sent: Thursday, October 29, 2015 12:28 AM
Subject: [Bug Report] key conflict message for create host by Omapi
<!--#yiv7538353416 _filtered #yiv7538353416 {font-family:"Cambria Math";panose-1:2 4 5 3 5 4 6 3 2 4;} _filtered #yiv7538353416 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;} _filtered #yiv7538353416 {font-family:Consolas;panose-1:2 11 6 9 2 2 4 3 2 4;}#yiv7538353416 #yiv7538353416 p.yiv7538353416MsoNormal, #yiv7538353416 li.yiv7538353416MsoNormal, #yiv7538353416 div.yiv7538353416MsoNormal {margin:0cm;margin-bottom:.0001pt;font-size:11.0pt;font-family:"Calibri", sans-serif;}#yiv7538353416 a:link, #yiv7538353416 span.yiv7538353416MsoHyperlink {color:#0563C1;text-decoration:underline;}#yiv7538353416 a:visited, #yiv7538353416 span.yiv7538353416MsoHyperlinkFollowed {color:#954F72;text-decoration:underline;}#yiv7538353416 p {margin:0cm;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman", serif;}#yiv7538353416 pre {margin:0cm;margin-bottom:.0001pt;font-size:10.0pt;font-family:"Courier New";}#yiv7538353416 span.yiv7538353416Pr-formataoHTMLChar {font-family:Consolas;}#yiv7538353416 p.yiv7538353416msochpdefault, #yiv7538353416 li.yiv7538353416msochpdefault, #yiv7538353416 div.yiv7538353416msochpdefault {margin:0cm;margin-bottom:.0001pt;font-size:10.0pt;font-family:"Times New Roman", serif;}#yiv7538353416 span.yiv7538353416pr-formataohtmlchar0 {font-family:"Courier New";}#yiv7538353416 span.yiv7538353416estilodeemail19 {font-family:"Calibri", sans-serif;color:windowtext;}#yiv7538353416 span.yiv7538353416estilodeemail20 {font-family:"Calibri", sans-serif;color:#1F497D;}#yiv7538353416 span.yiv7538353416estilodeemail21 {font-family:"Calibri", sans-serif;color:#1F497D;}#yiv7538353416 span.yiv7538353416estilodeemail22 {font-family:"Calibri", sans-serif;color:windowtext;}#yiv7538353416 span.yiv7538353416estilodeemail23 {font-family:"Calibri", sans-serif;color:#1F497D;}#yiv7538353416 span.yiv7538353416EstiloDeEmail27 {font-family:"Calibri", sans-serif;color:#1F497D;}#yiv7538353416 span.yiv7538353416EstiloDeEmail28 {font-family:"Calibri", sans-serif;color:windowtext;}#yiv7538353416 span.yiv7538353416EstiloDeEmail29 {font-family:"Calibri", sans-serif;color:#1F497D;}#yiv7538353416 .yiv7538353416MsoChpDefault {font-size:10.0pt;} _filtered #yiv7538353416 {margin:70.85pt 3.0cm 70.85pt 3.0cm;}#yiv7538353416 div.yiv7538353416WordSection1 {}-->Hi, I'm trying to enable duplicate MACs in different subnets for ISC DHCP- 4.3.3 with OMAPI host entries. I would like to have two IPs with the same MAC address in different subnets. First IP address: 10.0.244.2 (subnet 10.0.244.0) Second IP address: 10.0.246.2 (subnet 10.0.246.0) Subnets are set in "dhcpd.subnets" file included by dhcpd.conf file. Below are the two subnets related with each ip address. vi /etc/dhcp3/dhcpd.subnets shared-network enfermagem { # Enfermagem - Campus Saúde subnet 10.0.246.0 netmask 255.255.255.0 { option domain-name-servers 10.0.2.165,10.0.2.166; option routers 10.0.246.1; default-lease-time 1209600; option domain-name "ufrgs.br"; } } shared-network bioquimica { # Bioquimica - Campus Saúde subnet 10.0.244.0 netmask 255.255.255.0 { default-lease-time 1209600; option domain-name-servers 10.0.1.52,10.0.1.53; option routers 10.0.244.1; option domain-name "bioquimica.ufrgs.br"; } } After the commands below in OMSHELL, I have received an error message called "key conflict". This error occurs because MAC Address is equal. However, as far as I know, this restriction applies only for IPs within the same subnet, and identical MACs are allowed for different IPs in different subnets. Am I right? DHCP SERVER CONFIGURATIONS 1. The specific operating system name and version of the machine on which the DHCP server or client is running. clodoaldo at nac:~/Scripts$ lsb_release -a LSB Version: core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core-3.0-noarch:core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:core-4.0-amd64:core-4.0-noarch:core-4.1-amd64:core-4.1-noarch:security-4.0-amd64:security-4.0-noarch:security-4.1-amd64:security-4.1-noarch Distributor ID: Ubuntu Description: Ubuntu 14.04.2 LTS Release: 14.04 Codename: trusty 4. The specific version of the DHCP distribution you're running, as reported by dhcpd -t. clodoaldo at nac:~/Scripts$ dhcpd -t Internet Systems Consortium DHCP Server 4.3.3 Copyright 2004-2015 Internet Systems Consortium. All rights reserved. For info, please visithttps://www.isc.org/software/dhcp/ Warning: subnet 10.0.0.0/24 overlaps subnet 10.0.0.0/24 Config file: /etc/dhcpd.conf Database file: /var/db/dhcpd.leases PID file: /var/run/dhcpd.pid OMSHELL COMMANDS root at nac:/home/clodoaldo/Softwares/dhcp-4.3.3.original/dhcp-4.3.3# /usr/local/sbin/dhcpd -cf /etc/dhcpd.conf -lf /var/db/dhcpd.leases -pf eth0 Internet Systems Consortium DHCP Server 4.3.3 Copyright 2004-2015 Internet Systems Consortium. All rights reserved. For info, please visithttps://www.isc.org/software/dhcp/ Warning: subnet 10.0.0.0/24 overlaps subnet 10.0.0.0/24 Config file: /etc/dhcpd.conf Database file: /var/db/dhcpd.leases PID file: eth0 Wrote 0 leases to leases file. Listening on LPF/eth1/7a:7b:0c:e0:29:83/Backup Sending on LPF/eth1/7a:7b:0c:e0:29:83/Backup Listening on LPF/eth0/c2:3f:b8:f9:84:2f/dc-dev Sending on LPF/eth0/c2:3f:b8:f9:84:2f/dc-dev Sending on Socket/fallback/fallback-net failover peer failover-litoral: I move from recover to startup failover peer failover-ceclimar: I move from recover to startup failover peer failover-centro: I move from recover to startup failover peer failover-vale: I move from recover to startup failover peer failover-saude: I move from recover to startup root at nac:/home/clodoaldo/Softwares/dhcp-4.3.3.original/dhcp-4.3.3# ps xa | grep dhcpd 29150 ? Ss 0:00 /usr/local/sbin/dhcpd -cf /etc/dhcpd.conf -lf /var/db/dhcpd.leases -pf eth0 29209 pts/0 S+ 0:00 grep --color=auto dhcpd root at nac:/home/clodoaldo/Softwares/dhcp-4.3.3.original/dhcp-4.3.3# omshell > server localhost > connect obj: <null> > new host obj: host > set usage: set <name> = <value> obj: host > name=10.0.244.2 <STDIN> line 1: unknown token: name name= ^ obj: host > set name=10.0.244.2 obj: host name = 8f:36:f4:02 > set name="10.0.244.2" obj: host name = "10.0.244.2" > set hardware-type=1 obj: host name = "10.0.244.2" hardware-type = 1 > set hardware-address=d6:37:64:30:39:3e obj: host name = "10.0.244.2" hardware-type = 1 hardware-address = d6:37:64:30:39:3e > set ip-address=10.0.244.2 obj: host name = "10.0.244.2" hardware-type = 1 hardware-address = d6:37:64:30:39:3e ip-address = 8f:36:f4:02 > create obj: host name = "10.0.244.2" hardware-type = 00:00:00:01 hardware-address = d6:37:64:30:39:3e ip-address = "10.0.244.2" > new host an object is already open. obj: host name = "10.0.244.2" hardware-type = 00:00:00:01 hardware-address = d6:37:64:30:39:3e ip-address = "10.0.244.2" > close obj: <null> > new host obj: host > set name="10.0.246.2" obj: host name = "10.0.246.2" > set hardware-type=1 obj: host name = "10.0.246.2" hardware-type = 1 > hardware-address=d6:37:64:30:39:3e <STDIN> line 1: unknown token: hardware-address hardware-address= ^ obj: host name = "10.0.246.2" hardware-type = 1 > set hardware-address=d6:37:64:30:39:3e obj: host name = "10.0.246.2" hardware-type = 1 hardware-address = d6:37:64:30:39:3e > set ip-address=10.0.246.2 obj: host name = "10.0.246.2" hardware-type = 1 hardware-address = d6:37:64:30:39:3e ip-address = 8f:36:f6:02 > create can't open object:key conflict obj: host name = "10.0.246.2" hardware-type = 1 hardware-address = d6:37:64:30:39:3e ip-address = 8f:36:f6:02 Regards, Eng. Clodoaldo 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/20151029/6327b667/attachment-0001.html>
More information about the dhcp-users
mailing list