<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 10 (filtered)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:新細明體;
panose-1:2 2 5 0 0 0 0 0 0 0;}
@font-face
{font-family:"\@新細明體";
panose-1:2 2 5 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.EmailStyle17
{font-family:Arial;
color:windowtext;}
span.value33
{background:white;}
/* Page Definitions */
@page Section1
{size:595.3pt 841.9pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;
layout-grid:18.0pt;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=ZH-TW link=blue vlink=purple style='text-justify-trim:punctuation'>
<div class=Section1 style='layout-grid:18.0pt'>
<p class=MsoNormal><span class=value33><font size=1 color="#333333" face=Arial><span
lang=EN-US style='font-size:7.0pt;font-family:Arial;color:#333333'>Hi,</span></font></span></p>
<p class=MsoNormal><span class=value33><font size=1 color="#333333" face=Arial><span
lang=EN-US style='font-size:7.0pt;font-family:Arial;color:#333333'>On ubuntu linux,
I use dhclient to get IP address.</span></font></span></p>
<p class=MsoNormal><span class=value33><font size=1 color="#333333" face=Arial><span
lang=EN-US style='font-size:7.0pt;font-family:Arial;color:#333333'>I add the
following statements in the default configuration file
(/etc/dhcp3/dhclient.conf).</span></font></span></p>
<p class=MsoNormal><span class=value33><font size=1 color="#333333" face=Arial><span
lang=EN-US style='font-size:7.0pt;font-family:Arial;color:#333333'>---------------------------------------------------------------------</span></font></span></p>
<p class=MsoNormal><span class=value33><b><font size=1 color="#333333"
face=Arial><span lang=EN-US style='font-size:7.0pt;font-family:Arial;
color:#333333;font-weight:bold'># DHCP option 125</span></font></b></span></p>
<p class=MsoNormal><span class=value33><b><font size=1 color="#333333"
face=Arial><span lang=EN-US style='font-size:7.0pt;font-family:Arial;
color:#333333;font-weight:bold'>option option-125 code 125 = string;</span></font></b></span></p>
<p class=MsoNormal><span class=value33><font size=1 color="#333333" face=Arial><span
lang=EN-US style='font-size:7.0pt;font-family:Arial;color:#333333'> </span></font></span></p>
<p class=MsoNormal><span class=value33><b><font size=1 color="#333333"
face=Arial><span lang=EN-US style='font-size:7.0pt;font-family:Arial;
color:#333333;font-weight:bold'>send option-125 00:00:0d:e9:26:</span></font></b></span><span class=value33><b><font size=1 color="#333333" face=Arial><span lang=EN-US
style='font-size:7.0pt;font-family:Arial;color:#333333;font-weight:bold'>01:06:30:30:31:41:32:41:02</span></font></b></span><span
class=value33><b><font size=1 color="#333333" face=Arial><span lang=EN-US
style='font-size:7.0pt;font-family:Arial;color:#333333;font-weight:bold'>:0a:41:30:30:30:30:30:30:30:30:31:03:10:53:70:65:65:64:73:74:72:65:</span></font></b></span><span class=value33><b><font size=1 color="#333333" face=Arial><span lang=EN-US
style='font-size:7.0pt;font-family:Arial;color:#333333;font-weight:bold'>61:6d:20:33:36:31:30</span></font></b></span><span
class=value33><b><font size=1 color="#333333" face=Arial><span lang=EN-US
style='font-size:7.0pt;font-family:Arial;color:#333333;font-weight:bold'>;</span></font></b></span></p>
<p class=MsoNormal><span class=value33><font size=1 color="#333333" face=Arial><span
lang=EN-US style='font-size:7.0pt;font-family:Arial;color:#333333'> </span></font></span></p>
<p class=MsoNormal><span class=value33><font size=1 color="#333333" face=Arial><span
lang=EN-US style='font-size:7.0pt;font-family:Arial;color:#333333'>request
subnet-mask, broadcast-address, time-offset, routers, domain-name,
domain-name-servers, host-name, netbios-name-servers, netbios-scope, <b><span
style='font-weight:bold'>option-125</span></b>;</span></font></span></p>
<p class=MsoNormal><span class=value33><font size=1 color="#333333" face=Arial><span
lang=EN-US style='font-size:7.0pt;font-family:Arial;color:#333333'>---------------------------------------------------------------------</span></font></span></p>
<p class=MsoNormal><span class=value33><font size=1 color="#333333" face=Arial><span
lang=EN-US style='font-size:7.0pt;font-family:Arial;color:#333333'>I use [tcpdump
-i eth0 -s 2000 -w /tmp/dhcp.dump &] to dump the dhcp packets. The file is
at [http://www.badongo.com/file/7925128]. I use Wireshark to see the result.</span></font></span></p>
<p class=MsoNormal><span class=value33><font size=1 color="#333333" face=Arial><span
lang=EN-US style='font-size:7.0pt;font-family:Arial;color:#333333'>I find:</span></font></span></p>
<p class=MsoNormal style='text-indent:24.0pt'><span class=value33><font size=1
color="#333333" face=Arial><span lang=EN-US style='font-size:7.0pt;font-family:
Arial;color:#333333'>1. The option-125 data isn't sent .</span></font></span></p>
<p class=MsoNormal style='text-indent:24.0pt'><span class=value33><font size=1
color="#333333" face=Arial><span lang=EN-US style='font-size:7.0pt;font-family:
Arial;color:#333333'>2. The requests of netbios-name-servers, netbios-scope and
option-125 options aren't sent.</span></font></span></p>
<p class=MsoNormal><span class=value33><font size=1 color="#333333" face=Arial><span
lang=EN-US style='font-size:7.0pt;font-family:Arial;color:#333333'>I also
create a execute file 'dumpenv' in '/etc/dhcp3/dhclient-enter-hooks.d'
directory, and its content is [env > /tmp/variables.txt].</span></font></span></p>
<p class=MsoNormal><span class=value33><font size=1 color="#333333" face=Arial><span
lang=EN-US style='font-size:7.0pt;font-family:Arial;color:#333333'>I expect
that I can get a 'variables.txt' in /tmp directory, but I don't find this file.</span></font></span></p>
<p class=MsoNormal><span class=value33><font size=1 color="#333333" face=Arial><span
lang=EN-US style='font-size:7.0pt;font-family:Arial;color:#333333'>What shuld I
do?</span></font></span></p>
<p class=MsoNormal><span class=value33><font size=1 color="#333333" face=Arial><span
lang=EN-US style='font-size:7.0pt;font-family:Arial;color:#333333'>Thank you.</span></font></span></p>
</div>
</body>
</html>