<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<STYLE>.hmmessage P {
PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px
}
BODY.hmmessage {
FONT-SIZE: 10pt; FONT-FAMILY: Verdana
}
</STYLE>
<META content="MSHTML 6.00.6000.16809" name=GENERATOR></HEAD>
<BODY class=hmmessage>
<DIV dir=ltr align=left><SPAN class=468465015-16072009><FONT face=Arial
color=#0000ff>We use a config recipe that looks like:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=468465015-16072009><FONT face=Arial
color=#0000ff></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=468465015-16072009><FONT face=Arial
color=#0000ff></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=468465015-16072009><FONT face=Arial
color=#0000ff>if exists agent.circuit-id<BR>{</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=468465015-16072009><FONT face=Arial
color=#0000ff> log ( info,
concat(
<BR>
"---- Lease for IP=", binary-to-ascii (10, 8, ".",
leased-address),
<BR>
" Remote-ID=", (option
agent.remote-id),<BR>
" Circuit-ID=", (option
agent.circuit-id), <BR>
));<BR>}</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=468465015-16072009></SPAN><FONT face=Arial><FONT
color=#0000ff>A<SPAN class=468465015-16072009>s DJ pointed out, this
necessitates that your relay is including option 82 information in the first
place. With the "if exists" tag, the information will only be logged if
that's true. </SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><SPAN
class=468465015-16072009></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><SPAN
class=468465015-16072009>Curt</SPAN></FONT></FONT></DIV>
<DIV><BR></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma><B>From:</B> dhcp-users-bounces@lists.isc.org
[mailto:dhcp-users-bounces@lists.isc.org] <B>On Behalf Of
</B>WeiWei<BR><B>Sent:</B> Wednesday, July 15, 2009 7:49 PM<BR><B>To:</B>
dhcp-users@lists.isc.org<BR><B>Subject:</B> [SPAM] <BR></FONT><BR></DIV>
<DIV></DIV>Hi there,<BR> As I noticed that the dhcpd only
gives out the IP address assigned to certain MAC address in the log file, is it
possible for the dhcp server gives out more detailed log information? If we can
get the option 82 information in the log file, it will be great and in fact
necessary for we need that information in case we need to trace the customer
from the log.<BR><BR>Best,<BR><BR>Wei Wei<BR><BR>
<HR>
没有互动,哪来共识?微软地图MSN互动为你提供全新地图浏览体验! <A
href="http://ditu.live.com/?form=TL&swm=1" target=_new>立即试用!</A>
</BODY></HTML>