source: networking/netprogs/bridgeutils.xml@ 6375ab4

11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since 6375ab4 was 3f2db3a6, checked in by Pierre Labastie <pierre.labastie@…>, 19 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
RevLine 
[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
[8dfc5c3]7 <!ENTITY bridge-download-http "&kernel-dl;/linux/utils/net/bridge-utils/bridge-utils-&bridgeutils-version;.tar.xz">
[5f6ab32]8 <!ENTITY bridge-download-ftp " ">
[5ae6d41]9 <!ENTITY bridge-md5sum "3e1fee4dc22cac5457c2f6ffb990a518">
10 <!ENTITY bridge-size "29 KB">
11 <!ENTITY bridge-buildsize "1.1 MB">
[5f6ab32]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
[b51fe6e]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>
[5f6ab32]33
[eef5713f]34 &lfs112_checked;
[5f6ab32]35
36 <bridgehead renderas="sect3">Package Information</bridgehead>
37 <itemizedlist spacing="compact">
38 <listitem>
[b51fe6e]39 <para>
40 Download (HTTP): <ulink url="&bridge-download-http;"/>
41 </para>
[5f6ab32]42 </listitem>
43 <listitem>
[b51fe6e]44 <para>
45 Download (FTP): <ulink url="&bridge-download-ftp;"/>
46 </para>
[5f6ab32]47 </listitem>
48 <listitem>
[b51fe6e]49 <para>
50 Download MD5 sum: &bridge-md5sum;
51 </para>
[5f6ab32]52 </listitem>
53 <listitem>
[b51fe6e]54 <para>
55 Download size: &bridge-size;
56 </para>
[5f6ab32]57 </listitem>
58 <listitem>
[b51fe6e]59 <para>
60 Estimated disk space required: &bridge-buildsize;
61 </para>
[5f6ab32]62 </listitem>
63 <listitem>
[b51fe6e]64 <para>
65 Estimated build time: &bridge-time;
66 </para>
[5f6ab32]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">
[0d7900a]74 <xref linkend="net-tools"/>
[5f6ab32]75 </para>
76
77 <para condition="html" role="usernotes">User Notes:
78 <ulink url="&blfs-wiki;/bridge"/></para>
79
80 </sect2>
81
[a23aa7b]82 <sect2 role="kernel" id='bridgeutils-kernel'>
83 <title>Kernel Configuration</title>
84
[b51fe6e]85 <para>
86 Enable the following options in the kernel configuration
87 and recompile the kernel if necessary:
88 </para>
[a23aa7b]89
[8beb27b]90<screen><literal>[*] Networking support ---&gt; [CONFIG_NET]
[196d393]91 Networking options ---&gt;
92 &lt;*/M&gt; 802.1d Ethernet Bridging [CONFIG_BRIDGE]</literal></screen>
[a23aa7b]93
94 <indexterm zone="bridgeutils bridgeutils-kernel">
95 <primary sortas="d-bridgeutils">Bridge Utilities</primary>
96 </indexterm>
97
98 </sect2>
99
[5f6ab32]100 <sect2 role="installation">
[a23aa7b]101 <title>Installation of bridge-utils</title>
[5f6ab32]102
[b51fe6e]103 <para>
104 Install <application>bridge-utils</application> by running the following
105 commands:
106 </para>
[5f6ab32]107
[4bf60a36]108<screen><userinput>autoconf &amp;&amp;
[54936f2f]109./configure --prefix=/usr &amp;&amp;
[5f6ab32]110make</userinput></screen>
111
[b51fe6e]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>
[5f6ab32]119
[b51fe6e]120 <para>
121 Now, as the <systemitem class="username">root</systemitem> user:
122 </para>
[5f6ab32]123
124<screen role="root"><userinput>make install</userinput></screen>
125
126 </sect2>
127
[7c56ece]128 <sect2 role="configuration" revision="sysv">
[a23aa7b]129 <title>Configuring bridge-utils</title>
130
[7c56ece]131 <sect3 id='bridgeutils-init'>
[a23aa7b]132 <title>Configuration Information</title>
133
[b51fe6e]134 <para>
135 To automate bridge creation and configuration,
[265da10b]136 install the <filename>/usr/lib/services/bridge</filename>
[b51fe6e]137 service script included in the <xref linkend="bootscripts"/>
138 package.
139 </para>
[a23aa7b]140
141 <indexterm zone="bridgeutils bridgeutils-init">
142 <primary sortas="f-bridgeutils">bridge-utils</primary>
143 </indexterm>
144
[bcad034]145<screen role="root"><userinput>make install-service-bridge</userinput></screen>
[a23aa7b]146
[b51fe6e]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>
[78962e30]166 Other <envar>SERVICE</envar> combinations are possible, for example,
167 <code>SERVICE="bridge dhcp"</code>. In that case, the address
[9e2ff85]168 parameters are not needed, but do not interfere if present. The
[b51fe6e]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>
[0d7900a]183
[a23aa7b]184<screen role="root"><userinput>cat &gt; /etc/sysconfig/ifconfig.br0 &lt;&lt; "EOF"
185<literal>ONBOOT=yes
186IFACE=br0
[274a82e9]187VIRTINT=yes
[a23aa7b]188SERVICE="bridge ipv4-static" # Space separated
189IP=192.168.1.32
190GATEWAY=192.168.1.1
191PREFIX=24
192BROADCAST=192.168.1.255
[d28198d3]193CHECK_LINK=no # Don't check before bridge is created
[a23aa7b]194STP=no # Spanning tree protocol, default no
[0d7900a]195INTERFACE_COMPONENTS="eth0" # Add to IFACE, space separated devices
[a23aa7b]196IP_FORWARD=true</literal>
197EOF</userinput></screen>
198
[b51fe6e]199 <para>
200 All addresses should be changed to meet your circumstance.
201 </para>
[a23aa7b]202
203 </sect3>
[7c56ece]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>
[a23aa7b]209
[7c56ece]210 <sect3 id='bridgeutils-init-systemd'>
[3c7bd00]211 <title>Configuration Information</title>
[b51fe6e]212 <para>
213 TBA
214 </para>
[3c7bd00]215 </sect3>
[a23aa7b]216 </sect2>
[7c56ece]217-->
[a23aa7b]218
219
[5f6ab32]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>
[b51fe6e]243 <para>
244 is a program used to set up, maintain, and inspect the
[4c24eb0a]245 ethernet bridge configuration in the linux kernel
[b51fe6e]246 </para>
[5f6ab32]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.