source: connect/dhcp/dhcp-client.xml@ 01600b9

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.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 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb v1_0 v5_0 v5_0-pre1 v5_1 v5_1-pre1 xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 01600b9 was 01600b9, checked in by Larry Lawrence <larry@…>, 21 years ago

update to sendmail-8.12.9

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

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