Changeset 0125883 for BOOK/network/common
- Timestamp:
- Jan 23, 2014, 10:09:00 PM (11 years ago)
- Branches:
- clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
- Children:
- 3a85bbd
- Parents:
- 15f0ac6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/network/common/dhcp.xml
r15f0ac6 r0125883 9 9 <?dbhtml filename="network-dhcp.html"?> 10 10 11 <title>DHCP Network ingConfiguration</title>11 <title>DHCP Network Configuration</title> 12 12 13 13 <sect2> 14 <title>Creating the DHCP Network Interface Configuration File s</title>14 <title>Creating the DHCP Network Interface Configuration File</title> 15 15 16 <para>The following is an example for the eth0 interface. Create the 17 <filename>/etc/sysconfig/ifconfig.eth0</filename> 18 configuration file using the following commands. Adjust appropriately for 19 additional interfaces:</para> 16 <para>The following is an example for the eth0 interface. Refer to the 17 dhcpcd.conf man page for more information. This step may be skipped if 18 default behavior of dhcpcd is required.</para> 20 19 21 <screen><userinput>mkdir -pv /etc/sysconfig && 22 cd /etc/sysconfig && 23 cat > ifconfig.eth0 << "EOF" 24 <literal>SERVICE="dhcpcd" 20 <para>Create the <filename>/etc/dhcpcd.conf</filename> configuration file 21 using the following commands. Adjust appropriately for additional options:</para> 25 22 26 # Start Command for DHCPCD 27 DHCP_START="-q" 23 <screen><userinput>cd /etc && 24 cat > dhcpcd.conf << "EOF" 25 <literal># dhcpcd configuration eth0 interface 26 # See dhcpcd.conf(5) for details. 28 27 29 # Stop Command for DHCPCD 30 DHCP_STOP="-k"</literal> 28 interface eth0 29 # dhcpcd-run-hooks uses these options. 30 option subnet_mask, routers, domain_name_servers 31 32 # The default timeout for waiting for a DHCP response is 30 seconds 33 # which may be too long or too short and can be changed here. 34 timeout 16</literal> 31 35 EOF</userinput></screen> 32 33 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"34 href="static.xml"35 xpointer="xpointer(//*[@os='var-ob'])"/>36 37 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"38 href="static.xml"39 xpointer="xpointer(//*[@os='var-s'])"/>40 41 <para>The <envar>DHCP_START</envar> and <envar>DHCP_STOP</envar> variables42 arguments that are passed onto <filename>dhcpcd</filename> when starting43 and stoppping the service. More information about what can be passed can44 be found in the <filename>dhcpcd(8)</filename> man page.</para>45 36 46 37 <para>To configure another Static Interface, Follow <xref linkend="ch-network-static"/>.</para> … … 48 39 </sect2> 49 40 41 <sect2> 42 <title>Configuring the Network Interface at boot</title> 43 44 <para>Enabling of the Network Interface configuration is 45 done per interface. To enable Network Interface 46 configuration at boot, run:</para> 47 48 <screen role="nodump"><userinput>systemctl enable dhcpcd@eth0</userinput></screen> 49 50 <para>To disable previously enabled Network Interface 51 configuration at boot, run:</para> 52 53 <screen role="nodump"><userinput>systemctl disable dhcpcd@eth0</userinput></screen> 54 55 <para>To manually start the Network Interface configuration, 56 run:</para> 57 58 <screen role="nodump"><userinput>systemctl start dhcpcd@eth0</userinput></screen> 59 60 <para>Replace eth0 with the correct Network Interface 61 name as described on the beginning of this page.</para> 62 63 </sect2> 64 50 65 </sect1>
Note:
See TracChangeset
for help on using the changeset viewer.