[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

dhcp3 reserved addresses aren't completely reserved

Posted on 2011-03-25
2
Medium Priority
?
606 Views
Last Modified: 2012-05-11
I've reserved a handful of IP addresses in the dhcp3 config of a network.

If a machine with a reserved address connects, it gets its address attributed to it with no problems.

However, There are *other* machines that have connected between  the time I configured dhcp3 and the time the reserved machine connects. Oddly, dhcp3 has attributed some of these reserved addresses to other machines.

Then, when a machine with a reservation connects whose address has already been attributed, it gets the reserved address attributed to it all the same, resulting in a conflict.

I include dhcpd.conf and dhcpd.conf.local, below. Please note that I have left only one reservation in the dhcpd.conf.local for the sake of brevity.

Thanks.


# dhcpd.conf:

ddns-update-style interim;
ddns-domainname "somenet.ch";
ddns-rev-domainname "in-addr.arpa.";
ddns-updates on;
update-static-leases on;

option ntp-servers 192.168.16.21;
option netbios-name-servers 192.168.16.21;
option netbios-node-type 8;

include "/etc/dhcp3/rndc.key";
include "/etc/dhcp3/dhcpd.conf.local";

one-lease-per-client on;
option domain-name "somenet.ch";
option domain-name-servers 192.168.16.21, 195.186.4.109;
default-lease-time 14400;
max-lease-time 22000;
authoritative;
log-facility local7;

zone somenet.ch {
        primary 127.0.0.1;
        key rndc-key;
}

zone 16.168.192.in-addr.arpa. {
        primary 127.0.0.1;
        key rndc-key;
}

subnet 192.168.16.0 netmask 255.255.255.0 {
        range dynamic-bootp 192.168.16.101 192.168.16.199;
        option subnet-mask 255.255.255.0;
        option broadcast-address 192.168.16.255;
        # default-lease-time 14400;
        # max-lease-time 14401;
        option routers 192.168.16.1;
        option domain-name-servers 192.168.16.21, 193.246.63.10;
        allow unknown-clients;
}



# dhcpd.conf.local:

    host montpc02 {
        hardware ethernet b8:ac:6f:3f:94:f0;
        fixed-address 192.168.16.102;
    }

Open in new window

0
Comment
Question by:colliek1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 35

Accepted Solution

by:
Duncan Roe earned 2000 total points
ID: 35222018
You have defined a range that includes the "reserved" addresses. You must not do that. You need

range dynamic-bootp 192.168.16.103 192.168.16.199;

(this wastes 192.168.16.101 - you could also have if you want range dynamic-bootp 192.168.16.101 192.168.16.101;)

The point is, defining IP addresses that always go to particular MAC addresses does not of itself reserve them - you can only reserve addresses by excluding them from ranges. It then matters little whether you configure a "static" IP address via the MAC or instead you configure the system to have a real static address (i.e. it doesn't used dhcp).
0
 

Author Closing Comment

by:colliek1
ID: 35223261
Of course. It should have been obvious to me. Thanks for the clear and concise explanation.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question