<div>thanks for such helpful answer.</div>
<div> sorry for the late acknoledge from me.</div>
<div> </div>
<div>regards,</div>
<div>abhijit<br><br> </div>
<div><span class="gmail_quote">On 10/20/08, <b class="gmail_sendername">Glenn Satchell</b> <<a href="mailto:Glenn.Satchell@uniq.com.au">Glenn.Satchell@uniq.com.au</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">no need to convert to an ascii string first, just do a binary compare:<br><br>match if(binary-to-ascii(16, 8, ":", option agent.remote-id) =<br>
"0:30:4b:db:65:50");<br><br>match if(option agent.remote-id = 00:30:4b:db:65:50);<br><br>but sub-classes are a better way to achieve this. There's an example in the<br>dhcpd.conf man page.<br><br>class "POOLA" {<br>
match option agent.remote-id;<br>}<br># repeat these lines for every remote-id that you want to match this class<br>subclass "POOLA" 0:30:4b:db:65:50;<br><br>regards,<br>-glenn<br><br><br>>Subject: SV: remote-id<br>
>Date: Sun, 19 Oct 2008 06:55:08 +0200<br>>From: "Anders Rosendal" <<a href="mailto:anders@rosendal.nu">anders@rosendal.nu</a>><br>>To: <<a href="mailto:dhcp-users@isc.org">dhcp-users@isc.org</a>><br>
><br>>I interpret this as a question of remote-id in option 82.<br>><br>><br>><br>>0:30:4b:db:65:50 is mgmt-mac of switch A<br>><br>>0:30:45:55:bb:80 is mgmt-mac of switch B<br>><br>><br>><br>
>class "POOLA" {<br>><br>> match if(binary-to-ascii(16, 8, ":", option agent.remote-id) =<br>"0:30:4b:db:65:50");<br>><br>>}<br>><br>><br>><br>>class "POOLB" {<br>
><br>> match if(binary-to-ascii(16, 8, ":", option agent.remote-id) =<br>"0:30:45:55:bb:80");<br>><br>>}<br>><br>><br>><br>>pool {<br>><br>> range <a href="http://10.0.0.10">10.0.0.10</a> <a href="http://10.0.0.254">10.0.0.254</a>;<br>
><br>> allow members of "POOLA";<br>><br>>}<br>><br>><br>><br>>pool {<br>><br>> range <a href="http://172.31.0.10">172.31.0.10</a> <a href="http://172.31.0.254">172.31.0.254</a>;<br>
><br>> allow members of "POOLB";<br>><br>>}<br>><br>><br>><br>>Regards Anders R<br>><br>><br>><br>><br>><br>>Från: <a href="mailto:dhcp-users-bounce@isc.org">dhcp-users-bounce@isc.org</a> [mailto:<a href="mailto:dhcp-users-bounce@isc.org">dhcp-users-bounce@isc.org</a>] För abhijit<br>
khadatare<br>>Skickat: den 17 oktober 2008 12:54<br>>Till: <a href="mailto:dhcp-users@isc.org">dhcp-users@isc.org</a><br>>Ämne: remote-id<br>><br>><br>><br>>hello everyone,<br>> i want to configure dhcp server on the basis of remote-id<br>
>it something like that<br>>if remote-id is xx:yy:xx:yy:xx:yy<br>>then give ip from pool---A<br>>if remote-id is yy:xx:yy:xx:yy:xx<br>>then give ip from pool--B<br>><br>><br>>--<br>>This message has been scanned for viruses and<br>
>dangerous content by MailScanner <<a href="http://www.mailscanner.info/">http://www.mailscanner.info/</a>> at<br>><a href="http://mars.rosendal.nu">mars.rosendal.nu</a>, and is believed to be clean.<br>><br>
><br>>--<br>>This message has been scanned for viruses and<br>>dangerous content by MailScanner on <a href="http://mars.rosendal.nu">mars.rosendal.nu</a>,<br>>and is believed to be clean.<br>><br><br><br>
</blockquote></div><br>