Changeset a7b13539


Ignore:
Timestamp:
08/01/2014 03:12:32 PM (10 years ago)
Author:
Krejzi <krejzi@…>
Branches:
7.6-blfs, 7.6-systemd, kde5-14269, kde5-14686, systemd-13485
Children:
407a1cf
Parents:
8842249
Message:

Add advanced network configuration page which describes setting up bridge with systemd networkd (and in future probably vlan and bonding) and adjust qemu to use it.

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

Files:
1 added
3 edited
1 moved

Legend:

Unmodified
Added
Removed
  • TODO

    r8842249 ra7b13539  
    11provide systemd units for dhcpcd and dhclient
    2 add separate bridge configuration for systemd-networkd
  • networking/connect/connect.xml

    r8842249 ra7b13539  
    3232  providers to authenticate the Internet connections.</para>
    3333
    34 <!--  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="ppp.xml"/> -->
     34  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="advanced-network-systemd.xml"/>
    3535  <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"/>
  • postlfs/virtualization/qemu-systemd.xml

    r8842249 ra7b13539  
    122122    your system processor is required.</para>
    123123
    124     <para>For networking, check that <xref linkend='bridgeutils'/> is installed
     124    <para>For networking, check that <xref linkend="bridgeutils"/> is installed
    125125    and the following options in the kernel configuration are enabled:</para>
    126126
    127 <screen><literal>Networking support  ---&gt;
    128   Networking options  ---&gt;
     127<screen><literal><!--Networking support  - - -&gt;
     128  Networking options  - - -&gt;
    129129    802.1d Ethernet Bridging: Y or M
    130 Device Drivers  ---&gt;
     130-->Device Drivers  ---&gt;
    131131  Network device support  ---&gt;
    132132    Universal TUN/TAP device driver support: Y or M</literal></screen>
     
    265265    <itemizedlist spacing="compact">
    266266      <listitem>
    267         <para>Set up bridging with <xref linkend='bridgeutils'/>.</para>
     267        <para>Set up bridging using <xref linkend="network-bridge"/>.</para>
    268268      </listitem>
    269269
     
    274274
    275275        <para>To make this permanent, add the command to
    276         <filename>/etc/syssysctl.conf:</filename></para>
    277 
    278 <screen role="root"><userinput>cat &gt;&gt; /etc/sysctl.conf &lt;&lt; EOF
     276        <filename>/etc/sysctl.d/60-net-forward.conf:</filename></para>
     277
     278<screen role="root"><userinput>cat &gt;&gt; /etc/sysctl.d/60-net-forward.conf &lt;&lt; "EOF"
    279279net.ipv4.ip_forward=1
    280280EOF</userinput></screen>
     
    286286        device, usually visible as tap0, to the host bridge.</para>
    287287
    288 <screen role="root"><userinput>cat &gt; /etc/qemu-ifup &lt;&lt; EOF
     288<screen role="root"><userinput>cat &gt; /etc/qemu-ifup &lt;&lt; "EOF"
    289289#!/bin/bash
    290290
    291291switch=br0
    292292
    293 if [ -n "\$1" ]; then
     293if [ -n "$1" ]; then
    294294  # Add new tap0 interface to bridge
    295   /sbin/ip link set \$1 up
    296   sleep 0.5s
    297   /usr/sbin/brctl addif \$switch \$1
     295  /usr/sbin/brctl addif $switch $1
    298296else
    299297  echo "Error: no interface specified"
     
    306304chmod +x /etc/qemu-ifup</userinput></screen>
    307305
    308 <screen role="root"><userinput>cat &gt; /etc/qemu-ifdown &lt;&lt; EOF
     306<screen role="root"><userinput>cat &gt; /etc/qemu-ifdown &lt;&lt; "EOF"
    309307#!/bin/bash
    310308
    311309switch=br0
    312310
    313 if [ -n "\$1" ]; then
     311if [ -n "$1" ]; then
    314312  # Remove tap0 interface from bridge
    315   /usr/sbin/brctl delif \$switch \$1
     313  /usr/sbin/brctl delif $switch $1
    316314else
    317315  echo "Error: no interface specified"
     
    327325    </itemizedlist>
    328326
    329       <note><para>The backslashes in the above script are for convenience
     327      <!-- <note><para>The backslashes in the above script are for convenience
    330328      for cut/paste operations.  The backslashes should <emphasis>not</emphasis>
    331       appear in the final scripts.</para></note>
     329      appear in the final scripts.</para></note> -->
    332330
    333331    <itemizedlist spacing="compact">
  • postlfs/virtualization/virtualization.xml

    r8842249 ra7b13539  
    2222  processor.</para>
    2323
    24   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="qemu.xml"/>
     24  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="qemu-systemd.xml"/>
    2525
    2626</chapter>
Note: See TracChangeset for help on using the changeset viewer.