Ignore:
Timestamp:
01/27/2012 08:31:11 PM (12 years ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
a1c3701
Parents:
37f746a8
Message:

Add configuration to bridge-utils and add bridge service script.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@9244 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • networking/netprogs/bridgeutils.xml

    r37f746a8 ra23aa7b  
    7070  </sect2>
    7171
     72  <sect2 role="kernel" id='bridgeutils-kernel'>
     73    <title>Kernel Configuration</title>
     74
     75    <para>Enable the following options in the kernel configuration
     76    and recompile the kernel if necessary:</para>
     77
     78<screen><literal>Networking support: Y
     79  Networking options:
     80    802.1d Ethernet Bridging: M or Y</literal></screen>
     81
     82    <indexterm zone="bridgeutils bridgeutils-kernel">
     83      <primary sortas="d-bridgeutils">Bridge Utilities</primary>
     84    </indexterm>
     85
     86  </sect2>
     87
    7288  <sect2 role="installation">
    73     <title>Installation of Wget</title>
    74 
    75     <para>Install <application>Wget</application> by running the following
     89    <title>Installation of bridge-utils</title>
     90
     91    <para>Install <application>bridge-utils</application> by running the following
    7692    commands:</para>
    7793
     
    91107
    92108  </sect2>
     109
     110  <sect2 role="configuration">
     111    <title>Configuring bridge-utils</title>
     112
     113    <sect3 id='bridgeutils-init'>
     114      <title>Configuration Information</title>
     115
     116      <para>To automate bridge creation and configuration,
     117      install the <filename>/lib/services/etc/bridge</filename>
     118      service script included in the <xref linkend="bootscripts"/>
     119      package.</para>
     120
     121      <indexterm zone="bridgeutils bridgeutils-init">
     122        <primary sortas="f-bridgeutils">bridge-utils</primary>
     123      </indexterm>
     124
     125<screen role="root"><userinput>make install-bridge</userinput></screen>
     126
     127      <note><para>The <filename>bridge</filename> script depends
     128      on the comamnds <command>/sbin/ifup</command> and
     129      <command>/sbin/ifdown</command> and the service script
     130      <emphasis>ipv4-static</emphasis> from the <emphasis>LFS</emphasis>
     131      bootscripts dated January 27, 2012 or later.</para></note>
     132
     133      <para>The following configuration file will create a bridge device
     134      at boot time and attach the eth0 device to it.  If more than one
     135      device is desired, use a space separated list of INTERFACES.  This
     136      configuration is useful when planning to run a virtual machine
     137      such as kvm/qemu.</para>
     138
     139      <para>Other SERVICE combinations are possible, for example,
     140      SERVICES="bridge dhcp".  In that case, the address parameters
     141      are not needed, but do not interfere if present. The
     142      bridge service may also be used alone, but will require
     143      additional subsequent configuration.</para>
     144
     145      <caution><para>Do not run a parallel configuration for a device
     146      in the INTERFACES list.  For instance, in the example below,
     147      do not configure <filename>/etc/sysconfig/ifconfig.eth0</filename>
     148      to run at boot time.  The command <command>ifdown br0</command>
     149      followed by  command <command>ifup eth0</command> will work, but
     150      don't try to have both up at the same time.</para></caution>
     151     
     152<screen role="root"><userinput>cat &gt; /etc/sysconfig/ifconfig.br0 &lt;&lt; "EOF"
     153<literal>ONBOOT=yes
     154IFACE=br0
     155SERVICE="bridge ipv4-static"  # Space separated
     156IP=192.168.1.32
     157GATEWAY=192.168.1.1
     158PREFIX=24
     159BROADCAST=192.168.1.255
     160CHECK_LINK=no                 # Don't check before ibridge is created
     161STP=no                        # Spanning tree protocol, default no
     162INTERFACES="eth0"             # Add to IFACE, space separated devices
     163IP_FORWARD=true</literal>
     164EOF</userinput></screen>
     165
     166      <para>All addresses should be changed to meet your circumstance.</para>
     167
     168    </sect3>
     169
     170  </sect2>
     171
    93172
    94173  <sect2 role="content">
Note: See TracChangeset for help on using the changeset viewer.