<div dir="ltr">Alfred - thanks but your setup is much more complex than mine. <div><br></div><div>Alex, I have put in the changes as you suggested and it passed validation. I'll report back what the logs look like or if I have any further problems. </div><div><br></div><div>Thanks!</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 4, 2016 at 11:12 AM, Alex Moen <span dir="ltr"><<a href="mailto:alexm@ndtel.com" target="_blank">alexm@ndtel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Just comparing with mine, it seems that the "option agent.circuit-id" needs to be in parens. And, I don't know the use of the "(leased-address)" is. So, try this:<br>
<br>
------------------------------<wbr>-----------------------<span class=""><br>
## Option 82 Class<br>
class "myvendor" {<br>
match if option agent.circuit-id = 00:04:00:6b:00:84;<br>
}<br>
<br>
# Test Option 82 logging<br>
if exists agent.circuit-id<br>
{<br>
log (info, concat(<br></span>
"Lease for ", binary-to-ascii (10, 8, ".", leased-address),<br>
" with circuit-id ", (option agent.circuit-id),<br>
" is assigned using Option82"<span class=""><br>
));<br>
}<br>
<br>
pool {<br>
allow members of "myvendor";<br>
range x.x.x.x x.x.x.x;<br>
}<br></span>
------------------------------<wbr>-----------------------<br>
<br>
This should give you a line that looks something like:<br>
<br>
Lease for 192.168.0.10 with circuit-id Ethernet 5 is assigned using Option82<br>
<br>
Obviously, your circuit-id will most likely be something other than "Ethernet 5", but you get the idea.<br>
<br>
If I'm way off base, someone please correct me!<br>
<br>
Good luck,<br>
<br>
Alex<div><div class="h5"><br>
<br>
<br>
On 10/04/2016 10:27 AM, project722 wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Hello DHCP experts! We are implementing Option 82 in our network and I am just scratching the surface of how to setup my server. I have successfully created my first Option 82 ACL based on the agent circuit ID that is contained in the packet, now I just need guidance on how I get the Option 82 data into the logs. Here is my O82 setup on the server:<br>
<br>
## Option 82 Class<br>
class "myvendor" {<br>
match if option agent.circuit-id = 00:04:00:6b:00:84;<br>
}<br>
<br>
# Test Option 82 logging<br>
if exists agent.circuit-id<br>
{<br>
log (info, concat( "Lease for ", option agent.circuit-id (leased-address), "is an address assigned using Option82"));<br>
}<br>
<br>
pool {<br>
allow members of "myvendor";<br>
range x.x.x.x x.x.x.x;<br>
}<br>
<br>
The problem I am having is when I go to check the conf before restarting dhcpd I am getting the error:<br>
<br>
etc/dhcp/dhcpd.conf line 135: right parenthesis expected.<br>
log (info, concat( "Lease for ", option agent.circuit-id (<br>
^<br>
Can anyone tell me what I am doing wrong and how to fix this error?<br>
<br>
<br></div></div>
______________________________<wbr>_________________<br>
dhcp-users mailing list<br>
<a href="mailto:dhcp-users@lists.isc.org" target="_blank">dhcp-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/dhcp-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/<wbr>listinfo/dhcp-users</a><span class="HOEnZb"><font color="#888888"><br>
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
<br>
-- <br>
Alex Moen<br>
NSTII<br>
Calix System Specialist<br>
North Dakota Telephone Company<br>
<a href="tel:701-662-6481" value="+17016626481" target="_blank">701-662-6481</a><br>
<br>
______________________________<wbr>_________________<br>
dhcp-users mailing list<br>
<a href="mailto:dhcp-users@lists.isc.org" target="_blank">dhcp-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/dhcp-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/<wbr>listinfo/dhcp-users</a><br>
</font></span></blockquote></div><br></div>