Ignore:
Timestamp:
10/26/2014 01:39:58 PM (10 years ago)
Author:
Krejzi <krejzi@…>
Branches:
krejzi/svn
Children:
b71b5c8
Parents:
8ddd9c79
Message:

Convert networking/connect, bridge-utils and qemu to systemd.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd-ng@14737 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 moved

Legend:

Unmodified
Added
Removed
  • networking/connect/dhcp-systemd.xml

    r8ddd9c79 r032be17  
    3939
    4040    &lfs76_checked;
     41
     42    <note>
     43      <para>
     44        Make sure that you disable the <command>systemd-networkd</command> service
     45        or configure it not to manage the interfaces you want to manage with
     46        <application>DHCP</application> client.
     47      </para>
     48    </note>
    4149
    4250    <bridgehead renderas="sect3">Package Information</bridgehead>
     
    254262
    255263      <para>
     264        If you want to configure network interfaces at boot using
     265        <command>dhclient</command>, you need to install the
     266        systemd unit included in <xref linkend="bootscripts"/>
     267        package by running the following command as the
     268        <systemitem class="username">root</systemitem> user:
     269      </para>
     270
     271<screen role="root"><userinput>make install-dhclient</userinput></screen>
     272
     273      <indexterm zone="dhcp dhclient-config">
     274        <primary sortas="f-dhclient">dhclient</primary>
     275      </indexterm>
     276
     277      <para>
    256278        At this point you can test if <command>dhclient</command> is
    257279        behaving as expected by running the following command as the
     
    259281      </para>
    260282
    261 <screen role="root"><userinput>dhclient <replaceable>&lt;eth0&gt;</replaceable></userinput></screen>
    262 
    263       <para>
    264         Replace <replaceable>&lt;eth0&gt;</replaceable> with your
    265         desired interface. If you want more verbose output, add the
    266         <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 using
    271         <command>dhclient</command>, you need to install the
    272         <filename>/lib/services/dhclient</filename> script
    273         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 the
    285         <systemitem class="username">root</systemitem> user:
    286       </para>
    287 
    288 <screen role="root"><userinput>cat &gt; /etc/sysconfig/ifconfig.eth0 &lt;&lt; "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 print
    296 # the DHCP assigned IP address
    297 PRINTIP="no"
    298 
    299 # Set PRINTALL="yes" to print the DHCP assigned values for
    300 # 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 see
    315         <command>man 8 dhclient</command>.
     283<screen role="root"><userinput>systemctl start dhclient@<replaceable>eth0</replaceable></userinput></screen>
     284
     285      <para>
     286        To start <command>dhclient</command> on a specific interface
     287        at boot, enable the previously installed systemd unit by
     288        running the following command as the
     289        <systemitem class="username">root</systemitem> user:
     290      </para>
     291
     292<screen role="root"><userinput>systemctl enable dhclient@<replaceable>eth0</replaceable></userinput></screen>
     293
     294      <para>
     295        Replace <replaceable>eth0</replaceable> with the actual interface name.
    316296      </para>
    317297
     
    370350<screen role="root"><userinput>install -v -dm 755 /var/lib/dhcpd</userinput></screen>
    371351
    372        <para>
    373         If you want to start the DHCP Server at boot, install
    374         the <filename>/etc/rc.d/init.d/dhcpd</filename>
    375         init script included in the <xref linkend="bootscripts"/>
    376         package:
     352      <para>
     353        To start the <command>dhcpd</command> daemon at boot,
     354        install the systemd unit from the <xref linkend="bootscripts"/>
     355        package by running the following command as the
     356        <systemitem class="username">root</systemitem> user:
    377357      </para>
    378358
     
    385365      <para>
    386366        You will need to edit the
    387         <filename>/etc/sysconfig/dhcpd</filename> in order
     367        <filename>/etc/default/dhcpd</filename> file in order
    388368        to set the interface on which <command>dhcpd</command>
    389369        will serve the DHCP requests.
Note: See TracChangeset for help on using the changeset viewer.