source: networking/netprogs/bridgeutils.xml@ 7c56ece

10.0 10.1 11.0 11.1 11.2 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 upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 7c56ece was 7c56ece, checked in by Pierre Labastie <pieere@…>, 4 years ago

Finish formatting "networking"

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

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