<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
I'm just logging, not actually doing anything with the option82 info we
may or may not receive depending on which network the customer is
coming from.<br>
<br>
<br>
<small><tt>...<br>
#Only look at DHCP Requests (not discovers, offers, acks, etc) and
contains OPTION 82<br>
if option dhcp-message-type = 3 and exists agent.circuit-id<br>
{<br>
<br>
#Calix format...<br>
if substring(option agent.remote-id, 0, 1) = "N" or
substring(option agent.remote-id, 0, 1) = "n"<br>
{<br>
# Log Circuit ID<br>
log ( info, concat( "Calix OPTION-82 for ",
binary-to-ascii (10, 8, ".",leased-address)," from ",<br>
suffix (concat("0", binary-to-ascii (16, 8, "",
substring( hardware, 1, 1))),2),":",<br>
suffix (concat("0", binary-to-ascii (16, 8, "",
substring( hardware, 2, 1))),2),":",<br>
suffix (concat("0", binary-to-ascii (16, 8, "",
substring( hardware, 3, 1))),2),":",<br>
suffix (concat("0", binary-to-ascii (16, 8, "",
substring( hardware, 4, 1))),2),":",<br>
suffix (concat("0", binary-to-ascii (16, 8, "",
substring( hardware, 5, 1))),2),":",<br>
suffix (concat("0", binary-to-ascii (16, 8, "",
substring( hardware, 6, 1))),2),<br>
" Circuit ID: ", (option agent.circuit-id), "."));<br>
<br>
# Log Agent ID<br>
log ( info, concat( "Calix OPTION-82 for ",
binary-to-ascii (10, 8, ".",leased-address)," from ",<br>
suffix (concat("0", binary-to-ascii (16, 8, "",
substring( hardware, 1, 1))),2),":",<br>
suffix (concat("0", binary-to-ascii (16, 8, "",
substring( hardware, 2, 1))),2),":",<br>
suffix (concat("0", binary-to-ascii (16, 8, "",
substring( hardware, 3, 1))),2),":",<br>
suffix (concat("0", binary-to-ascii (16, 8, "",
substring( hardware, 4, 1))),2),":",<br>
suffix (concat("0", binary-to-ascii (16, 8, "",
substring( hardware, 5, 1))),2),":",<br>
suffix (concat("0", binary-to-ascii (16, 8, "",
substring( hardware, 6, 1))),2),<br>
" Agent ID: " , (option agent.remote-id),".")); <br>
} <br>
else #Assume Cisco format<br>
{<br>
log ( info, concat( "Cisco OPTION-82 for ",
binary-to-ascii (10, 8, ".", leased-address), " is connected to
interface ", <br>
binary-to-ascii (10, 8, "/", suffix ( option
agent.circuit-id, 2)), " (add 1 to port number!), VLAN ",<br>
binary-to-ascii (10, 16, "", substring( option
agent.circuit-id, 2, 2)), " on switch ",<br>
binary-to-ascii(16, 8, ":", substring( option
agent.remote-id, 2, 6))));<br>
<br>
log ( info, concat( "Cisco OPTION-82 for ",
binary-to-ascii (10, 8, ".", leased-address),<br>
" raw option-82 info is CID: ", binary-to-ascii (10, 8,
".", option agent.circuit-id), " AID: ",<br>
binary-to-ascii(16, 8, ".", option agent.remote-id)));<br>
}<br>
<small><br>
}</small></tt><tt><br>
<br>
## IP Pools<br>
include "/etc/dhcpd.pools";<br>
<br>
## Host Entries<br>
include "/etc/dhcpd.hosts";</tt></small><br>
<br>
....<br>
<br>
<br>
<br>
-------- Original Message --------<br>
Subject: Example config with option 82<br>
From: Corley, Kenneth L (Kenny) <a class="moz-txt-link-rfc2396E" href="mailto:corley@alcatel-lucent.com"><corley@alcatel-lucent.com></a><br>
To: <a class="moz-txt-link-abbreviated" href="mailto:dhcp-users@isc.org">dhcp-users@isc.org</a> <a class="moz-txt-link-rfc2396E" href="mailto:'dhcp-users@isc.org'"><'dhcp-users@isc.org'></a><br>
Date: Monday, June 16, 2008 10:15:27 AM<br>
<blockquote
cite="mid:E60778C3916D3548BBCF4D964186348F0195CE88@ILEXC2U01.ndc.lucent.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; ">
<meta name="Generator"
content="MS Exchange Server version 6.5.7651.59">
<title>Example config with option 82</title>
<!-- Converted from text/rtf format -->
<p><font face="Arial" size="2">Does anyone have a basic dhcpd config
that includes option 82 that they can share? I am running 3.0.5.</font>
</p>
<p><font face="Arial" size="2">Thanks</font>
<br>
<font face="Arial" size="2">Kenny</font>
</p>
</blockquote>
<br>
</body>
</html>