Changeset 173ebeb for networking/connect
- Timestamp:
- 08/02/2014 07:35:19 PM (10 years ago)
- Branches:
- systemd-11177
- Children:
- fc796a2
- Parents:
- 75c56c7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
networking/connect/dhcpcd-systemd.xml
r75c56c7 r173ebeb 118 118 </sect2> 119 119 120 <sect2 role="configuration"> 121 <title>Configuring dhcpcd</title> 122 123 <sect3 id="dhcpcd-config"> 124 <title>Config Files</title> 125 126 <para><filename>/etc/dhcpcd.conf</filename></para> 127 128 <indexterm zone="dhcpcd dhcpcd-config"> 129 <primary sortas="e-etc-dhcpcd-dhcpcd-conf">/etc/dhcpcd/dhcpcd.conf</primary> 130 </indexterm> 131 132 </sect3> 133 134 <sect3 id="dhcpcd-init"> 135 <title>General Configuration Information</title> 136 137 <para> 138 If you want to configure network interfaces at boot using 139 <command>dhcpcd</command>, you need to install the 140 systemd unit included in <xref linkend="bootscripts"/> 141 package by running the following command as the 142 <systemitem class="username">root</systemitem> user: 143 </para> 144 145 <screen role="root"><userinput>make install-dhcpcd</userinput></screen> 146 147 <indexterm zone="dhcpcd dhcpcd-init"> 148 <primary sortas="f-dhcpcd">dhcpcd</primary> 149 </indexterm> 150 151 <para> 152 Whenever <command>dhcpcd</command> configures or shuts down 153 a network interface, it executes hook scripts. For more details 154 about those scripts, see the <command>dhcpcd-run-hooks</command> and 155 <command>dhcpcd</command> man pages. 156 </para> 157 158 <note> 159 <para id="dhcpcd-config3"> 160 The default behavior of <command>dhcpcd</command> sets the 161 hostname and mtu settings. It also overwrites 162 <filename>/etc/resolv.conf</filename> and 163 <filename>/etc/ntp.conf</filename>. 164 165 These modifications to system files and settings on system 166 configuration files are done by hooks which are stored in 167 <filename class="directory">/lib/dhcpcd/dhcpcd-hooks</filename>. 168 169 Setup <command>dhcpcd</command> by removing or adding hooks from/to 170 that directory. The execution of hooks can be disabled by using the 171 <option>--nohook</option> (<option>-C</option>) command line option or 172 by the <option>nohook</option> option in the 173 <filename>/etc/dhcpcd.conf</filename> file. 174 </para> 175 </note> 176 177 <indexterm zone="dhcpcd dhcpcd-config3"> 178 <primary sortas="e-etc-resolv.conf">/etc/resolv.conf</primary> 179 </indexterm> 180 181 <para> 182 At this point you can test if <command>dhcpcd</command> is 183 behaving as expected by running the following command as the 184 <systemitem class="username">root</systemitem> user: 185 </para> 186 187 <screen role="root"><userinput>systemctl start dhcpcd@<replaceable>eth0</replaceable></userinput></screen> 188 189 <para> 190 To start <command>dhcpcd</command> on a specific interface 191 at boot, enable the previously installed systemd unit by 192 running the following command as the 193 <systemitem class="username">root</systemitem> user: 194 </para> 195 196 <screen role="root"><userinput>systemctl enable dhcpcd@<replaceable>eth0</replaceable></userinput></screen> 197 198 <para> 199 Replace <replaceable>eth0</replaceable> with the actual interface name. 200 </para> 201 202 </sect3> 203 204 </sect2> 205 120 206 <sect2 role="content"> 121 207 <title>Contents</title> 122 208 123 209 <segmentedlist> 124 <segtitle>Installed Program </segtitle>125 <segtitle>Installed Librar y</segtitle>126 <segtitle>Installed Director y</segtitle>210 <segtitle>Installed Programs</segtitle> 211 <segtitle>Installed Libraries</segtitle> 212 <segtitle>Installed Directories</segtitle> 127 213 128 214 <seglistitem> 129 215 <seg>dhcpcd</seg> 130 <seg> /lib/dhcpcd/dev/udev.so</seg>216 <seg>None</seg> 131 217 <seg>/lib/dhcpcd</seg> 132 218 </seglistitem> … … 149 235 </varlistentry> 150 236 151 <varlistentry id="dhcpcd-udev">152 <term><filename class="libraryfile">udev.so</filename></term>153 <listitem>154 <para>155 add udev support for interface arrival and departure; this is156 because udev likes to rename the interface, which it can't do if157 dhcpcd grabs it first.158 </para>159 <indexterm zone="dhcpcd dhcpcd-udev">160 <primary sortas="c-dhcpcd-udev">udev.so</primary>161 </indexterm>162 </listitem>163 </varlistentry>164 165 237 </variablelist> 166 238
Note:
See TracChangeset
for help on using the changeset viewer.