Changeset d49cae5 for networking/connect
- Timestamp:
- 07/20/2014 01:41:38 PM (10 years ago)
- Branches:
- systemd-11177
- Children:
- abf6e26b
- Parents:
- e39afa06
- Location:
- networking/connect
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
networking/connect/connect.xml
re39afa06 rd49cae5 34 34 <!-- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="ppp.xml"/> --> 35 35 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="dhcpcd.xml"/> 36 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="dhcp .xml"/>36 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="dhcp-systemd.xml"/> 37 37 38 38 </chapter> -
networking/connect/dhcp-systemd.xml
re39afa06 rd49cae5 261 261 <screen role="root"><userinput>dhclient <replaceable><eth0></replaceable></userinput></screen> 262 262 263 <para>264 Replace <replaceable><eth0></replaceable> with your265 desired interface. If you want more verbose output, add the266 <command>-v</command> parameter to the command above.267 </para>268 269 <para id="dhclient-service">270 If you want to configure network interfaces at boot using271 <command>dhclient</command>, you need to install the272 <filename>/lib/services/dhclient</filename> script273 included in <xref linkend="bootscripts"/> package:274 </para>275 276 <screen role="root"><userinput>make install-service-dhclient</userinput></screen>277 278 <indexterm zone="dhcp dhclient-service">279 <primary sortas="f-dhclient">dhclient (service script)</primary>280 </indexterm>281 282 <para id="dhclient-ifconfig">283 Next, create the <filename>/etc/sysconfig/ifconfig.eth0</filename>284 configuration file with the following commands as the285 <systemitem class="username">root</systemitem> user:286 </para>287 288 <screen role="root"><userinput>cat > /etc/sysconfig/ifconfig.eth0 << "EOF"289 <literal>ONBOOT="yes"290 IFACE="eth0"291 SERVICE="dhclient"292 DHCP_START=""293 DHCP_STOP=""294 295 # Set PRINTIP="yes" to have the script print296 # the DHCP assigned IP address297 PRINTIP="no"298 299 # Set PRINTALL="yes" to print the DHCP assigned values for300 # IP, SM, DG, and 1st NS. This requires PRINTIP="yes".301 PRINTALL="no"</literal>302 EOF</userinput></screen>303 304 <indexterm zone="dhcp dhclient-ifconfig">305 <primary sortas="e-etc-sysconfig-...-dhclient">/etc/sysconfig/ifconfig.eth0</primary>306 </indexterm>307 308 <para>309 Adjust the file to suit your needs.310 </para>311 312 <para>313 For more information on the appropriate <envar>DHCP_START</envar>314 and <envar>DHCP_STOP</envar> values see315 <command>man 8 dhclient</command>.316 </para>317 318 263 </sect3> 319 264 … … 370 315 <screen role="root"><userinput>install -v -dm 755 /var/lib/dhcpd</userinput></screen> 371 316 372 373 If you want to start the DHCP Server at boot, install374 the <filename>/etc/rc.d/init.d/dhcpd</filename>375 init script included in the <xref linkend="bootscripts"/>376 package:317 <para> 318 To start the <command>dhcpd</command> daemon at boot, 319 install the systemd unit from the <xref linkend="bootscripts"/> 320 package by running the following command as the 321 <systemitem class="username">root</systemitem> user: 377 322 </para> 378 323 … … 385 330 <para> 386 331 You will need to edit the 387 <filename>/etc/ sysconfig/dhcpd</filename>in order332 <filename>/etc/default/dhcpd</filename> file in order 388 333 to set the interface on which <command>dhcpd</command> 389 334 will serve the DHCP requests.
Note:
See TracChangeset
for help on using the changeset viewer.