<html>

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Lucida Sans Unicode";
        panose-1:2 11 6 2 3 5 4 2 2 4;}
@font-face
        {font-family:\00CB\00CE\00CC\00E5;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        font-size:10.5pt;
        font-family:"Lucida Sans Unicode";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {font-family:"Lucida Sans Unicode";
        color:navy;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
 /* Page Definitions */
 @page Section1
        {size:595.3pt 841.9pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;
        layout-grid:15.6pt;}
div.Section1
        {page:Section1;}
 /* List Definitions */
 ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
-->
</style>

</head>

<body lang=ZH-CN link=blue vlink=purple style='text-justify-trim:punctuation'>

<div class=Section1 style='layout-grid:15.6pt'>

<p class=MsoNormal><font size=3 color=navy face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:navy'>Hello all</span></font></p>

<p class=MsoNormal><font size=3 color=navy face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:navy'>I’ve met several weird
problems when I debug the DHCP server on PPC.</span></font></p>

<p class=MsoNormal><font size=3 color=navy face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:navy'>All the source codes are tested
ok on my local PC (host test) and the functionalities of DHCP server are
excellent! However, when I debug the same DHCP server on a target PPC
environment, some weird problems happened.</span></font></p>

<p class=MsoNormal style='margin-left:21.0pt;text-indent:-21.0pt'><font size=3
color=navy face=Wingdings><span lang=EN-US style='font-size:12.0pt;font-family:
Wingdings;color:navy'>l<font size=1 face="Times New Roman"><span
style='font:7.0pt "Times New Roman"'>       
</span></font></span></font><font size=3 color=navy><span lang=EN-US
style='font-size:12.0pt;color:navy'>DHCP server can not work properly with dual
network adaptors. The two adaptors are not in the same network subnets (e.g.,
one is in 192.168.*.* and another in 10.9.*.*). I have to disable one of them
so that the DHCP server can work although I configured the ‘dhcpd.conf’
and added these two subnets into this file. </span></font></p>

<p class=MsoNormal style='margin-left:21.0pt;text-indent:-21.0pt'><font size=3
color=navy face=Wingdings><span lang=EN-US style='font-size:12.0pt;font-family:
Wingdings;color:navy'>l<font size=1 face="Times New Roman"><span
style='font:7.0pt "Times New Roman"'>       
</span></font></span></font><font size=3 color=navy><span lang=EN-US
style='font-size:12.0pt;color:navy'>I disable one of the adaptors and the DHCP
server runs. However, when I send DHCPDISCOVER to DHCP server, it always
allocates the IP address in the first subnet I configured in ‘dhcpd.conf’.
when DHCPREQUEST is received, the DHCP server always responses with NAK. The subnet
configuration in ‘dhcpd.conf’ is as following</span></font></p>

<p class=MsoNormal><font size=3 color=red face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:red'> </span></font></p>

<p class=MsoNormal><font size=3 color=red face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:red'># dhcpd.conf</span></font></p>

<p class=MsoNormal><font size=3 color=red face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:red'>#</span></font></p>

<p class=MsoNormal><font size=3 color=red face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:red'># Sample configuration file for
ISC dhcpd</span></font></p>

<p class=MsoNormal><font size=3 color=red face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:red'>#</span></font></p>

<p class=MsoNormal><font size=3 color=red face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:red'> </span></font></p>

<p class=MsoNormal><font size=3 color=red face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:red'># option definitions common to
all supported networks...</span></font></p>

<p class=MsoNormal><font size=3 color=red face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:red'>option domain-name
"example.org";</span></font></p>

<p class=MsoNormal><font size=3 color=red face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:red'>option domain-name-servers
ns1.example.org, ns2.example.org;</span></font></p>

<p class=MsoNormal><font size=3 color=red face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:red'> </span></font></p>

<p class=MsoNormal><font size=3 color=red face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:red'>default-lease-time 0xffffffff;</span></font></p>

<p class=MsoNormal><font size=3 color=red face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:red'>max-lease-time 0xffffffff;</span></font></p>

<p class=MsoNormal><font size=3 color=red face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:red'> </span></font></p>

<p class=MsoNormal><font size=3 color=red face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:red'>ddns-update-style ad-hoc;</span></font></p>

<p class=MsoNormal><font size=3 color=red face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:red'> </span></font></p>

<p class=MsoNormal><font size=3 color=red face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:red'># If this DHCP server is the
official DHCP server for the local</span></font></p>

<p class=MsoNormal><font size=3 color=red face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:red'># network, the authoritative
directive should be uncommented.</span></font></p>

<p class=MsoNormal><font size=3 color=red face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:red'>authoritative;</span></font></p>

<p class=MsoNormal><font size=3 color=red face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:red'> </span></font></p>

<p class=MsoNormal><font size=3 color=red face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:red'># Use this to send dhcp log
messages to a different log file (you also</span></font></p>

<p class=MsoNormal><font size=3 color=red face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:red'># have to hack syslog.conf to
complete the redirection).</span></font></p>

<p class=MsoNormal><font size=3 color=red face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:red'>log-facility local7;</span></font></p>

<p class=MsoNormal><font size=3 color=red face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:red'> </span></font></p>

<p class=MsoNormal><font size=3 color=red face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:red'>subnet 192.168.0.0 netmask 255.255.0.0
{</span></font></p>

<p class=MsoNormal><font size=3 color=red face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:red'>  range 192.168.144.1
192.168.144.6;</span></font></p>

<p class=MsoNormal><font size=3 color=red face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:red'>  range 192.168.143.1
192.168.143.6;</span></font></p>

<p class=MsoNormal><font size=3 color=red face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:red'>  range 192.168.142.1
192.168.142.6;</span></font></p>

<p class=MsoNormal><font size=3 color=red face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:red'>  range 192.168.141.1
192.168.141.6;</span></font></p>

<p class=MsoNormal><font size=3 color=red face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:red'>  range 192.168.140.1
192.168.140.6;</span></font></p>

<p class=MsoNormal><font size=3 color=red face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:red'>  range 192.168.139.1
192.168.139.6;</span></font></p>

<p class=MsoNormal><font size=3 color=red face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:red'>  range 192.168.138.1
192.168.138.6;</span></font></p>

<p class=MsoNormal><font size=3 color=red face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:red'>  range 192.168.137.1
192.168.137.6;</span></font></p>

<p class=MsoNormal><font size=3 color=red face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:red'>  range 192.168.136.1
192.168.136.6;</span></font></p>

<p class=MsoNormal><font size=3 color=red face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:red'>  range 192.168.135.1
192.168.135.6;</span></font></p>

<p class=MsoNormal><font size=3 color=red face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:red'>  range 192.168.134.1
192.168.134.6;</span></font></p>

<p class=MsoNormal><font size=3 color=red face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:red'>  range 192.168.133.1
192.168.133.6;</span></font></p>

<p class=MsoNormal><font size=3 color=red face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:red'>  range 192.168.132.1
192.168.132.6;</span></font></p>

<p class=MsoNormal><font size=3 color=red face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:red'>  range 192.168.131.1
192.168.131.6;</span></font></p>

<p class=MsoNormal><font size=3 color=red face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:red'>  range 192.168.130.1
192.168.130.6;</span></font></p>

<p class=MsoNormal><font size=3 color=red face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:red'>  range 192.168.129.1
192.168.129.6;</span></font></p>

<p class=MsoNormal><font size=3 color=red face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:red'>  option routers
192.168.180.254;</span></font></p>

<p class=MsoNormal><font size=3 color=red face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:red'>  default-lease-time
0xffffffff;</span></font></p>

<p class=MsoNormal><font size=3 color=red face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:red'>  max-lease-time 0xffffffff;</span></font></p>

<p class=MsoNormal><font size=3 color=red face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:red'>}</span></font></p>

<p class=MsoNormal><font size=3 color=navy face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:navy'>The DHCP server always allocates
192.168.</span></font><font size=3 color=red><span lang=EN-US style='font-size:
12.0pt;color:red'>144</span></font><font size=3 color=navy><span lang=EN-US
style='font-size:12.0pt;color:navy'>.6, 192.168.</span></font><font size=3
color=red><span lang=EN-US style='font-size:12.0pt;color:red'>144</span></font><font
size=3 color=navy><span lang=EN-US style='font-size:12.0pt;color:navy'>.5 …
to client even though the client requests for a legal IP address such as 192.168.133.2
and so on.</span></font></p>

<p class=MsoNormal><font size=3 color=navy face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:navy'>Even though I comment the first “range”
definition in this subnet as following</span></font></p>

<p class=MsoNormal><font size=3 color=red face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:red'>…</span></font></p>

<p class=MsoNormal><font size=3 color=red face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:red'>subnet 192.168.0.0 netmask 255.255.0.0
{</span></font></p>

<p class=MsoNormal><font size=3 color=red face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:red'>  #range 192.168.144.1
192.168.144.6;</span></font></p>

<p class=MsoNormal><font size=3 color=red face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:red'>  range 192.168.143.1
192.168.143.6;</span></font></p>

<p class=MsoNormal><font size=3 color=red face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:red'>  range 192.168.142.1
192.168.142.6;</span></font></p>

<p class=MsoNormal><font size=3 color=red face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:red'>…</span></font></p>

<p class=MsoNormal><font size=3 color=navy face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:navy'>The DHCP server then responses 192.168.</span></font><font
size=3 color=red><span lang=EN-US style='font-size:12.0pt;color:red'>143</span></font><font
size=3 color=navy><span lang=EN-US style='font-size:12.0pt;color:navy'>.6, 192.168.</span></font><font
size=3 color=red><span lang=EN-US style='font-size:12.0pt;color:red'>143</span></font><font
size=3 color=navy><span lang=EN-US style='font-size:12.0pt;color:navy'>.5 …</span></font></p>

<p class=MsoNormal><font size=3 color=navy face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:navy'>Is the differences between PPC
and x86 that cause this problem? It’s really weird and I’m totally
confused in it.</span></font></p>

<p class=MsoNormal><font size=3 color=navy face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:navy'>Does anybody ever meet such kind
of this problem or some similar ones? Could some one help me out of this
problem?</span></font></p>

<p class=MsoNormal><font size=3 color=navy face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:navy'>Thanks a lot and thanks all of
you for your concern!</span></font></p>

<p class=MsoNormal><font size=3 color=navy face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:navy'> </span></font></p>

<p class=MsoNormal><font size=2 color=navy face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:10.5pt;color:navy'>Best Regards!</span></font></p>

<p class=MsoNormal><b><font size=2 color=navy face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:10.0pt;color:navy;font-weight:bold'>DA MING</span></font></b></p>

<p class=MsoNormal style='line-height:12.0pt'><font size=2 color=navy
face="Lucida Sans Unicode"><span lang=EN-GB style='font-size:10.5pt;color:navy;
background:#FFFFFD'>(</span></font><font color="#ff6600"><span lang=EN-GB
style='color:#FF6600'> </span></font><u><font color=navy><span lang=EN-US
style='color:navy'>25-84731240-5109 / (Alcanet) 2735-5109</span></font></u></p>

<p class=MsoNormal style='line-height:12.0pt'><font size=2 color=navy
face="Lucida Sans Unicode"><span lang=EN-US style='font-size:10.5pt;color:navy'><a
href="mailto:Ming.Da@alcatel-sbell.com.cn">Ming.Da@alcatel-sbell.com.cn</a></span></font></p>

<p class=MsoNormal><font size=2 face="Lucida Sans Unicode"><span lang=EN-US> </span></font></p>

</div>

</body>

</html>