Send dhcp-users mailing list submissions to
[email protected]
Advertising
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.isc.org/mailman/listinfo/dhcp-users
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of dhcp-users digest..."
Today's Topics:
1. [Bug Report] key conflict message for create host by Omapi
(Clodoaldo de Borba Lambiase)
----------------------------------------------------------------------
Message: 1
Date: Wed, 28 Oct 2015 19:28:30 +0000
From: Clodoaldo de Borba Lambiase <[email protected]>
To: "[email protected]" <[email protected]>
Subject: [Bug Report] key conflict message for create host by Omapi
Message-ID:
<[email protected]>
Content-Type: text/plain; charset="iso-8859-1"
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@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@nac:~/Scripts$ dhcpd -t
Internet Systems Consortium DHCP Server 4.3.3
Copyright 2004-2015 Internet Systems Consortium.
All rights reserved.
For info, please visit https://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@nac:/home/clodoaldo/Softwares/dhcp-4.3.3.original/dhcp-4.3.3#<mailto:root@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 visit https://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@nac:/home/clodoaldo/Softwares/dhcp-4.3.3.original/dhcp-4.3.3#<mailto:root@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@nac:/home/clodoaldo/Softwares/dhcp-4.3.3.original/dhcp-4.3.3#<mailto:root@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
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<https://lists.isc.org/pipermail/dhcp-users/attachments/20151028/240069de/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dhcpd.conf
Type: application/octet-stream
Size: 5570 bytes
Desc: dhcpd.conf
URL:
<https://lists.isc.org/pipermail/dhcp-users/attachments/20151028/240069de/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dhcpd.leases
Type: application/octet-stream
Size: 2606 bytes
Desc: dhcpd.leases
URL:
<https://lists.isc.org/pipermail/dhcp-users/attachments/20151028/240069de/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dhcpd.subnets
Type: application/octet-stream
Size: 58734 bytes
Desc: dhcpd.subnets
URL:
<https://lists.isc.org/pipermail/dhcp-users/attachments/20151028/240069de/attachment-0002.obj>
------------------------------
_______________________________________________
dhcp-users mailing list
[email protected]
https://lists.isc.org/mailman/listinfo/dhcp-users
End of dhcp-users Digest, Vol 84, Issue 25
******************************************