[5f6ab32] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!ENTITY bridge-download-http "&sourceforge-repo2;/projects/bridge/files/bridge/bridge-utils-&bridgeutils-version;.tar.gz">
|
---|
| 8 | <!ENTITY bridge-download-ftp " ">
|
---|
| 9 | <!ENTITY bridge-md5sum "ec7b381160b340648dede58c31bb2238">
|
---|
| 10 | <!ENTITY bridge-size "36 KB">
|
---|
| 11 | <!ENTITY bridge-buildsize "1 MB">
|
---|
| 12 | <!ENTITY bridge-time "less than 0.1 SBU">
|
---|
| 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="bridgeutils" xreflabel="bridge-utils-&bridgeutils-version;">
|
---|
| 16 | <?dbhtml filename="bridge-utils.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>bridge-utils-&bridgeutils-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="bridgeutils">
|
---|
| 26 | <primary sortas="a-bridgeutils">bridge-utils</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to bridge-utils</title>
|
---|
| 31 |
|
---|
| 32 | <para>The <application>bridge-utils</application> package contains a utility
|
---|
| 33 | needed to create and manage bridge devices. This is useful in setting up
|
---|
| 34 | networks for a hosted virtual machine (VM).</para>
|
---|
| 35 |
|
---|
| 36 | &lfs70_checked;
|
---|
| 37 |
|
---|
| 38 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 39 | <itemizedlist spacing="compact">
|
---|
| 40 | <listitem>
|
---|
| 41 | <para>Download (HTTP): <ulink url="&bridge-download-http;"/></para>
|
---|
| 42 | </listitem>
|
---|
| 43 | <listitem>
|
---|
| 44 | <para>Download (FTP): <ulink url="&bridge-download-ftp;"/></para>
|
---|
| 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
| 47 | <para>Download MD5 sum: &bridge-md5sum;</para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>Download size: &bridge-size;</para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>Estimated disk space required: &bridge-buildsize;</para>
|
---|
| 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>Estimated build time: &bridge-time;</para>
|
---|
| 57 | </listitem>
|
---|
| 58 | </itemizedlist>
|
---|
| 59 |
|
---|
| 60 | <bridgehead renderas="sect3">bridge-utils Dependencies</bridgehead>
|
---|
| 61 |
|
---|
| 62 | <bridgehead renderas="sect4">Optional (to run tests)</bridgehead>
|
---|
| 63 | <para role="optional">
|
---|
| 64 | <xref linkend="net-tools"/>
|
---|
| 65 | </para>
|
---|
| 66 |
|
---|
| 67 | <para condition="html" role="usernotes">User Notes:
|
---|
| 68 | <ulink url="&blfs-wiki;/bridge"/></para>
|
---|
| 69 |
|
---|
| 70 | </sect2>
|
---|
| 71 |
|
---|
[a23aa7b] | 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 |
|
---|
[5f6ab32] | 88 | <sect2 role="installation">
|
---|
[a23aa7b] | 89 | <title>Installation of bridge-utils</title>
|
---|
[5f6ab32] | 90 |
|
---|
[a23aa7b] | 91 | <para>Install <application>bridge-utils</application> by running the following
|
---|
[5f6ab32] | 92 | commands:</para>
|
---|
| 93 |
|
---|
| 94 | <screen><userinput>autoreconf &&
|
---|
| 95 | ./configure --prefix=/usr &&
|
---|
| 96 | make</userinput></screen>
|
---|
| 97 |
|
---|
| 98 | <para>Testing the results requires running the six shell scripts in
|
---|
| 99 | the <filename class='directory'>tools/</filename> directory.
|
---|
| 100 | Two of the tests require two ehternet ports. Some tests
|
---|
| 101 | will not preserve the current network configuration. See
|
---|
| 102 | <filename>tests/README</filename> for details.</para>
|
---|
| 103 |
|
---|
| 104 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 105 |
|
---|
| 106 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 107 |
|
---|
| 108 | </sect2>
|
---|
| 109 |
|
---|
[a23aa7b] | 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 > /etc/sysconfig/ifconfig.br0 << "EOF"
|
---|
| 153 | <literal>ONBOOT=yes
|
---|
| 154 | IFACE=br0
|
---|
| 155 | SERVICE="bridge ipv4-static" # Space separated
|
---|
| 156 | IP=192.168.1.32
|
---|
| 157 | GATEWAY=192.168.1.1
|
---|
| 158 | PREFIX=24
|
---|
| 159 | BROADCAST=192.168.1.255
|
---|
[d28198d3] | 160 | CHECK_LINK=no # Don't check before bridge is created
|
---|
[a23aa7b] | 161 | STP=no # Spanning tree protocol, default no
|
---|
| 162 | INTERFACES="eth0" # Add to IFACE, space separated devices
|
---|
| 163 | IP_FORWARD=true</literal>
|
---|
| 164 | EOF</userinput></screen>
|
---|
| 165 |
|
---|
| 166 | <para>All addresses should be changed to meet your circumstance.</para>
|
---|
| 167 |
|
---|
| 168 | </sect3>
|
---|
| 169 |
|
---|
| 170 | </sect2>
|
---|
| 171 |
|
---|
| 172 |
|
---|
[5f6ab32] | 173 | <sect2 role="content">
|
---|
| 174 | <title>Contents</title>
|
---|
| 175 |
|
---|
| 176 | <segmentedlist>
|
---|
| 177 | <segtitle>Installed Program</segtitle>
|
---|
| 178 | <segtitle>Installed Libraries</segtitle>
|
---|
| 179 | <segtitle>Installed Directories</segtitle>
|
---|
| 180 |
|
---|
| 181 | <seglistitem>
|
---|
| 182 | <seg>brctl</seg>
|
---|
| 183 | <seg>None</seg>
|
---|
| 184 | <seg>None</seg>
|
---|
| 185 | </seglistitem>
|
---|
| 186 | </segmentedlist>
|
---|
| 187 |
|
---|
| 188 | <variablelist>
|
---|
| 189 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 190 | <?dbfo list-presentation="list"?>
|
---|
| 191 | <?dbhtml list-presentation="table"?>
|
---|
| 192 |
|
---|
| 193 | <varlistentry id="brctl">
|
---|
| 194 | <term><command>brctl</command></term>
|
---|
| 195 | <listitem>
|
---|
| 196 | <para>is a program used to set up, maintain, and inspect the
|
---|
| 197 | ethernet bridge configuration in the linux kernel. </para>
|
---|
| 198 | <indexterm zone="bridgeutils brctl">
|
---|
| 199 | <primary sortas="b-brctl">brctl</primary>
|
---|
| 200 | </indexterm>
|
---|
| 201 | </listitem>
|
---|
| 202 | </varlistentry>
|
---|
| 203 |
|
---|
| 204 | </variablelist>
|
---|
| 205 |
|
---|
| 206 | </sect2>
|
---|
| 207 |
|
---|
| 208 | </sect1>
|
---|