source: connect/dhcp/dhcp-client.xml@ 36f9a23

10.0 10.1 11.0 11.1 6.0 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 krejzi/svn lazarus nosym perl-modules qt5new systemd-11177 systemd-13485 trunk upgradedb v5_0 v5_0-pre1 v5_1 v5_1-pre1 xry111/intltool xry111/test-20220226
Last change on this file since 36f9a23 was 36f9a23, checked in by Larry Lawrence <larry@…>, 19 years ago

update intro to ppp

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1144 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 2.2 KB
Line 
1<sect1 id="connect-dhcp-client">
2<?dbhtml filename="dhcpclient.html" dir="connect"?>
3<title>dhcp-&dhcp-version;</title>
4
5<para>The <application>dhcp</application> package comes with both a client
6(called <command>dhclient</command>) and a server program for using
7<acronym>DHCP</acronym>. If you want to install this package,
8the instructions can be found at <xref linkend="dhcp"/>.
9Note that if you only want to use the client, you
10do <emphasis>not</emphasis> need to run the server and so do not need
11the startup script and links provided for the server daemon.
12You only need to run the <acronym>DHCP</acronym> server if you're providing
13this service to a network, and it's likely that you'll know if that's the
14case; if it isn't, don't run the server! Once you have installed the
15package, return here for information on how to configure the client
16(<command>dhclient</command>).</para>
17
18<para>To configure <command>dhclient</command>, you need to create two files,
19<filename>/etc/sysconfig/network-devices/ifconfig.eth0</filename> and
20<filename>/etc/dhclient.conf</filename>.</para>
21
22<para>First, create the <filename>ifconfig.eth0</filename>
23file with the following commands (note that this will overwrite any
24existing file):</para>
25
26<screen><userinput><command>cd /etc/sysconfig/network-devices &amp;&amp;
27cat &gt; /etc/sysconfig/network-devices/ifconfig.eth0 &lt;&lt; "EOF"</command>
28ONBOOT=yes
29DHCP_PROG=/sbin/dhclient
30DHCP_START=&lt;appropriate start parameters&gt;
31DHCP_STOP=-r
32<command>EOF</command></userinput></screen>
33
34<para>For more information on the appropriate
35<envar>DHCP_START</envar> and <envar>DHCP_STOP</envar>
36values, examine the man page for <command>dhclient</command>.</para>
37
38<para>Next, you should then create
39the <filename>/etc/dhclient.conf</filename> using the following command:</para>
40
41<screen><userinput><command>cat &gt; /etc/dhclient.conf &lt;&lt; "EOF"</command>
42# dhclient.conf
43
44interface "eth0"{
45prepend domain-name-servers 127.0.0.1;
46request subnet-mask, broadcast-address, time-offset, routers,
47 domain-name, domain-name-servers, host-name;
48require subnet-mask, domain-name-servers;
49}
50# end dhclient.conf
51<command>EOF</command></userinput></screen>
52
53</sect1>
Note: See TracBrowser for help on using the repository browser.