source: networking/netprogs/bridgeutils.xml@ b06ee8de

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since b06ee8de was 1de48c0f, checked in by Bruce Dubbs <bdubbs@…>, 8 years ago

Add patch to wireless tools.
Tags.

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

  • Property mode set to 100644
File size: 7.7 KB
Line 
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 &lfs7a_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">Additional Downloads</bridgehead>
61 <itemizedlist spacing="compact">
62 <listitem>
63 <para>
64 Required patch:
65 <ulink url="&patch-root;/bridge-utils-&bridgeutils-version;-linux_3.8_fix-1.patch"/>
66 </para>
67 </listitem>
68 </itemizedlist>
69
70 <bridgehead renderas="sect3">bridge-utils Dependencies</bridgehead>
71
72 <bridgehead renderas="sect4">Optional (to run tests)</bridgehead>
73 <para role="optional">
74 <xref linkend="net-tools"/>
75 </para>
76
77 <para condition="html" role="usernotes">User Notes:
78 <ulink url="&blfs-wiki;/bridge"/></para>
79
80 </sect2>
81
82 <sect2 role="kernel" id='bridgeutils-kernel'>
83 <title>Kernel Configuration</title>
84
85 <para>Enable the following options in the kernel configuration
86 and recompile the kernel if necessary:</para>
87
88<screen><literal>[*] Networking support ---&gt; [CONFIG_NET]
89 Networking options ---&gt;
90 &lt;*/M&gt; 802.1d Ethernet Bridging [CONFIG_BRIDGE]</literal></screen>
91
92 <indexterm zone="bridgeutils bridgeutils-kernel">
93 <primary sortas="d-bridgeutils">Bridge Utilities</primary>
94 </indexterm>
95
96 </sect2>
97
98 <sect2 role="installation">
99 <title>Installation of bridge-utils</title>
100
101 <para>Install <application>bridge-utils</application> by running the following
102 commands:</para>
103
104<screen><userinput>patch -Np1 -i ../bridge-utils-&bridgeutils-version;-linux_3.8_fix-1.patch &amp;&amp;
105sed -i '/ip6/s|^|//|' libbridge/libbridge.h &amp;&amp;
106autoconf -o configure configure.in &amp;&amp;
107
108./configure --prefix=/usr &amp;&amp;
109make</userinput></screen>
110
111 <para>Testing the results requires running the six shell scripts in
112 the <filename class='directory'>tools/</filename> directory.
113 Two of the tests require two ethernet ports. Some tests
114 will not preserve the current network configuration. See
115 <filename>tests/README</filename> for details.</para>
116
117 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
118
119<screen role="root"><userinput>make install</userinput></screen>
120
121 </sect2>
122
123 <sect2 role="configuration">
124 <title>Configuring bridge-utils</title>
125
126 <sect3 id='bridgeutils-init' revision="sysv">
127 <title>Configuration Information</title>
128
129 <para>To automate bridge creation and configuration,
130 install the <filename>/lib/services/etc/bridge</filename>
131 service script included in the <xref linkend="bootscripts"/>
132 package.</para>
133
134 <indexterm zone="bridgeutils bridgeutils-init">
135 <primary sortas="f-bridgeutils">bridge-utils</primary>
136 </indexterm>
137
138<screen role="root"><userinput>make install-service-bridge</userinput></screen>
139
140 <note><para>The <filename>bridge</filename> script depends
141 on the commands <command>/sbin/ifup</command> and
142 <command>/sbin/ifdown</command> and the service script
143 <emphasis>ipv4-static</emphasis> from the <emphasis>LFS</emphasis>
144 bootscripts dated January 27, 2012 or later.</para></note>
145
146 <para>The following configuration file will create a bridge device at
147 boot time and attach the eth0 device to it. If more than one device is
148 desired, use a space separated list of INTERFACE_COMPONENTS. This
149 configuration is useful when planning to run a virtual machine such as
150 kvm/qemu.</para>
151
152 <para>Other SERVICE combinations are possible, for example,
153 SERVICES="bridge dhcp". In that case, the address parameters
154 are not needed, but do not interfere if present. The
155 bridge service may also be used alone, but will require
156 additional subsequent configuration.</para>
157
158 <caution><para>Do not run a parallel configuration for a device in the
159 INTERFACE_COMPONENTS list. For instance, in the example below, do not
160 configure <filename>/etc/sysconfig/ifconfig.eth0</filename> to run at
161 boot time. The command <command>ifdown br0</command> followed by
162 command <command>ifup eth0</command> will work, but don't try to have
163 both up at the same time.</para></caution>
164
165<screen role="root"><userinput>cat &gt; /etc/sysconfig/ifconfig.br0 &lt;&lt; "EOF"
166<literal>ONBOOT=yes
167IFACE=br0
168SERVICE="bridge ipv4-static" # Space separated
169IP=192.168.1.32
170GATEWAY=192.168.1.1
171PREFIX=24
172BROADCAST=192.168.1.255
173CHECK_LINK=no # Don't check before bridge is created
174STP=no # Spanning tree protocol, default no
175INTERFACE_COMPONENTS="eth0" # Add to IFACE, space separated devices
176IP_FORWARD=true</literal>
177EOF</userinput></screen>
178
179 <para>All addresses should be changed to meet your circumstance.</para>
180
181 </sect3>
182
183 <sect3 id='bridgeutils-init-systemd' revision="systemd">
184 <title>Configuration Information</title>
185 <para>TBA</para>
186 </sect3>
187
188 </sect2>
189
190
191 <sect2 role="content">
192 <title>Contents</title>
193
194 <segmentedlist>
195 <segtitle>Installed Program</segtitle>
196 <segtitle>Installed Libraries</segtitle>
197 <segtitle>Installed Directories</segtitle>
198
199 <seglistitem>
200 <seg>brctl</seg>
201 <seg>None</seg>
202 <seg>None</seg>
203 </seglistitem>
204 </segmentedlist>
205
206 <variablelist>
207 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
208 <?dbfo list-presentation="list"?>
209 <?dbhtml list-presentation="table"?>
210
211 <varlistentry id="brctl">
212 <term><command>brctl</command></term>
213 <listitem>
214 <para>is a program used to set up, maintain, and inspect the
215 ethernet bridge configuration in the linux kernel. </para>
216 <indexterm zone="bridgeutils brctl">
217 <primary sortas="b-brctl">brctl</primary>
218 </indexterm>
219 </listitem>
220 </varlistentry>
221
222 </variablelist>
223
224 </sect2>
225
226</sect1>
Note: See TracBrowser for help on using the repository browser.