source: connect/dhcp/dhcp-client.xml@ 94a1631

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 94a1631 was e88b385, checked in by Larry Lawrence <larry@…>, 22 years ago

dhcp client line feed before eof

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

  • Property mode set to 100644
File size: 1.6 KB
Line 
1<sect1 id="connect-dhcp-client">
2<?dbhtml filename="dhcpclient.html" dir="connect"?>
3<title>Installing dhcp-&dhcp-version;</title>
4
5<para>The dhcp package comes with both a client and a server program for
6using DHCP. If you want to install it, the instructions can be found
7at <xref linkend="dhcp"/>. Note that if you only want to
8use the client, you do <emphasis>not</emphasis> need to run the server and
9so do not need the startup script and links provided for the server daemon.
10Note that to use the client, you still need to alter your
11<filename>ethnet</filename> script as described in the next section.
12You only need to run the DHCP server however, if you're providing this
13service 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!</para>
15
16<para>To configure the client, you need to modify the
17<filename>/etc/sysconfig/network-devices/ifconfig.eth0</filename> file
18(or the appropriate one for the interface you are running DHCP on)
19you created earlier by adding the appropriate <userinput>DHCP_PROG
20</userinput>, <userinput>DHCP_START</userinput> and
21<userinput>DHCP_STOP</userinput> values.</para>
22
23<para>Then create the <filename>/etc/dhclient.conf</filename> using the
24following command:</para>
25
26<para><screen><userinput>cat &gt; /etc/dhclient.conf &lt;&lt; "EOF"</userinput>
27# dhclient.conf
28
29interface "eth0"{
30prepend domain-name-servers 127.0.0.1;
31request subnet-mask, broadcast-address, time-offset, routers,
32 domain-name, domain-name-servers, host-name;
33require subnet-mask, domain-name-servers;
34}
35# end dhclient.conf
36<userinput>EOF</userinput></screen></para>
37
38</sect1>
Note: See TracBrowser for help on using the repository browser.