source: networking/netprogs/bridgeutils.xml@ 8b281cb6

11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since 8b281cb6 was 3f2db3a6, checked in by Pierre Labastie <pierre.labastie@…>, 18 months ago

Remove sect1info tags

They only contain a date tag that is nowhere used.

  • 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 "&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 &lfs112_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 <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>
86 Enable the following options in the kernel configuration
87 and recompile the kernel if necessary:
88 </para>
89
90<screen><literal>[*] Networking support ---&gt; [CONFIG_NET]
91 Networking options ---&gt;
92 &lt;*/M&gt; 802.1d Ethernet Bridging [CONFIG_BRIDGE]</literal></screen>
93
94 <indexterm zone="bridgeutils bridgeutils-kernel">
95 <primary sortas="d-bridgeutils">Bridge Utilities</primary>
96 </indexterm>
97
98 </sect2>
99
100 <sect2 role="installation">
101 <title>Installation of bridge-utils</title>
102
103 <para>
104 Install <application>bridge-utils</application> by running the following
105 commands:
106 </para>
107
108<screen><userinput>autoconf &amp;&amp;
109./configure --prefix=/usr &amp;&amp;
110make</userinput></screen>
111
112 <para>
113 Testing the results requires running the six shell scripts in
114 the <filename class='directory'>tools/</filename> directory.
115 Two of the tests require two ethernet ports. Some tests
116 will not preserve the current network configuration. See
117 <filename>tests/README</filename> for details.
118 </para>
119
120 <para>
121 Now, as the <systemitem class="username">root</systemitem> user:
122 </para>
123
124<screen role="root"><userinput>make install</userinput></screen>
125
126 </sect2>
127
128 <sect2 role="configuration" revision="sysv">
129 <title>Configuring bridge-utils</title>
130
131 <sect3 id='bridgeutils-init'>
132 <title>Configuration Information</title>
133
134 <para>
135 To automate bridge creation and configuration,
136 install the <filename>/usr/lib/services/bridge</filename>
137 service script included in the <xref linkend="bootscripts"/>
138 package.
139 </para>
140
141 <indexterm zone="bridgeutils bridgeutils-init">
142 <primary sortas="f-bridgeutils">bridge-utils</primary>
143 </indexterm>
144
145<screen role="root"><userinput>make install-service-bridge</userinput></screen>
146
147 <note>
148 <para>
149 The <filename>bridge</filename> script depends
150 on the commands <command>/sbin/ifup</command> and
151 <command>/sbin/ifdown</command> and the service script
152 <emphasis>ipv4-static</emphasis> from the <emphasis>LFS</emphasis>
153 bootscripts dated January 27, 2012 or later.
154 </para>
155 </note>
156
157 <para>
158 The following configuration file will create a bridge device at
159 boot time and attach the eth0 device to it. If more than one device is
160 desired, use a space separated list of INTERFACE_COMPONENTS. This
161 configuration is useful when planning to run a virtual machine such as
162 kvm/qemu.
163 </para>
164
165 <para>
166 Other <envar>SERVICE</envar> combinations are possible, for example,
167 <code>SERVICE="bridge dhcp"</code>. In that case, the address
168 parameters are not needed, but do not interfere if present. The
169 bridge service may also be used alone, but will require
170 additional subsequent configuration.
171 </para>
172
173 <caution>
174 <para>
175 Do not run a parallel configuration for a device in the
176 INTERFACE_COMPONENTS list. For instance, in the example below, do not
177 configure <filename>/etc/sysconfig/ifconfig.eth0</filename> to run at
178 boot time. The command <command>ifdown br0</command> followed by
179 command <command>ifup eth0</command> will work, but don't try to have
180 both up at the same time.
181 </para>
182 </caution>
183
184<screen role="root"><userinput>cat &gt; /etc/sysconfig/ifconfig.br0 &lt;&lt; "EOF"
185<literal>ONBOOT=yes
186IFACE=br0
187VIRTINT=yes
188SERVICE="bridge ipv4-static" # Space separated
189IP=192.168.1.32
190GATEWAY=192.168.1.1
191PREFIX=24
192BROADCAST=192.168.1.255
193CHECK_LINK=no # Don't check before bridge is created
194STP=no # Spanning tree protocol, default no
195INTERFACE_COMPONENTS="eth0" # Add to IFACE, space separated devices
196IP_FORWARD=true</literal>
197EOF</userinput></screen>
198
199 <para>
200 All addresses should be changed to meet your circumstance.
201 </para>
202
203 </sect3>
204 </sect2>
205<!-- There is a whole page about bridging for systemd in the "Connecting to
206 a network" chapter
207 <sect2 role="configuration" revision="systemd">
208 <title>Configuring bridge-utils</title>
209
210 <sect3 id='bridgeutils-init-systemd'>
211 <title>Configuration Information</title>
212 <para>
213 TBA
214 </para>
215 </sect3>
216 </sect2>
217-->
218
219
220 <sect2 role="content">
221 <title>Contents</title>
222
223 <segmentedlist>
224 <segtitle>Installed Program</segtitle>
225 <segtitle>Installed Libraries</segtitle>
226 <segtitle>Installed Directories</segtitle>
227
228 <seglistitem>
229 <seg>brctl</seg>
230 <seg>None</seg>
231 <seg>None</seg>
232 </seglistitem>
233 </segmentedlist>
234
235 <variablelist>
236 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
237 <?dbfo list-presentation="list"?>
238 <?dbhtml list-presentation="table"?>
239
240 <varlistentry id="brctl">
241 <term><command>brctl</command></term>
242 <listitem>
243 <para>
244 is a program used to set up, maintain, and inspect the
245 ethernet bridge configuration in the linux kernel
246 </para>
247 <indexterm zone="bridgeutils brctl">
248 <primary sortas="b-brctl">brctl</primary>
249 </indexterm>
250 </listitem>
251 </varlistentry>
252
253 </variablelist>
254
255 </sect2>
256
257</sect1>
Note: See TracBrowser for help on using the repository browser.