Changeset 7abfb10
- Timestamp:
- 07/20/2014 04:21:35 PM (10 years ago)
- Branches:
- 7.6-blfs, 7.6-systemd, kde5-14269, kde5-14686, systemd-13485
- Children:
- 0e466f67
- Parents:
- c2bcc50
- Files:
-
- 1 deleted
- 4 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
TODO
rc2bcc50 r7abfb10 1 1 gpm 2 2 svn server 3 iptables4 3 wpa_supplicant 4 provide systemd units for dhcpcd and dhclient 5 add separate bridge configuration for systemd-networkd -
networking/connect/connect.xml
rc2bcc50 r7abfb10 33 33 34 34 <!-- <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"/> 36 36 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="dhcp-systemd.xml"/> 37 37 -
networking/connect/dhcpcd-systemd.xml
rc2bcc50 r7abfb10 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>To configure <command>dhcpcd</command>, you need to first install138 the network service script,139 <filename>/lib/services/dhcpcd</filename>140 included in the <xref linkend="bootscripts"/> package141 (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 down150 a network interface, it executes hook scripts. For more details151 about those scripts, see the <command>dhcpcd-run-hooks</command> and152 <command>dhcpcd</command> man pages.</para>153 154 <para id="dhcpcd-config2">Finally, as the <systemitem155 class="username">root</systemitem> user create the156 <filename>/etc/sysconfig/ifconfig.eth0</filename>157 configuration file using the following commands. Adjust appropriately158 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 > /etc/sysconfig/ifconfig.eth0 << "EOF"165 <literal>ONBOOT="yes"166 IFACE="eth0"167 SERVICE="dhcpcd"168 DHCP_START="-b -q <replaceable><insert appropriate start options here></replaceable>"169 DHCP_STOP="-k <replaceable><insert additional stop options here></replaceable>"</literal>170 EOF</userinput></screen>171 172 <para>For more information on the appropriate <envar>DHCP_START</envar> and173 <envar>DHCP_STOP</envar> values, examine the man page for174 <command>dhcpcd</command>.</para>175 176 <note>177 178 <para id="dhcpcd-config3">The default behavior of179 <command>dhcpcd</command> sets the hostname and mtu settings. It also180 overwrites <filename>/etc/resolv.conf</filename> and181 <filename>/etc/ntp.conf</filename>.182 183 These modifications to system files and settings on system184 configuration files are done by hooks which are stored in <filename185 class="directory">/lib/dhcpcd/dhcpcd-hooks</filename>.186 187 Setup <command>dhcpcd</command> by removing or adding hooks from/to188 that directory. The execution of hooks can be disabled by using the189 <option>--nohook</option> (<option>-C</option>) command line option or190 by the <option>nohook</option> option in the191 <filename>/etc/dhcpcd.conf</filename> file.</para>192 193 <para>Review the <command>dhcpcd</command> man page for switches to add194 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 need207 to configure <application>dhcpcd</application> to use a fixed ip. Here,208 we give an example. As the209 <systemitem class="username">root</systemitem> user create the210 <filename>/etc/sysconfig/ifconfig.eth0</filename> configuration file211 using the following commands. Adjust appropriately for additional212 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 > /etc/sysconfig/ifconfig.eth0 << "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 in227 <filename>/etc/resolv.conf</filename> from another system, your228 preferred servers, or just the example229 <filename>/etc/resolv.conf.head</filename> file below as is:</para>230 231 <screen role='root'><userinput>cat > /etc/resolv.conf.head << "EOF"232 <literal># OpenDNS servers233 nameserver 208.67.222.222234 nameserver 208.67.220.220</literal>235 EOF</userinput></screen>236 237 </sect3>238 239 </sect2>240 241 120 <sect2 role="content"> 242 121 <title>Contents</title> -
networking/netprogs/bridgeutils-systemd.xml
rc2bcc50 r7abfb10 119 119 </sect2> 120 120 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 depends139 on the commands <command>/sbin/ifup</command> and140 <command>/sbin/ifdown</command> and the service script141 <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 at145 boot time and attach the eth0 device to it. If more than one device is146 desired, use a space separated list of INTERFACE_COMPONENTS. This147 configuration is useful when planning to run a virtual machine such as148 kvm/qemu.</para>149 150 <para>Other SERVICE combinations are possible, for example,151 SERVICES="bridge dhcp". In that case, the address parameters152 are not needed, but do not interfere if present. The153 bridge service may also be used alone, but will require154 additional subsequent configuration.</para>155 156 <caution><para>Do not run a parallel configuration for a device in the157 INTERFACE_COMPONENTS list. For instance, in the example below, do not158 configure <filename>/etc/sysconfig/ifconfig.eth0</filename> to run at159 boot time. The command <command>ifdown br0</command> followed by160 command <command>ifup eth0</command> will work, but don't try to have161 both up at the same time.</para></caution>162 163 <screen role="root"><userinput>cat > /etc/sysconfig/ifconfig.br0 << "EOF"164 <literal>ONBOOT=yes165 IFACE=br0166 SERVICE="bridge ipv4-static" # Space separated167 IP=192.168.1.32168 GATEWAY=192.168.1.1169 PREFIX=24170 BROADCAST=192.168.1.255171 CHECK_LINK=no # Don't check before bridge is created172 STP=no # Spanning tree protocol, default no173 INTERFACE_COMPONENTS="eth0" # Add to IFACE, space separated devices174 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 184 121 <sect2 role="content"> 185 122 <title>Contents</title> -
networking/netprogs/netprogs.xml
rc2bcc50 r7abfb10 21 21 are support programs for daemons that you may have running on your machine.</para> 22 22 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"/> 24 24 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="cifsutils.xml"/> 25 25 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="ncftp.xml"/> 26 26 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="net-tools.xml"/> 27 27 <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"/> --> 29 29 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="ntp-systemd.xml"/> 30 30 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="rpcbind-systemd.xml"/> -
postlfs/config/config.xml
rc2bcc50 r7abfb10 53 53 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="logon.xml"/> 54 54 <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"/> --> 56 56 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="lsb-release.xml"/> 57 57
Note:
See TracChangeset
for help on using the changeset viewer.