Changeset c1cacc30


Ignore:
Timestamp:
07/20/2014 04:21:35 PM (10 years ago)
Author:
Krejzi <krejzi@…>
Branches:
systemd-11177
Children:
c7edc8da
Parents:
5992481
Message:

Remove configuration section from dhcpcd and bridge-utils. Need to think of equivalent for systemd. Remove references to netfs and random scripts.

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

Files:
1 deleted
4 edited
2 moved

Legend:

Unmodified
Added
Removed
  • TODO

    r5992481 rc1cacc30  
    11gpm
    22svn server
    3 iptables
    43wpa_supplicant
     4provide systemd units for dhcpcd and dhclient
     5add separate bridge configuration for systemd-networkd
  • networking/connect/connect.xml

    r5992481 rc1cacc30  
    3333
    3434<!--  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="ppp.xml"/> -->
    35   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="dhcpcd.xml"/>
     35  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="dhcpcd-systemd.xml"/>
    3636  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="dhcp-systemd.xml"/>
    3737
  • networking/connect/dhcpcd-systemd.xml

    r5992481 rc1cacc30  
    118118  </sect2>
    119119
    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>To configure <command>dhcpcd</command>, you need to first install
    138       the network service script,
    139       <filename>/lib/services/dhcpcd</filename>
    140       included in the <xref linkend="bootscripts"/> package
    141       (as user <systemitem class="username">root</systemitem>):</para>
    142 
    143       <indexterm zone="dhcpcd dhcpcd-init">
    144         <primary sortas="f-dhcpcd">dhcpcd (service script)</primary>
    145       </indexterm>
    146 
    147 <screen role='root'><userinput>make install-service-dhcpcd</userinput></screen>
    148 
    149       <para>Whenever <command>dhcpcd</command> configures or shuts down
    150       a network interface, it executes hook scripts. For more details
    151       about those scripts, see the <command>dhcpcd-run-hooks</command> and
    152       <command>dhcpcd</command> man pages.</para>
    153 
    154       <para id="dhcpcd-config2">Finally, as the <systemitem
    155       class="username">root</systemitem> user create the
    156       <filename>/etc/sysconfig/ifconfig.eth0</filename>
    157       configuration file using the following commands.  Adjust appropriately
    158       for additional interfaces:</para>
    159 
    160       <indexterm zone="dhcpcd dhcpcd-config2">
    161         <primary sortas="e-etc-sysconfig-dhcpcd">/etc/sysconfig/ifconfig.eth0 (dhcpcd)</primary>
    162       </indexterm>
    163 
    164 <screen role='root'><userinput>cat &gt; /etc/sysconfig/ifconfig.eth0 &lt;&lt; "EOF"
    165 <literal>ONBOOT="yes"
    166 IFACE="eth0"
    167 SERVICE="dhcpcd"
    168 DHCP_START="-b -q <replaceable>&lt;insert appropriate start options here&gt;</replaceable>"
    169 DHCP_STOP="-k <replaceable>&lt;insert additional stop options here&gt;</replaceable>"</literal>
    170 EOF</userinput></screen>
    171 
    172       <para>For more information on the appropriate <envar>DHCP_START</envar> and
    173       <envar>DHCP_STOP</envar> values, examine the man page for
    174       <command>dhcpcd</command>.</para>
    175 
    176       <note>
    177 
    178         <para id="dhcpcd-config3">The default behavior of
    179         <command>dhcpcd</command> sets the hostname and mtu settings.  It also
    180         overwrites <filename>/etc/resolv.conf</filename> and
    181         <filename>/etc/ntp.conf</filename>.
    182 
    183         These modifications to system files and settings on system
    184         configuration files are done by hooks which are stored in <filename
    185         class="directory">/lib/dhcpcd/dhcpcd-hooks</filename>.
    186 
    187         Setup <command>dhcpcd</command> by removing or adding hooks from/to
    188         that directory.  The execution of hooks can be disabled by using the
    189         <option>--nohook</option> (<option>-C</option>) command line option or
    190         by the <option>nohook</option> option in the
    191         <filename>/etc/dhcpcd.conf</filename> file.</para>
    192 
    193         <para>Review the <command>dhcpcd</command> man page for switches to add
    194         to the <envar>DHCP_START</envar> value.</para>
    195 
    196       </note>
    197 
    198       <indexterm zone="dhcpcd dhcpcd-config3">
    199         <primary sortas="e-etc-resolv.conf">/etc/resolv.conf</primary>
    200       </indexterm>
    201     </sect3>
    202 
    203     <sect3 id="dhcpcd-init2">
    204       <title>Configuration Information: fixed ip</title>
    205 
    206       <para id="dhcpcd-config4">Although not usual, it is possible that you need
    207         to configure <application>dhcpcd</application> to use a fixed ip. Here,
    208         we give an example. As the
    209         <systemitem class="username">root</systemitem> user create the
    210         <filename>/etc/sysconfig/ifconfig.eth0</filename> configuration file
    211         using the following commands.  Adjust appropriately for additional
    212         interfaces and for the actual ip and router you need:</para>
    213 
    214       <indexterm zone="dhcpcd dhcpcd-config4">
    215         <primary sortas="e-etc-sysconfig-dhcpcd">/etc/sysconfig/ifconfig.eth0 (dhcpcd)</primary>
    216       </indexterm>
    217 
    218 <screen role='root'><userinput>cat &gt; /etc/sysconfig/ifconfig.eth0 &lt;&lt; "EOF"
    219 <literal>ONBOOT="yes"
    220 IFACE="eth0"
    221 SERVICE="dhcpcd"
    222 DHCP_START="-b -q -S ip_address=192.168.0.10/24 -S routers=192.168.0.1"
    223 DHCP_STOP="-k"</literal>
    224 EOF</userinput></screen>
    225 
    226       <para>You can either use DNS servers in
    227         <filename>/etc/resolv.conf</filename> from another system, your
    228         preferred servers, or just the example
    229         <filename>/etc/resolv.conf.head</filename> file below as is:</para>
    230 
    231 <screen role='root'><userinput>cat &gt; /etc/resolv.conf.head &lt;&lt; "EOF"
    232 <literal># OpenDNS servers
    233 nameserver 208.67.222.222
    234 nameserver 208.67.220.220</literal>
    235 EOF</userinput></screen>
    236 
    237     </sect3>
    238 
    239   </sect2>
    240 
    241120  <sect2 role="content">
    242121    <title>Contents</title>
  • networking/netprogs/bridgeutils-systemd.xml

    r5992481 rc1cacc30  
    119119  </sect2>
    120120
    121   <sect2 role="configuration">
    122     <title>Configuring bridge-utils</title>
    123 
    124     <sect3 id='bridgeutils-init'>
    125       <title>Configuration Information</title>
    126 
    127       <para>To automate bridge creation and configuration,
    128       install the <filename>/lib/services/etc/bridge</filename>
    129       service script included in the <xref linkend="bootscripts"/>
    130       package.</para>
    131 
    132       <indexterm zone="bridgeutils bridgeutils-init">
    133         <primary sortas="f-bridgeutils">bridge-utils</primary>
    134       </indexterm>
    135 
    136 <screen role="root"><userinput>make install-service-bridge</userinput></screen>
    137 
    138       <note><para>The <filename>bridge</filename> script depends
    139       on the commands <command>/sbin/ifup</command> and
    140       <command>/sbin/ifdown</command> and the service script
    141       <emphasis>ipv4-static</emphasis> from the <emphasis>LFS</emphasis>
    142       bootscripts dated January 27, 2012 or later.</para></note>
    143 
    144       <para>The following configuration file will create a bridge device at
    145       boot time and attach the eth0 device to it.  If more than one device is
    146       desired, use a space separated list of INTERFACE_COMPONENTS.  This
    147       configuration is useful when planning to run a virtual machine such as
    148       kvm/qemu.</para>
    149 
    150       <para>Other SERVICE combinations are possible, for example,
    151       SERVICES="bridge dhcp".  In that case, the address parameters
    152       are not needed, but do not interfere if present. The
    153       bridge service may also be used alone, but will require
    154       additional subsequent configuration.</para>
    155 
    156       <caution><para>Do not run a parallel configuration for a device in the
    157       INTERFACE_COMPONENTS list.  For instance, in the example below, do not
    158       configure <filename>/etc/sysconfig/ifconfig.eth0</filename> to run at
    159       boot time.  The command <command>ifdown br0</command> followed by
    160       command <command>ifup eth0</command> will work, but don't try to have
    161       both up at the same time.</para></caution>
    162 
    163 <screen role="root"><userinput>cat &gt; /etc/sysconfig/ifconfig.br0 &lt;&lt; "EOF"
    164 <literal>ONBOOT=yes
    165 IFACE=br0
    166 SERVICE="bridge ipv4-static"  # Space separated
    167 IP=192.168.1.32
    168 GATEWAY=192.168.1.1
    169 PREFIX=24
    170 BROADCAST=192.168.1.255
    171 CHECK_LINK=no                 # Don't check before bridge is created
    172 STP=no                        # Spanning tree protocol, default no
    173 INTERFACE_COMPONENTS="eth0"   # Add to IFACE, space separated devices
    174 IP_FORWARD=true</literal>
    175 EOF</userinput></screen>
    176 
    177       <para>All addresses should be changed to meet your circumstance.</para>
    178 
    179     </sect3>
    180 
    181   </sect2>
    182 
    183 
    184121  <sect2 role="content">
    185122    <title>Contents</title>
  • networking/netprogs/netprogs.xml

    r5992481 rc1cacc30  
    2121  are support programs for daemons that you may have running on your machine.</para>
    2222
    23   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="bridgeutils.xml"/>
     23  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="bridgeutils-systemd.xml"/>
    2424  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="cifsutils.xml"/>
    2525  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="ncftp.xml"/>
    2626  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="net-tools.xml"/>
    2727  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="nfs-utils-systemd.xml"/>
    28   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="netfs.xml"/>
     28  <!-- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="netfs.xml"/> -->
    2929  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="ntp-systemd.xml"/>
    3030  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="rpcbind-systemd.xml"/>
  • postlfs/config/config.xml

    r5992481 rc1cacc30  
    5353  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="logon.xml"/>
    5454  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="etcshells.xml"/>
    55   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="random.xml"/>
     55<!--  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="random.xml"/> -->
    5656  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="lsb-release.xml"/>
    5757
Note: See TracChangeset for help on using the changeset viewer.