source: networking/netprogs/bridgeutils.xml

trunk
Last change on this file was 868811b, checked in by Bruce Dubbs <bdubbs@…>, 2 months ago

Many tags.
genutils
sysutils
netlibs
netprogs
netutils
editors
filesystems
shells

  • Property mode set to 100644
File size: 7.6 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
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 "&kernel-dl;/linux/utils/net/bridge-utils/bridge-utils-&bridgeutils-version;.tar.xz">
8 <!ENTITY bridge-download-ftp " ">
9 <!ENTITY bridge-md5sum "3e1fee4dc22cac5457c2f6ffb990a518">
10 <!ENTITY bridge-size "29 KB">
11 <!ENTITY bridge-buildsize "1.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
19 <title>bridge-utils-&bridgeutils-version;</title>
20
21 <indexterm zone="bridgeutils">
22 <primary sortas="a-bridgeutils">bridge-utils</primary>
23 </indexterm>
24
25 <sect2 role="package">
26 <title>Introduction to bridge-utils</title>
27
28 <para>
29 The <application>bridge-utils</application> package contains a utility
30 needed to create and manage bridge devices. This is useful in setting up
31 networks for a hosted virtual machine (VM).
32 </para>
33
34 &lfs121_checked;
35
36 <bridgehead renderas="sect3">Package Information</bridgehead>
37 <itemizedlist spacing="compact">
38 <listitem>
39 <para>
40 Download (HTTP): <ulink url="&bridge-download-http;"/>
41 </para>
42 </listitem>
43 <listitem>
44 <para>
45 Download (FTP): <ulink url="&bridge-download-ftp;"/>
46 </para>
47 </listitem>
48 <listitem>
49 <para>
50 Download MD5 sum: &bridge-md5sum;
51 </para>
52 </listitem>
53 <listitem>
54 <para>
55 Download size: &bridge-size;
56 </para>
57 </listitem>
58 <listitem>
59 <para>
60 Estimated disk space required: &bridge-buildsize;
61 </para>
62 </listitem>
63 <listitem>
64 <para>
65 Estimated build time: &bridge-time;
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
78 </sect2>
79
80 <sect2 role="kernel" id='bridgeutils-kernel'>
81 <title>Kernel Configuration</title>
82
83 <para>
84 Enable the following options in the kernel configuration
85 and recompile the kernel if necessary:
86 </para>
87
88 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
89 href="bridgeutils-kernel.xml"/>
90
91 <indexterm zone="bridgeutils bridgeutils-kernel">
92 <primary sortas="d-bridgeutils">Bridge Utilities</primary>
93 </indexterm>
94
95 </sect2>
96
97 <sect2 role="installation">
98 <title>Installation of bridge-utils</title>
99
100 <para>
101 Install <application>bridge-utils</application> by running the following
102 commands:
103 </para>
104
105<screen><userinput>autoconf &amp;&amp;
106./configure --prefix=/usr &amp;&amp;
107make</userinput></screen>
108
109 <para>
110 Testing the results requires running the six shell scripts in
111 the <filename class='directory'>tools/</filename> directory.
112 Two of the tests require two ethernet ports. Some tests
113 will not preserve the current network configuration. See
114 <filename>tests/README</filename> for details.
115 </para>
116
117 <para>
118 Now, as the <systemitem class="username">root</systemitem> user:
119 </para>
120
121<screen role="root"><userinput>make install</userinput></screen>
122
123 </sect2>
124
125 <sect2 role="configuration" revision="sysv">
126 <title>Configuring bridge-utils</title>
127
128 <sect3 id='bridgeutils-init'>
129 <title>Configuration Information</title>
130
131 <para>
132 To automate bridge creation and configuration,
133 install the <filename>/usr/lib/services/bridge</filename>
134 service script included in the <xref linkend="bootscripts"/>
135 package.
136 </para>
137
138 <indexterm zone="bridgeutils bridgeutils-init">
139 <primary sortas="f-bridgeutils">bridge-utils</primary>
140 </indexterm>
141
142<screen role="root"><userinput>make install-service-bridge</userinput></screen>
143
144 <note>
145 <para>
146 The <filename>bridge</filename> script depends
147 on the commands <command>/sbin/ifup</command> and
148 <command>/sbin/ifdown</command> and the service script
149 <emphasis>ipv4-static</emphasis> from the <emphasis>LFS</emphasis>
150 bootscripts dated January 27, 2012 or later.
151 </para>
152 </note>
153
154 <para>
155 The following configuration file will create a bridge device at
156 boot time and attach the eth0 device to it. If more than one device is
157 desired, use a space separated list of INTERFACE_COMPONENTS. This
158 configuration is useful when planning to run a virtual machine such as
159 kvm/qemu.
160 </para>
161
162 <para>
163 Other <envar>SERVICE</envar> combinations are possible, for example,
164 <code>SERVICE="bridge dhcp"</code>. In that case, the address
165 parameters are not needed, but do not interfere if present. The
166 bridge service may also be used alone, but will require
167 additional subsequent configuration.
168 </para>
169
170 <caution>
171 <para>
172 Do not run a parallel configuration for a device in the
173 INTERFACE_COMPONENTS list. For instance, in the example below, do not
174 configure <filename>/etc/sysconfig/ifconfig.eth0</filename> to run at
175 boot time. The command <command>ifdown br0</command> followed by
176 command <command>ifup eth0</command> will work, but don't try to have
177 both up at the same time.
178 </para>
179 </caution>
180
181<screen role="root"><userinput>cat &gt; /etc/sysconfig/ifconfig.br0 &lt;&lt; "EOF"
182<literal>ONBOOT=yes
183IFACE=br0
184VIRTINT=yes
185SERVICE="bridge ipv4-static" # Space separated
186IP=192.168.1.32
187GATEWAY=192.168.1.1
188PREFIX=24
189BROADCAST=192.168.1.255
190CHECK_LINK=no # Don't check before bridge is created
191STP=no # Spanning tree protocol, default no
192INTERFACE_COMPONENTS="eth0" # Add to IFACE, space separated devices
193IP_FORWARD=true</literal>
194EOF</userinput></screen>
195
196 <para>
197 All addresses should be changed to meet your circumstance.
198 </para>
199
200 </sect3>
201 </sect2>
202<!-- There is a whole page about bridging for systemd in the "Connecting to
203 a network" chapter
204 <sect2 role="configuration" revision="systemd">
205 <title>Configuring bridge-utils</title>
206
207 <sect3 id='bridgeutils-init-systemd'>
208 <title>Configuration Information</title>
209 <para>
210 TBA
211 </para>
212 </sect3>
213 </sect2>
214-->
215
216
217 <sect2 role="content">
218 <title>Contents</title>
219
220 <segmentedlist>
221 <segtitle>Installed Program</segtitle>
222 <segtitle>Installed Libraries</segtitle>
223 <segtitle>Installed Directories</segtitle>
224
225 <seglistitem>
226 <seg>brctl</seg>
227 <seg>None</seg>
228 <seg>None</seg>
229 </seglistitem>
230 </segmentedlist>
231
232 <variablelist>
233 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
234 <?dbfo list-presentation="list"?>
235 <?dbhtml list-presentation="table"?>
236
237 <varlistentry id="brctl">
238 <term><command>brctl</command></term>
239 <listitem>
240 <para>
241 is a program used to set up, maintain, and inspect the
242 ethernet bridge configuration in the linux kernel
243 </para>
244 <indexterm zone="bridgeutils brctl">
245 <primary sortas="b-brctl">brctl</primary>
246 </indexterm>
247 </listitem>
248 </varlistentry>
249
250 </variablelist>
251
252 </sect2>
253
254</sect1>
Note: See TracBrowser for help on using the repository browser.