[prev in list] [next in list] [prev in thread] [next in thread] 

List:       dhcp-users
Subject:    Re: host declarations based on agent.remote-id
From:       "Austin Gabel" <austin () gilroycal ! com>
Date:       2008-05-20 22:23:05
Message-ID: 15870a1f0805201523r1584cfa3hd1ea06f0ab6160a () mail ! gmail ! com
[Download RAW message or body]

I do something similar to this.  To set the static this way you just create
a pool with a range of one address, and only allow the option 82 info that
you want.  For your setup you could use:


class "customer1" { match if binary-to-ascii(16, 8, ":", substring(option
agent.remote-id, 2, 6)) = "00:00:00:00:00:00" }
pool {deny dynamic bootp clients; allow members of "customer1"; range
192.168.1.100; }


You would need to set up these two lines for each reservation.




On Tue, May 20, 2008 at 4:04 PM, Richard Laager <rlaager@wiktel.com> wrote:

> We're an ISP that's looking to do "static" DHCP addresses (DHCP
> reservations or whatever you want to call them) for certain customers.
> These are DSL customers, so we have an option 82 agent.remote-id that we
> can match on. Right now, we know how to do host declarations with
> "hardware ethernet ...", but we haven't been able to find a way to match
> on remote-id. Is this possible and if so, how?
>
> Thanks,
> Richard
>
>
>

[Attachment #3 (text/html)]

I do something similar to this.&nbsp; To set the static this way you just create a \
pool with a range of one address, and only allow the option 82 info that you \
want.&nbsp; For your setup you could use:<br><br><br>class &quot;customer1&quot; { \
match if binary-to-ascii(16, 8, &quot;:&quot;, substring(option agent.remote-id, 2, \
6)) = &quot;00:00:00:00:00:00&quot; }<br>

pool {deny dynamic bootp clients; allow members of &quot;customer1&quot;; range <a \
href="http://192.168.1.100">192.168.1.100</a>; }<br><br><br>You would need to set up \
these two lines for each reservation.&nbsp; <br><br><br><br> <br><div \
class="gmail_quote">On Tue, May 20, 2008 at 4:04 PM, Richard Laager &lt;<a \
href="mailto:rlaager@wiktel.com">rlaager@wiktel.com</a>&gt; wrote:<br><blockquote \
class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt \
0pt 0.8ex; padding-left: 1ex;"> We&#39;re an ISP that&#39;s looking to do \
&quot;static&quot; DHCP addresses (DHCP<br> reservations or whatever you want to call \
them) for certain customers.<br> These are DSL customers, so we have an option 82 \
agent.remote-id that we<br> can match on. Right now, we know how to do host \
declarations with<br> &quot;hardware ethernet ...&quot;, but we haven&#39;t been able \
to find a way to match<br> on remote-id. Is this possible and if so, how?<br>
<br>
Thanks,<br>
<font color="#888888">Richard<br>
<br>
<br>
</font></blockquote></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic