Ignore:
Timestamp:
Jan 23, 2014, 11:46:09 AM (10 years ago)
Author:
William Harrington <kb0iic@…>
Branches:
clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
Children:
4112469
Parents:
05d3e34
Message:

Redo some hosts configuration information regarding systemd.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOOK/network/common/static.xml

    r05d3e34 r99f8c39  
    2323    address(es), subnet masks, and so forth.</para>
    2424
     25    <note><para>Udev may assign random Network Card Interface names
     26    for some network cards such as enp2s1. If you are not sure what
     27    your Network Card Interface name is, you can always run
     28    <command>ip l</command> after you have booted your system. Again,
     29    it is important that <filename>ifconfig.xyz</filename> is named
     30    after correct Network Card Interface name (e.g.
     31    <filename>ifconfig.enp2s1</filename> or
     32    <filename>ifconfig.eth0</filename>) or Systemd will fail to bring
     33    up your network interface.</para></note>
     34
    2535    <para>The following command creates a sample <filename>ipv4</filename>
    2636    file for the <emphasis>eth0</emphasis> device:</para>
    2737
    2838<screen><userinput>cd /etc/sysconfig/network-devices &amp;&amp;
    29 mkdir -v ifconfig.eth0 &amp;&amp;
    30 cat &gt; ifconfig.eth0/ipv4 &lt;&lt; "EOF"
    31 <literal>ONBOOT="yes"
     39cat &gt; ifconfig.eth0 &lt;&lt; "EOF"
     40<literal>IFACE="eth0"
    3241SERVICE="ipv4-static"
    3342IP="192.168.1.1"
     
    3746EOF</userinput></screen>
    3847
    39     <para os="var-ob">The values of these variables must be changed in every file to match
    40     the proper setup. If the <envar>ONBOOT</envar> variable is set to
    41     <quote>yes</quote> the network script will bring up the Network Interface
    42     Card (NIC) during booting of the system. If set to anything but
    43     <quote>yes</quote> the NIC will be ignored by the network script and not
    44     be brought up.</para>
     48    <para os="var-ob">The values of these variables must be changed in every
     49    file to match the proper setup.</para>
    4550
    46     <para os="var-s">The <envar>SERVICE</envar> variable defines the method used for
    47     obtaining the IP address. The CLFS-Bootscripts package has a modular IP
    48     assignment format, and creating additional files in the <filename
    49     class="directory">/etc/sysconfig/network-devices/services</filename>
     51    <para os="var-i">The <envar>IFACE</envar> variable defines the interface
     52    name, for example, eth0. It is required for all network device configuration
     53    files.</para>
     54
     55    <para os="var-s">The <envar>SERVICE</envar> variable defines the method used
     56    for obtaining the IP address. The CLFS-Network-Scripts package has a modular
     57    IP assignment format, and creating additional files in the <filename
     58    class="directory">/lib/services</filename>
    5059    directory allows other IP assignment methods.</para>
    5160
     
    6372    <envar>PREFIX</envar> variable according to your specific subnet.</para>
    6473
     74    <para>For more information see the <command>ifup</command> man page.</para>
     75
    6576    <para>To configure another DHCP Interface, Follow <xref linkend="ch-network-dhcp"/>.</para>
    6677
    6778  </sect2>
    6879
     80  <sect2>
     81    <title>Configuring the Network Interface at boot</title>
     82
     83    <para>Enabling of the Network Interface configuration is
     84    done per interface. To enable Network Interface
     85    configuration at boot, run:</para>
     86
     87<screen><userinput>systemctl enable ifupdown@eth0</userinput></screen>
     88
     89    <para>To disable previously enabled Network Interface
     90    configuration at boot, run:</para>
     91
     92<screen><userinput>systemctl disable ifupdown@eth0</userinput></screen>
     93
     94    <para>To manually start the Network Interface configuration,
     95    run:</para>
     96
     97<screen><userinput>systemctl start ifupdown@eth0</userinput></screen>
     98
     99    <para>Replace eth0 with the correct Network Interface
     100    name as described on the beginning of this page.</para>
     101
     102  </sect2>
     103
    69104</sect1>
Note: See TracChangeset for help on using the changeset viewer.