source: networking/netprogs/bridgeutils.xml@ 4825f68

12.0 12.1 ken/TL2024 ken/tuningfonts lazarus plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18
Last change on this file since 4825f68 was 5f3bda7, checked in by Xi Ruoyao <xry111@…>, 12 months ago

network: Remove non-exist User Notes link

Part of User Notes removal by
https://www.linuxfromscratch.org/~xry111/remove-nonexist-usernote.sh

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