⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dhcpcd.html

📁 ADI 公司blackfin系列的用户使用文挡。
💻 HTML
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head>  <title></title>  <link rel="stylesheet" media="screen" type="text/css" href="./style.css" />  <link rel="stylesheet" media="screen" type="text/css" href="./design.css" />  <link rel="stylesheet" media="print" type="text/css" href="./print.css" />  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body><a href=start.html>start</a></br><div class="toc"><div class="tocheader toctoggle" id="toc__header">Table of Contents</div><div id="toc__inside"><ul class="toc"><li class="level1"><div class="li"><span class="li"><a href="#dynamic_host_configuration_protocol" class="toc">Dynamic Host Configuration Protocol</a></span></div><ul class="toc"><li class="level2"><div class="li"><span class="li"><a href="#what_is_dhcp" class="toc">What is DHCP</a></span></div></li><li class="level2"><div class="li"><span class="li"><a href="#howto_man_pages" class="toc">HowTo &amp; man pages</a></span></div></li><li class="level2"><div class="li"><span class="li"><a href="#dhcp_clients_in_uclinux" class="toc">DHCP clients in uClinux</a></span></div><ul class="toc"><li class="level3"><div class="li"><span class="li"><a href="#dhcp_client_options" class="toc">DHCP Client Options</a></span></div></li><li class="level3"><div class="li"><span class="li"><a href="#using_the_dhcp_client" class="toc">Using the DHCP client</a></span></div></li></ul></li><li class="level2"><div class="li"><span class="li"><a href="#dhcp_servers_in_uclinux" class="toc">DHCP Servers in uClinux</a></span></div><ul class="toc"><li class="level3"><div class="li"><span class="li"><a href="#dhcp_server_options" class="toc">DHCP Server Options</a></span></div></li></ul></li><li class="level2"><div class="li"><span class="li"><a href="#for_more_information" class="toc">For More Information</a></span></div></li></ul></li></ul></div></div><h1><a name="dynamic_host_configuration_protocol" id="dynamic_host_configuration_protocol">Dynamic Host Configuration Protocol</a></h1><div class="level1"></div><!-- SECTION [1-51] --><h2><a name="what_is_dhcp" id="what_is_dhcp">What is DHCP</a></h2><div class="level2"><p>DHCP&rsquo;s purpose is to enable individual computers (the &lsquo;DHCP client&rsquo;) on an IP network to extract their configurations from a server (the &lsquo;DHCP server&rsquo;) or servers, in particular, servers that have no exact information about the individual computers until they request the information. The overall purpose of this is to reduce the work necessary to administer a large IP network. The most significant piece of information distributed in this manner is the IP address. </p><p>DHCP was created by the Dynamic Host Configuration Working Group of the Internet Engineering Task Force (IETF; a volunteer organization which defines protocols for use on the Internet). As such, it&rsquo;s definition is recorded in an Internet RFC and the Internet Activities Board (IAB) is asserting its status as to Internet Standardization. </p></div><!-- SECTION [52-885] --><h2><a name="howto_man_pages" id="howto_man_pages">HowTo &amp; man pages</a></h2><div class="level2"><p>There are Howtos and man pages avalible for desktop dhcp client and servers:</p><ul><li class="level1"><div class="li"> <a href="http://www.tldp.org/HOWTO/DHCP/index.html" class="urlextern" title="http://www.tldp.org/HOWTO/DHCP/index.html"  rel="nofollow">DHCP mini-HOWTO</a></div><ul><li class="level2"><div class="li"> <a href="http://www.tldp.org/HOWTO/DHCP/x74.html" class="urlextern" title="http://www.tldp.org/HOWTO/DHCP/x74.html"  rel="nofollow">Client Setup</a></div></li><li class="level2"><div class="li"> <a href="http://www.tldp.org/HOWTO/DHCP/x369.html" class="urlextern" title="http://www.tldp.org/HOWTO/DHCP/x369.html"  rel="nofollow">Server Setup</a></div></li></ul></li></ul></div><!-- SECTION [886-1186] --><h2><a name="dhcp_clients_in_uclinux" id="dhcp_clients_in_uclinux">DHCP clients in uClinux</a></h2><div class="level2"></div><!-- SECTION [1187-1225] --><h3><a name="dhcp_client_options" id="dhcp_client_options">DHCP Client Options</a></h3><div class="level3"><p>There are a few options for dhcp clients in uClinux, depending on the features and size of the application you are looking for.</p><ul><li class="level1"><div class="li"> <code>./user/dhcpcd-new</code> : dhcpcd-1.3.20-pl0 (04/06/2001) maintained by Sergei Viznyuk, <a href="http://www.phystech.com/download/dhcpcd.html" class="urlextern" title="http://www.phystech.com/download/dhcpcd.html"  rel="nofollow">web site</a> <strong>DEFAULT</strong></div></li><li class="level1"><div class="li"> <code>./user/dhcpcd</code> : dhcpcd-0.70 writen by Yoichi Hariguchi</div></li><li class="level1"><div class="li"> <code>./user/dhcp-isc</code> : Internet Systems Consortium reference implementation Version 2 Patchlevel 5, (September 6, 2000) <a href="http://www.isc.org/index.pl?/sw/dhcp/" class="urlextern" title="http://www.isc.org/index.pl?/sw/dhcp/"  rel="nofollow">web site</a></div></li><li class="level1"><div class="li"> <code>./busybox/networking/udhcp/</code> : Busybox has a <a href="http://www.busybox.net/downloads/BusyBox.html#item_udhcpc" class="urlextern" title="http://www.busybox.net/downloads/BusyBox.html#item_udhcpc"  rel="nofollow">dhcp client</a></div></li></ul><p> All the DHCP clients have their own <code>README</code> files in the directories in cvs, but should be able to be built by selecting them in the menuconfiguration system.</p></div><!-- SECTION [1226-2069] --><h3><a name="using_the_dhcp_client" id="using_the_dhcp_client">Using the DHCP client</a></h3><div class="level3"><p>Depending on which client you have selected, this example may be slightly different - this is the default from <code>./user/dhcpcd-new</code>. To use the dhcp client deamon in uClinux, it is pretty easy:</p><ol><li class="level1"><div class="li"> Check to see if networking is configured:<pre class="code">root:~&gt; ifconfiglo        Link encap:Local Loopback          inet addr:127.0.0.1  Mask:255.0.0.0          UP LOOPBACK RUNNING  MTU:16436  Metric:1          RX packets:0 errors:0 dropped:0 overruns:0 frame:0          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0          collisions:0 txqueuelen:0</pre></div></li><li class="level1"><div class="li"> run the dhcp client deamon, and put it in the background:<pre class="code">root:~&gt; dhcpcd &amp;28</pre><p>The 28 means that the process id of the dhcpcd is 28.</p></div></li><li class="level1"><div class="li"> check on the network, to make sure the dhcp client has recieved a IP number:<pre class="code">root:~&gt; ifconfigeth0      Link encap:Ethernet  HWaddr C6:FB:5F:FA:AE:31          inet addr:10.64.204.139  Bcast:10.64.204.255  Mask:255.255.255.0          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1          RX packets:14 errors:0 dropped:0 overruns:0 frame:0          TX packets:15 errors:0 dropped:0 overruns:0 carrier:0          collisions:0 txqueuelen:1000lo        Link encap:Local Loopback          inet addr:127.0.0.1  Mask:255.0.0.0          UP LOOPBACK RUNNING  MTU:16436  Metric:1          RX packets:0 errors:0 dropped:0 overruns:0 frame:0          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0          collisions:0 txqueuelen:0</pre></div></li><li class="level1"><div class="li"> You can check on other things as well:<pre class="code">root:~&gt; cat /etc/dhcpc/dhcpcd-eth0.infoIPADDR=10.64.204.141NETMASK=255.255.255.0NETWORK=10.64.204.0BROADCAST=10.64.204.255GATEWAY=10.64.204.1DOMAIN=ad.analog.comDNS=10.64.53.110,10.64.51.110,10.66.5.110,10.64.82.11DHCPSID=10.64.204.245DHCPGIADDR=0.0.0.0DHCPSIADDR=0.0.0.0DHCPCHADDR=EA:24:5B:7B:B8:20DHCPSHADDR=00:D0:B7:74:C9:BEDHCPSNAME=LEASETIME=259200RENEWALTIME=129600REBINDTIME=226800</pre><p>This indicates the networking settings the dhcp client has received from the dhcp server. If you are using a non-volitale file system, sometimes bad data in the <code>/etc/dhcpc</code> directory can cause the dhcp client not to ask the server for the correct information, and the best thing is to remove the files in this directory.</p></div></li></ol></div><!-- SECTION [2070-4373] --><h2><a name="dhcp_servers_in_uclinux" id="dhcp_servers_in_uclinux">DHCP Servers in uClinux</a></h2><div class="level2"></div><!-- SECTION [4374-4410] --><h3><a name="dhcp_server_options" id="dhcp_server_options">DHCP Server Options</a></h3><div class="level3"><p>There are a few options for dhcp servers in uClinux, depending on the features and size of the application you are looking for.</p><p><img src="images/smileys/fixme.gif" align="middle" alt="FIXME" />!</p></div><!-- SECTION [4411-4577] --><h2><a name="for_more_information" id="for_more_information">For More Information</a></h2><div class="level2"><p> There are many sites on the internet which are dedicated to DHCP. Here are a few good ones:</p><ul><li class="level1"><div class="li"> <a href="http://www.dhcp-handbook.com/" class="urlextern" title="http://www.dhcp-handbook.com/"  rel="nofollow">THE DHCP HANDBOOK</a></div></li><li class="level1"><div class="li"> <a href="http://www.dhcp.org/" class="urlextern" title="http://www.dhcp.org/"  rel="nofollow">Resources for DHCP</a></div></li><li class="level1"><div class="li"> <a href="http://www.isc.org/index.pl?/sw/dhcp/" class="urlextern" title="http://www.isc.org/index.pl?/sw/dhcp/"  rel="nofollow">Internet Systems Consortium reference implementation of all aspects of DHCP</a></div></li></ul></div><!-- SECTION [4578-] --></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -