dhcp-users Digest, Vol 24, Issue 30

Chandan Gupte Chandan.Gupte at alepo.com
Tue Oct 26 01:28:56 UTC 2010


Hi,

You can use option 82(agent.remote-id) if your request is coming via dhcp relay.
You can search for "option 82 with ISC dhcp" on google for link, I have tried but did not get success.

Also, you can have all hardware macs in along with static ips in separate file than dhcpd.conf and you need to include that file in dhcpd.conf. I am not sure if you want this config or not but this is a same config in different way for assiging static ips based on hardware mac.

Chandan


----- Original Message -----
From: dhcp-users-request at lists.isc.org [mailto:dhcp-users-request at lists.isc.org]
Sent: Monday, October 25, 2010 06:04 PM
To: dhcp-users at lists.isc.org <dhcp-users at lists.isc.org>
Subject: dhcp-users Digest, Vol 24, Issue 30

Send dhcp-users mailing list submissions to
        dhcp-users at lists.isc.org

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
        dhcp-users-request at lists.isc.org

You can reach the person managing the list at
        dhcp-users-owner at lists.isc.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of dhcp-users digest..."


Today's Topics:

   1. Re: dhcpd issue static lease on first request (Tom Martinson)
   2. Re: dhcpd issue static lease on first request (Christ Schlacta)
   3. Re: dhcpd issue static lease on first request (Sten Carlsen)


----------------------------------------------------------------------

Message: 1
Date: Mon, 25 Oct 2010 20:40:31 -0400
From: Tom Martinson <thomas.s.martinson at gmail.com>
Subject: Re: dhcpd issue static lease on first request
To: Users of ISC DHCP <dhcp-users at lists.isc.org>
Message-ID: <4CC6237F.1080403 at gmail.com>
Content-Type: text/plain; charset="utf-8"; Format="flowed"

how about setting your lease time to something really really long?  Or
writing a script that will check the dhcp.leases file and then make an
entry for you?

Tom

On 10/25/2010 08:38 PM, Christ Schlacta wrote:
> That's how I started but a I've gotten more hosts it gets a bit
> demanding trying to catch each new nic mac and set an ip. I'd like to
> somehow automate the process of ensuring that every nic gets the first
> ip for forever.
>
> Sent from my iPhone
>
> On Oct 25, 2010, at 17:26, Tom Martinson <thomas.s.martinson at gmail.com
> <mailto:thomas.s.martinson at gmail.com>> wrote:
>
>> Well, there are a couple of ways to do it.  The way that I do it
>> might not work for you, but after I define my subnets, I put an entry
>> in like this.
>>
>> host hgw2 {
>> hardware ethernet 00:26:18:e6:0e:a3;
>> fixed-address 172.30.3.20;
>> }
>>
>>
>> Tom
>>
>> On 10/25/2010 07:50 PM, Christ Schlacta wrote:
>>> Could you explain how or at least link to the relavent config
>>> entries please?
>>>
>>> Sent from my iPhone
>>>
>>> On Oct 25, 2010, at 15:52, Tom Martinson
>>> <thomas.s.martinson at gmail.com <mailto:thomas.s.martinson at gmail.com>>
>>> wrote:
>>>
>>>> Yes it is.
>>>>
>>>> On 10/25/2010 06:49 PM, Christ Schlacta wrote:
>>>>> is it possible to have dhcpd issue a static lease to a client on it's
>>>>> first connection, such that later when the same MAC address tries to
>>>>> connect again later, the same IP address is issued again and the same
>>>>> DNS entries are updated?
>>>>> _______________________________________________
>>>>> 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
>>>>>
>>>> _______________________________________________
>>>> 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
>>>
>>>
>>> _______________________________________________
>>> 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
>> _______________________________________________
>> 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
>
>
> _______________________________________________
> 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/20101025/c44b8a15/attachment-0001.html>

------------------------------

Message: 2
Date: Mon, 25 Oct 2010 17:48:16 -0700
From: Christ Schlacta <aarcane at aarcane.org>
Subject: Re: dhcpd issue static lease on first request
To: Users of ISC DHCP <dhcp-users at lists.isc.org>
Cc: Users of ISC DHCP <dhcp-users at lists.isc.org>
Message-ID: <E88FC479-8F20-464C-B9D8-209FF8B1DC6D at aarcane.org>
Content-Type: text/plain; charset="us-ascii"; Format="flowed";
        DelSp="yes"

I looked into the leases. Mine seems to have built up alot of drift.
Anyway, I did considder that. I was hoping there was some built in
mechanism to accomplish the same effect before I pursued that

Sent from my iPhone

On Oct 25, 2010, at 17:40, Tom Martinson
<thomas.s.martinson at gmail.com> wrote:

> how about setting your lease time to something really really long?
> Or writing a script that will check the dhcp.leases file and then
> make an entry for you?
>
> Tom
>
> On 10/25/2010 08:38 PM, Christ Schlacta wrote:
>>
>> That's how I started but a I've gotten more hosts it gets a bit
>> demanding trying to catch each new nic mac and set an ip. I'd like
>> to somehow automate the process of ensuring that every nic gets the
>> first ip for forever.
>>
>> Sent from my iPhone
>>
>> On Oct 25, 2010, at 17:26, Tom Martinson <thomas.s.martinson at gmail.com
>> > wrote:
>>
>>> Well, there are a couple of ways to do it.  The way that I do it
>>> might not work for you, but after I define my subnets, I put an
>>> entry in like this.
>>>
>>> host hgw2 {
>>> hardware ethernet 00:26:18:e6:0e:a3;
>>> fixed-address 172.30.3.20;
>>> }
>>>
>>>
>>> Tom
>>>
>>> On 10/25/2010 07:50 PM, Christ Schlacta wrote:
>>>>
>>>> Could you explain how or at least link to the relavent config
>>>> entries please?
>>>>
>>>> Sent from my iPhone
>>>>
>>>> On Oct 25, 2010, at 15:52, Tom Martinson <thomas.s.martinson at gmail.com
>>>> > wrote:
>>>>
>>>>> Yes it is.
>>>>>
>>>>> On 10/25/2010 06:49 PM, Christ Schlacta wrote:
>>>>>>
>>>>>> is it possible to have dhcpd issue a static lease to a client
>>>>>> on it's
>>>>>> first connection, such that later when the same MAC address
>>>>>> tries to
>>>>>> connect again later, the same IP address is issued again and
>>>>>> the same
>>>>>> DNS entries are updated?
>>>>>> _______________________________________________
>>>>>> dhcp-users mailing list
>>>>>> dhcp-users at lists.isc.org
>>>>>> https://lists.isc.org/mailman/listinfo/dhcp-users
>>>>>>
>>>>>
>>>>
>>>>> _______________________________________________
>>>>> dhcp-users mailing list
>>>>> dhcp-users at lists.isc.org
>>>>> https://lists.isc.org/mailman/listinfo/dhcp-users
>>>>
>>>> _______________________________________________
>>>> dhcp-users mailing list
>>>> dhcp-users at lists.isc.org
>>>> https://lists.isc.org/mailman/listinfo/dhcp-users
>>>
>>
>>> _______________________________________________
>>> dhcp-users mailing list
>>> dhcp-users at lists.isc.org
>>> https://lists.isc.org/mailman/listinfo/dhcp-users
>>
>> _______________________________________________
>> dhcp-users mailing list
>> dhcp-users at lists.isc.org
>> https://lists.isc.org/mailman/listinfo/dhcp-users
>
> _______________________________________________
> 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/20101025/305fad6c/attachment-0001.html>

------------------------------

Message: 3
Date: Tue, 26 Oct 2010 03:03:53 +0200
From: Sten Carlsen <stenc at s-carlsen.dk>
Subject: Re: dhcpd issue static lease on first request
To: dhcp-users at lists.isc.org
Message-ID: <4CC628F9.3040203 at s-carlsen.dk>
Content-Type: text/plain; charset="utf-8"

I am not sure I follow your problem.

As long as you keep your leases file, one MAC should always get the same
IP, except if it has been given out since last time that MAC was seen.
The only reason it would be given out again is if you run out of IPs.

So if:
- you always retain the leases file
- have enough IPs that it will never be necessary to reuse IPs
then the default behaviour (mandated by RFC) is to always give the same
IP to a MAC.

I assume you see the problem? What does it look like when it happens?
Any specific way to make it happen?

The leases file is added to every time something happens to a lease -
and at some interval a new file is written with the current content of
the in-memory tables. So the last entry in the leases file is the valid one.


On 26/10/10 2:48, Christ Schlacta wrote:
> I looked into the leases. Mine seems to have built up alot of drift.
>  Anyway, I did considder that. I was hoping there was some built in
> mechanism to accomplish the same effect before I pursued that
>
> Sent from my iPhone
>
> On Oct 25, 2010, at 17:40, Tom Martinson <thomas.s.martinson at gmail.com
> <mailto:thomas.s.martinson at gmail.com>> wrote:
>
>> how about setting your lease time to something really really long?
>> Or writing a script that will check the dhcp.leases file and then
>> make an entry for you?
>>
>> Tom
>>
>> On 10/25/2010 08:38 PM, Christ Schlacta wrote:
>>> That's how I started but a I've gotten more hosts it gets a bit
>>> demanding trying to catch each new nic mac and set an ip. I'd like
>>> to somehow automate the process of ensuring that every nic gets the
>>> first ip for forever.
>>>
>>> Sent from my iPhone
>>>
>>> On Oct 25, 2010, at 17:26, Tom Martinson
>>> <thomas.s.martinson at gmail.com <mailto:thomas.s.martinson at gmail.com>>
>>> wrote:
>>>
>>>> Well, there are a couple of ways to do it.  The way that I do it
>>>> might not work for you, but after I define my subnets, I put an
>>>> entry in like this.
>>>>
>>>> host hgw2 {
>>>> hardware ethernet 00:26:18:e6:0e:a3;
>>>> fixed-address 172.30.3.20;
>>>> }
>>>>
>>>>
>>>> Tom
>>>>
>>>> On 10/25/2010 07:50 PM, Christ Schlacta wrote:
>>>>> Could you explain how or at least link to the relavent config
>>>>> entries please?
>>>>>
>>>>> Sent from my iPhone
>>>>>
>>>>> On Oct 25, 2010, at 15:52, Tom Martinson
>>>>> <thomas.s.martinson at gmail.com
>>>>> <mailto:thomas.s.martinson at gmail.com>> wrote:
>>>>>
>>>>>> Yes it is.
>>>>>>
>>>>>> On 10/25/2010 06:49 PM, Christ Schlacta wrote:
>>>>>>> is it possible to have dhcpd issue a static lease to a client on it's
>>>>>>> first connection, such that later when the same MAC address tries to
>>>>>>> connect again later, the same IP address is issued again and the same
>>>>>>> DNS entries are updated?
>>>>>>> _______________________________________________
>>>>>>> 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
>>>>>>>
>>>>>> _______________________________________________
>>>>>> 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
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> 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
>>>> _______________________________________________
>>>> 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
>>>
>>>
>>> _______________________________________________
>>> 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
>> _______________________________________________
>> 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
>
>
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users

--
Best regards

Sten Carlsen

No improvements come from shouting:

       "MALE BOVINE MANURE!!!"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20101026/058a425c/attachment.html>

------------------------------

_______________________________________________
dhcp-users mailing list
dhcp-users at lists.isc.org
https://lists.isc.org/mailman/listinfo/dhcp-users

End of dhcp-users Digest, Vol 24, Issue 30
******************************************


________________________________
This email (message and any attachment) is confidential and may be privileged. If you are not certain that you are the intended recipient, please notify the sender immediately by replying to this message, and delete all copies of this message and attachments. Any other use of this email by you is prohibited.
________________________________





More information about the dhcp-users mailing list