Changeset 697cb83f
- Timestamp:
- 08/14/2012 10:00:47 PM (11 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 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, ken/inkscape-core-mods, krejzi/svn, lazarus, nosym, perl-modules, plabs/python-mods, qt5new, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/soup3, xry111/test-20220226
- Children:
- e3fec8f
- Parents:
- 17ef733
- Files:
-
- 5 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
archive/dhcp-client.xml
r17ef733 r697cb83f 36 36 <title>Configuring DHCP Client</title> 37 37 38 <para id="dhclient-service ">To configure <command>dhclient</command>,38 <para id="dhclient-service1010">To configure <command>dhclient</command>, 39 39 you need to first install the network service script, 40 40 <filename>/lib/services/dhclient</filename> … … 42 42 (as <systemitem class="username">root</systemitem>):</para> 43 43 44 <indexterm zone="dhcp-client dhclient-service ">44 <indexterm zone="dhcp-client dhclient-service1010"> 45 45 <primary sortas="f-dhclient">dhclient (service script)</primary> 46 46 </indexterm> -
general.ent
r17ef733 r697cb83f 548 548 <!ENTITY ppp-version "2.4.5"> 549 549 <!ENTITY dhcpcd-version "5.6.1"> 550 <!ENTITY dhcp-version "4.2. 3-P2">550 <!ENTITY dhcp-version "4.2.4-P1"> 551 551 552 552 <!-- Obsolete -
introduction/welcome/changelog.xml
r17ef733 r697cb83f 56 56 </listitem> 57 57 <listitem> 58 <para>[krejzi] - Changed dhclient network script to be compatible 59 with the latest book instructions.</para> 60 </listitem> 61 <listitem> 58 62 <para>[krejzi] - Added mtdev 1.1.2, a required dependency 59 63 of the Xorg Synaptics Driver.</para> … … 62 66 <para>[krejzi] - Added patch for Iptables to fix 63 67 compiling with Linux Kernel 3.5.</para> 68 </listitem> 69 <listitem> 70 <para>[krejzi] - Merged dhcp client configuration into 71 dhcp page.</para> 64 72 </listitem> 65 73 <listitem> … … 74 82 </listitem> 75 83 <listitem> 84 <para>[krejzi] - Renamed dhcp bootscript to dhcpd and 85 made it configurable through /etc/sysconfig/dhcpd.</para> 86 </listitem> 87 <listitem> 76 88 <para>[krejzi] - Renamed kerberos bootscript to krb5 and 77 89 made it start kpropd, too. </para> … … 82 94 <listitem> 83 95 <para>[krejzi] - Bumped bootscripts to 20120814.</para> 96 </listitem> 97 <listitem> 98 <para>[krejzi] - DHCP 4.2.4-P1.</para> 84 99 </listitem> 85 100 <listitem> -
networking/connect/connect.xml
r17ef733 r697cb83f 35 35 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="dhcpcd.xml"/> 36 36 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="dhcp.xml"/> 37 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="dhcp-client.xml"/>38 37 39 38 </chapter> -
networking/connect/dhcp.xml
r17ef733 r697cb83f 4 4 <!ENTITY % general-entities SYSTEM "../../general.ent"> 5 5 %general-entities; 6 <!-- isc have a weird way of offering the tarballs and without dots in version! 7 FIXME - change hardcoded 423s in http url and version in ftp when upgrading --> 6 8 7 <!ENTITY dhcp-download-http " "> 9 <!ENTITY dhcp-download-ftp "ftp://ftp.isc.org/isc/dhcp/&dhcp-version;/dhcp-&dhcp-version;.tar.gz">10 <!ENTITY dhcp-md5sum "14f57fd580d01633d0fad4809007a801">11 <!ENTITY dhcp-size "9.1MB">12 <!ENTITY dhcp-buildsize "192 MB (client and server), 140MB client only, 172MB server only">13 <!ENTITY dhcp-time "0.7 SBU (client and server, or server), 0.6 SBU client only">8 <!ENTITY dhcp-download-ftp "ftp://ftp.isc.org/isc/dhcp/&dhcp-version;/dhcp-&dhcp-version;.tar.gz"> 9 <!ENTITY dhcp-md5sum "0ca7181024651f6323951d5498c8020b"> 10 <!ENTITY dhcp-size "7.9 MB"> 11 <!ENTITY dhcp-buildsize "150 MB"> 12 <!ENTITY dhcp-time "1.2 SBU"> 14 13 ]> 15 14 … … 25 24 26 25 <indexterm zone="dhcp"> 27 <primary sortas="a- dhcp">Dhcp</primary>26 <primary sortas="a-DHCP">DHCP</primary> 28 27 </indexterm> 29 28 30 29 <sect2 role="package"> 31 <title>Introduction to DHCP</title> 32 33 <para>The <application>DHCP</application> package contains both the client 34 and server programs for DHCP. <command>dhclient</command> (the client) is 35 useful for connecting your computer to a network which uses DHCP to assign 36 network addresses. <command>dhcpd</command> (the server) is useful for 37 assigning network addresses on your private network.</para> 38 39 &lfs70_checked; 30 <title>Introduction to ISC DHCP</title> 31 32 <para> 33 The <application>ISC DHCP</application> package contains both the client and 34 server programs for DHCP. <command>dhclient</command> (the client) is 35 used for connecting to a network which uses DHCP to assign network 36 addresses. <command>dhcpd</command> (the server) is used for assigning 37 network addresses on private networks. 38 </para> 39 40 &lfs71_checked; 40 41 41 42 <bridgehead renderas="sect3">Package Information</bridgehead> 42 43 <itemizedlist spacing="compact"> 43 44 <listitem> 44 <para>Download (HTTP): <ulink url="&dhcp-download-http;"/></para> 45 </listitem> 46 <listitem> 47 <para>Download (FTP): <ulink url="&dhcp-download-ftp;"/></para> 48 </listitem> 49 <listitem> 50 <para>Download MD5 sum: &dhcp-md5sum;</para> 51 </listitem> 52 <listitem> 53 <para>Download size: &dhcp-size;</para> 54 </listitem> 55 <listitem> 56 <para>Estimated disk space required: &dhcp-buildsize;</para> 57 </listitem> 58 <listitem> 59 <para>Estimated build time: &dhcp-time;</para> 45 <para> 46 Download (HTTP): <ulink url="&dhcp-download-http;"/> 47 </para> 48 </listitem> 49 <listitem> 50 <para> 51 Download (FTP): <ulink url="&dhcp-download-ftp;"/> 52 </para> 53 </listitem> 54 <listitem> 55 <para> 56 Download MD5 sum: &dhcp-md5sum; 57 </para> 58 </listitem> 59 <listitem> 60 <para> 61 Download size: &dhcp-size; 62 </para> 63 </listitem> 64 <listitem> 65 <para> 66 Estimated disk space required: &dhcp-buildsize; 67 </para> 68 </listitem> 69 <listitem> 70 <para> 71 Estimated build time: &dhcp-time; 72 </para> 60 73 </listitem> 61 74 </itemizedlist> 62 75 63 76 <bridgehead renderas="sect3">Additional Downloads</bridgehead> 64 <itemizedlist spacing='compact'> 65 <listitem> 66 <para>Recommended Patch (for client): 67 <ulink url="&patch-root;/dhcp-&dhcp-version;-iproute2-1.patch"/></para> 68 </listitem> 69 <listitem> 70 <para>Optional Patch: 71 <ulink url="&patch-root;/dhcp-&dhcp-version;-missing_ipv6-1.patch"/></para> 77 <itemizedlist spacing="compact"> 78 <listitem> 79 <para> 80 Required Patch: 81 <ulink url="&patch-root;/dhcp-&dhcp-version;-client-script-1.patch"/> 82 </para> 83 </listitem> 84 <listitem> 85 <para> 86 Optional Patch: 87 <ulink url="&patch-root;/dhcp-&dhcp-version;-missing_ipv6-1.patch"/> 88 </para> 72 89 </listitem> 73 90 </itemizedlist> 74 91 75 <bridgehead renderas="sect3">DHCP Dependencies</bridgehead>76 77 <bridgehead renderas="sect4">Required</bridgehead>78 <para role="required"><xref linkend="net-tools"/> is required at runtime79 by <command>dhclient</command> if you do not use the iproute2 patch.</para>80 81 92 <para condition="html" role="usernotes">User Notes: 82 <ulink url="&blfs-wiki;/dhcp"/></para>83 93 <ulink url="&blfs-wiki;/dhcp"/> 94 </para> 84 95 </sect2> 85 96 86 <sect2 role="kernel" id= 'dhcp-kernel'>97 <sect2 role="kernel" id="dhcp-kernel"> 87 98 <title>Kernel Configuration</title> 88 99 89 <para>You must have Packet Socket support (Networking 90 Support ⇒ Networking Options ⇒ Packet Socket) compiled into 91 the kernel. If you do not have IPv6 support (Networking Support ⇒ 92 Networking Options ⇒ The IPv6 Protocol) compiled in, then you 93 must use the missing_ipv6 patch.</para> 100 <para> 101 You must have Packet Socket support (Networking Support ⇒ 102 Networking Options ⇒ Packet Socket) compiled into the kernel. 103 If you do not have IPv6 support (Networking Support ⇒ 104 Networking Options ⇒ The IPv6 Protocol) compiled in, then you 105 must use the missing_ipv6 patch. 106 </para> 94 107 95 108 <indexterm zone="dhcp dhcp-kernel"> 96 <primary sortas="d- dhcp">DHCP</primary>109 <primary sortas="d-DHCP">DHCP</primary> 97 110 </indexterm> 98 111 … … 100 113 101 114 <sect2 role="installation"> 102 <title>Installation of DHCP</title> 103 104 <para>If you have not compiled IPv6 support into the kernel, apply the 105 missing_ipv6 patch</para> 115 <title>Installation of ISC DHCP</title> 116 117 <para> 118 If you have not compiled IPv6 support into the kernel, apply the 119 missing_ipv6 patch: 120 </para> 106 121 107 122 <screen><userinput>patch -Np1 -i ../dhcp-&dhcp-version;-missing_ipv6-1.patch</userinput></screen> 108 123 109 <para>If you are installing the client, apply the iproute2 patch unless you 110 will have installed <application>net-tools</application> by the time you wish 111 to use the client:</para> 112 113 <screen><userinput>patch -Np1 -i ../dhcp-&dhcp-version;-iproute2-1.patch</userinput></screen> 114 115 <para>Install <application>DHCP</application> by running 124 <para>Install <application>ISC DHCP</application> by running 116 125 the following commands:</para> 117 126 118 <screen><userinput>sed -i 's%\(^sbindir =\).*%\1 @prefix@@sbindir@%' server/Makefile.in && 119 ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ 120 --sbindir=/sbin \ 121 --with-srv-lease-file=/var/state/dhcp/dhcpd.leases \ 122 --with-srv6-lease-file=/var/state/dhcp/dhcpd6.leases \ 123 --with-cli-lease-file=/var/state/dhclient.leases \ 124 --with-cli6-lease-file=/var/state/dhclient6.leases && 125 sed -i 's/-Werror//' {client,common,dst,omapip,relay,server,tests}/Makefile</userinput></screen> 126 127 <para>If you only wish to build the server, enter:</para> 128 <screen><userinput>sed -i 's/ client//' Makefile</userinput></screen> 129 130 <para>If you only wish to build the client, enter:</para> 131 <screen><userinput>sed -i 's/ dhcpctl relay server//' Makefile</userinput></screen> 132 133 <para>Build your chosen variant(s) with:</para> 134 <screen><userinput>make</userinput></screen> 135 136 <para>To test the results, issue: <command>make check</command></para> 137 138 <para>Now, as the <systemitem class="username">root</systemitem> user:</para> 139 140 <screen role="root"><userinput>make install && 127 <screen><userinput>patch -Np1 -i ../dhcp-&dhcp-version;-client-script-1.patch && 128 CFLAGS="-D_PATH_DHCLIENT_SCRIPT='\"/sbin/dhclient-script\"' \ 129 -D_PATH_DHCPD_CONF='\"/etc/dhcp/dhcpd.conf\"' \ 130 -D_PATH_DHCLIENT_CONF='\"/etc/dhcp/dhclient.conf\"'" \ 131 ./configure --prefix=/usr \ 132 --sysconfdir=/etc/dhcp \ 133 --localstatedir=/var \ 134 --with-srv-lease-file=/var/lib/dhcpd/dhcpd.leases \ 135 --with-srv6-lease-file=/var/lib/dhcpd/dhcpd6.leases \ 136 --with-cli-lease-file=/var/lib/dhclient/dhclient.leases \ 137 --with-cli6-lease-file=/var/lib/dhclient/dhclient6.leases && 138 make</userinput></screen> 139 140 <para> 141 To test the results, issue: <command>make check</command> 142 </para> 143 144 <para> 145 If you only want to install the <application>ISC DHCP</application> client, 146 issue the following commands as the 147 <systemitem class="username">root</systemitem> user: 148 </para> 149 150 <screen role="root"><userinput>make -C client install && 151 mv -v /usr/sbin/dhclient /sbin && 141 152 install -v -m755 client/scripts/linux /sbin/dhclient-script</userinput></screen> 142 153 143 <para>The supplied <filename>/etc/dhcpd.conf</filename> (server) and 144 <filename>/etc/dhclient.conf</filename> (client) are examples for a 145 specific <literal>BSD</literal> system. They are unlikely to be appropriate 146 to your needs, but you may wish to read them for ideas before deleting them 147 or moving them to a different location.</para> 148 149 <para>Now create any needed directories for the leases.</para> 150 151 <para>For the server:</para> 152 153 <screen role="root"><userinput>mkdir -pv /var/state/dhcp</userinput></screen> 154 155 <para>For the client:</para> 156 <screen role="root"><userinput>mkdir -pv /var/state</userinput></screen> 154 <para> 155 Skip to <xref linkend="dhclient-config"/> in order to configure the client 156 </para> 157 158 <para> 159 If you only want to install the <application>ISC DHCP</application> server, 160 issue the following command as the 161 <systemitem class="username">root</systemitem> user: 162 </para> 163 164 <screen role="root"><userinput>make -C server install</userinput></screen> 165 166 <para> 167 Skip to <xref linkend="dhcpd-config"/> in order to configure the server. 168 </para> 169 170 <para> 171 Alternatively, you can install whole package which includes the client, 172 server, relay, static libraries and development headers by running the 173 following commands as the 174 <systemitem class="username">root</systemitem> user: 175 </para> 176 177 <screen role="root"><userinput>make install && 178 mv -v /usr/sbin/dhclient /sbin && 179 install -v -m755 client/scripts/linux /sbin/dhclient-script</userinput></screen> 157 180 158 181 </sect2> 159 182 160 <sect2 role="commands">161 <title>Command Explanations</title>162 163 <para><command>sed -i 's%\(^sbindir =\).*%\1 @prefix@@sbindir@%' server/Makefile.in</command>164 This command moves the <command>dhcp</command> program to165 <filename class='directory'>/usr/sbin</filename> instead of166 <filename class='directory'>/sbin</filename> because it is not needed167 while the server is booting.</para>168 169 <para><command>--sbindir=/sbin</command> The <command>dhclient</command>170 program is moved to <filename class='directory'>/sbin</filename> instead of171 <filename class='directory'>/usr/sbin</filename> so that it is available172 during boot, e.g. if <filename class='directory'>/usr</filename> is to be173 an <literal>nfs</literal> mount.</para>174 175 <para><command>--with-*-lease-files=...</command> By default, lease files176 are placed in <filename class='directory'>/var/db</filename> which is an177 anachronism.</para>178 179 <para><command>sed -i 's/-Werror//' {client,common,...}/Makefile</command> -180 the Makefiles in this package add <literal>-Werror</literal> to the181 <literal>CFLAGS</literal>. On recent versions of <application>gcc</application>182 more things, particularly unused variables, create warnings. The183 <literal>-Werror</literal> flag causes warnings to break the build, so we184 remove it where necessary.</para>185 186 <para><command>sed -i 's/ something//' Makefile</command> - this stops the187 build from entering the director(y,ies) named here.</para>188 189 <para><option>rm -v /usr/lib/lib{dhcpctl,dst,omapi}.a</option> - there is190 no easy way to prevent these static libraries being installed, but they are191 only needed during the build of this package. <filename>libdhcpctl.a</filename>192 is only installed if you build the server.</para>193 194 </sect2>195 196 183 <sect2 role="configuration"> 197 <title>Configuring DHCP</title>198 199 <sect3 id= 'dhcp-config'>184 <title>Configuring ISC DHCP</title> 185 186 <sect3 id="dhcp-config"> 200 187 <title>Config Files</title> 201 188 202 <para><filename>/etc/dhclient.conf</filename> and 203 <filename>/etc/dhcpd.conf</filename></para> 189 <para> 190 <filename>/etc/dhcp/dhclient.conf</filename> and 191 <filename>/etc/dhcp/dhcpd.conf</filename> 192 </para> 204 193 205 194 <indexterm zone="dhcp dhcp-config"> 206 <primary sortas="e-etc-dhc lient.conf">/etc/dhclient.conf</primary>195 <primary sortas="e-etc-dhcp-dhclient.conf">/etc/dhcp/dhclient.conf</primary> 207 196 </indexterm> 208 197 209 198 <indexterm zone="dhcp dhcp-config"> 210 <primary sortas="e-etc-dhcp d.conf">/etc/dhcpd.conf</primary>199 <primary sortas="e-etc-dhcp-dhcpd.conf">/etc/dhcp/dhcpd.conf</primary> 211 200 </indexterm> 212 201 213 202 </sect3> 214 203 215 <sect3 id='dhcp-init'> 216 <title>Configuration Information</title> 217 218 <para>Information on configuring the DHCP client can be 219 found in <xref linkend="basicnet-connect"/>.</para> 220 221 <para>Note that you only need the DHCP server if you want to issue 222 LAN addresses over your network. The DHCP client doesn't need this 223 script to be used. Also note that this script is coded for the 224 <emphasis role="strong">eth1</emphasis> interface, which may need 225 to be modified for your hardware configuration.</para> 226 227 <para>Install the <filename>/etc/rc.d/init.d/dhcp</filename> 228 init script included in the <xref linkend="bootscripts"/> 229 package.</para> 230 231 <indexterm zone="dhcp dhcp-init"> 232 <primary sortas="f-dhcp">dhcpd</primary> 204 <sect3 id="dhclient-config"> 205 <title>Client Configuration</title> 206 207 <para> 208 Create basic <filename>/etc/dhcp/dhclient.conf</filename> 209 by running the following command as the 210 <systemitem class="username">root</systemitem> user: 211 </para> 212 213 <screen role="root"><userinput>cat > /etc/dhcp/dhclient.conf << "EOF" 214 <literal># Begin /etc/dhcp/dhclient.conf 215 # 216 # Basic dhclient.conf(5) 217 218 #prepend domain-name-servers 127.0.0.1; 219 request subnet-mask, broadcast-address, time-offset, routers, 220 domain-name, domain-name-servers, domain-search, host-name, 221 netbios-name-servers, netbios-scope, interface-mtu, 222 ntp-servers; 223 require subnet-mask, domain-name-servers; 224 #timeout 60; 225 #retry 60; 226 #reboot 10; 227 #select-timeout 5; 228 #initial-interval 2; 229 230 # End /etc/dhcp/dhclient.conf</literal> 231 EOF</userinput></screen> 232 233 <para> 234 See <command>man 5 dhclient.conf</command> for additional options. 235 </para> 236 237 <para> 238 Now create the <filename class="directory">/var/lib/dhclient</filename> 239 directory which will contain DHCP Client leases by running the following 240 command as the <systemitem class="username">root</systemitem> user: 241 </para> 242 243 <screen role="root"><userinput>install -v -dm 755 /var/lib/dhclient</userinput></screen> 244 245 <para> 246 At this point you can test if <command>dhclient</command> is 247 behaving as expected by running the following command as the 248 <systemitem class="username">root</systemitem> user: 249 </para> 250 251 <screen role="root"><userinput>dhclient <replaceable><eth0></replaceable></userinput></screen> 252 253 <para> 254 Replace <replaceable><eth0></replaceable> with your 255 desired interface. If you want more verbose output, add the 256 <command>-v</command> parameter to the command above. 257 </para> 258 259 <para id="dhclient-service"> 260 If you want to configure network interfaces at boot using 261 <command>dhclient</command>, you need to install the 262 <filename>/lib/services/dhclient</filename> script 263 included in <xref linkend="bootscripts"/> package: 264 </para> 265 266 <screen role="root"><userinput>make install-service-dhclient</userinput></screen> 267 268 <indexterm zone="dhcp dhclient-service"> 269 <primary sortas="f-dhclient">dhclient (service script)</primary> 233 270 </indexterm> 234 271 235 <screen role="root"><userinput>make install-dhcp</userinput></screen> 236 237 <para>The lease file must exist on startup. The following command will 238 satisfy that requirement:</para> 239 240 <screen role="root"><userinput>touch /var/state/dhcp/dhcpd.leases</userinput></screen> 241 242 <para>The following commands will create a base configuration file 243 for a DHCP server. There are several options that you may want to 244 add (information that is passed back to the DHCP client) and those 245 are covered in the man pages for <filename>dhcp.conf</filename>.</para> 246 247 <screen role="root"><userinput>cat > /etc/dhcpd.conf << "EOF" 248 <literal>default-lease-time 72000; 249 max-lease-time 144000; 250 251 subnet <replaceable><192.168.5.0></replaceable> netmask <replaceable><255.255.255.0></replaceable> { 252 range <replaceable><192.168.5.10> <192.168.5.240></replaceable>; 253 option broadcast-address <replaceable><192.168.5.255></replaceable>; 254 option routers <replaceable><192.168.5.1></replaceable>; 255 }</literal> 272 <para id="dhclient-ifconfig"> 273 Next, create the <filename>/etc/sysconfig/ifconfig.eth0</filename> 274 configuration file with the following commands as the 275 <systemitem class="username">root</systemitem> user: 276 </para> 277 278 <screen role="root"><userinput>cat > /etc/sysconfig/ifconfig.eth0 << "EOF" 279 <literal>ONBOOT="yes" 280 IFACE="eth0" 281 SERVICE="dhclient" 282 DHCP_START="" 283 DHCP_STOP="" 284 285 # Set PRINTIP="yes" to have the script print 286 # the DHCP assigned IP address 287 PRINTIP="no" 288 289 # Set PRINTALL="yes" to print the DHCP assigned values for 290 # IP, SM, DG, and 1st NS. This requires PRINTIP="yes". 291 PRINTALL="no"</literal> 256 292 EOF</userinput></screen> 257 293 258 <para>All addresses should be changed to meet your circumstance.</para> 294 <indexterm zone="dhcp dhclient-ifconfig"> 295 <primary sortas="e-etc-sysconfig-...-dhclient">/etc/sysconfig/ifconfig.eth0</primary> 296 </indexterm> 297 298 <para> 299 Adjust the file to suit your needs. 300 </para> 301 302 <para> 303 For more information on the appropriate <envar>DHCP_START</envar> 304 and <envar>DHCP_STOP</envar> values see 305 <command>man 8 dhclient</command>. 306 </para> 307 308 </sect3> 309 310 <sect3 id="dhcpd-config"> 311 <title>Server Configuration</title> 312 313 <para> 314 Note that you only need the DHCP server if you want to issue 315 LAN addresses over your network. The DHCP client doesn't need 316 the server in order to function properly. 317 </para> 318 319 <para> 320 Start with creating <filename>/etc/dhcp/dhcpd.conf</filename> 321 by running the following command as the 322 <systemitem class="username">root</systemitem> user: 323 </para> 324 325 <screen role="root"><userinput>cat > /etc/dhcp/dhcpd.conf << "EOF" 326 <literal># Begin /etc/dhcp/dhcpd.conf 327 # 328 # Example dhcpd.conf(5) 329 330 # Use this to enble / disable dynamic dns updates globally. 331 ddns-update-style none; 332 333 # option definitions common to all supported networks... 334 option domain-name "example.org"; 335 option domain-name-servers ns1.example.org, ns2.example.org; 336 337 default-lease-time 600; 338 max-lease-time 7200; 339 340 # This is a very basic subnet declaration. 341 subnet 10.254.239.0 netmask 255.255.255.224 { 342 range 10.254.239.10 10.254.239.20; 343 option routers rtr-239-0-1.example.org, rtr-239-0-2.example.org; 344 } 345 346 # End /etc/dhcp/dhcpd.conf</literal> 347 EOF</userinput></screen> 348 349 <para> 350 Adjust the file to suit your needs. See 351 <command>man 5 dhcpd.conf</command> for additional options. 352 </para> 353 354 <para> 355 Now create the <filename class="directory">/var/lib/dhcpd</filename> 356 directory which will contain DHCP Server leases by running the following 357 command as the <systemitem class="username">root</systemitem> user: 358 </para> 359 360 <screen role="root"><userinput>install -v -dm 755 /var/lib/dhcpd</userinput></screen> 361 362 <para> 363 If you want to start the DHCP Server at boot, install 364 the <filename>/etc/rc.d/init.d/dhcpd</filename> 365 init script included in the <xref linkend="bootscripts"/> 366 package: 367 </para> 368 369 <screen role="root"><userinput>make install-dhcpd</userinput></screen> 370 371 <indexterm zone="dhcp dhcpd-config"> 372 <primary sortas="f-dhcpd">dhcpd</primary> 373 </indexterm> 374 375 <para> 376 You will need to edit the 377 <filename>/etc/sysconfig/dhcpd</filename> in order 378 to set the interface on which <command>dhcpd</command> 379 will serve the DHCP requests. 380 </para> 259 381 260 382 </sect3> … … 271 393 272 394 <seglistitem> 273 <seg>dhcpd, dhcrelay, dhclient, dhclient-script, and omshell</seg> 274 <seg>libbdhcpctl.a, libdst.a, libomapi.a</seg> 275 <seg>/var/state/dhcp, /usr/include/omapip, and /usr/include/isi-dhcp</seg> 395 <seg> 396 dhclient, dhclient-script, dhcpd, dhcrelay and omshell 397 </seg> 398 <seg> 399 libdhcpctl.a, libdst.a and libomapi.a 400 </seg> 401 <seg> 402 /usr/include/dhcpctl, 403 /usr/include/isc-dhcp, 404 /usr/include/omapip, 405 /var/lib/dhclient and 406 /var/lib/dhcpd 407 </seg> 276 408 </seglistitem> 277 409 </segmentedlist> … … 285 417 <term><command>dhclient</command></term> 286 418 <listitem> 287 <para>is the implementation of the DHCP client.</para> 419 <para> 420 is the implementation of the DHCP client. 421 </para> 288 422 <indexterm zone="dhcp dhclient"> 289 423 <primary sortas="b-dhclient">dhclient</primary> … … 295 429 <term><command>dhclient-script</command></term> 296 430 <listitem> 297 <para>is used by dhclient to (re)configure interfaces. It can make 298 extra changes by invoking custom dhclient-{entry,exit}-hooks.</para> 431 <para> 432 is used by dhclient to (re)configure interfaces. It can make 433 extra changes by invoking custom dhclient-{entry,exit}-hooks. 434 </para> 299 435 <indexterm zone="dhcp dhclient-script"> 300 436 <primary sortas="b-dhclient-script">dhclient-script</primary> … … 306 442 <term><command>dhcpd</command></term> 307 443 <listitem> 308 <para>implements Dynamic Host Configuration Protocol (DHCP) and 309 Internet Bootstrap Protocol (BOOTP) requests for network 310 addresses.</para> 444 <para> 445 implements Dynamic Host Configuration Protocol (DHCP) and 446 Internet Bootstrap Protocol (BOOTP) requests for network 447 addresses. 448 </para> 311 449 <indexterm zone="dhcp dhcpd"> 312 450 <primary sortas="b-dhcpd">dhcpd</primary> … … 318 456 <term><command>dhcrelay</command></term> 319 457 <listitem> 320 <para>provides a means to accept DHCP and BOOTP requests on a subnet 321 without a DHCP server and relay them to a DHCP server on another 322 subnet.</para> 458 <para> 459 provides a means to accept DHCP and BOOTP requests on a subnet 460 without a DHCP server and relay them to a DHCP server on another 461 subnet. 462 </para> 323 463 <indexterm zone="dhcp dhcrelay"> 324 464 <primary sortas="b-dhcrelay">dhcrelay</primary> … … 330 470 <term><command>omshell</command></term> 331 471 <listitem> 332 <para> provides an interactive way to connect to, query, and 333 possibly change, the ISC DHCP Server's state via OMAPI, the 334 Object Management API.</para> 472 <para> 473 provides an interactive way to connect to, query and 474 possibly change the ISC DHCP Server's state via OMAPI, the 475 Object Management API. 476 </para> 335 477 <indexterm zone="dhcp omshell"> 336 478 <primary sortas="b-omshell">omshell</primary> -
networking/netutils/networkmanager.xml
r17ef733 r697cb83f 91 91 <xref linkend="consolekit"/>, 92 92 <xref linkend="dhcpcd"/> or 93 <xref linkend="dhcp -client"/>,93 <xref linkend="dhcp"/> (client only), 94 94 <xref linkend="gobject-introspection"/>, 95 95 <xref linkend="iptables"/>,
Note:
See TracChangeset
for help on using the changeset viewer.