source: networking/netprogs/bridgeutils.xml@ 401174c0

12.0 12.1 12.2 gimp3 ken/TL2024 ken/tuningfonts lazarus lxqt plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/for-12.3 xry111/llvm18 xry111/spidermonkey128
Last change on this file since 401174c0 was 5f3bda7, checked in by Xi Ruoyao <xry111@…>, 15 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
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
[4b6e2b2]34 &lfs113_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
78 </sect2>
79
[a23aa7b]80 <sect2 role="kernel" id='bridgeutils-kernel'>
81 <title>Kernel Configuration</title>
82
[b51fe6e]83 <para>
84 Enable the following options in the kernel configuration
85 and recompile the kernel if necessary:
86 </para>
[a23aa7b]87
[8beb27b]88<screen><literal>[*] Networking support ---&gt; [CONFIG_NET]
[196d393]89 Networking options ---&gt;
90 &lt;*/M&gt; 802.1d Ethernet Bridging [CONFIG_BRIDGE]</literal></screen>
[a23aa7b]91
92 <indexterm zone="bridgeutils bridgeutils-kernel">
93 <primary sortas="d-bridgeutils">Bridge Utilities</primary>
94 </indexterm>
95
96 </sect2>
97
[5f6ab32]98 <sect2 role="installation">
[a23aa7b]99 <title>Installation of bridge-utils</title>
[5f6ab32]100
[b51fe6e]101 <para>
102 Install <application>bridge-utils</application> by running the following
103 commands:
104 </para>
[5f6ab32]105
[4bf60a36]106<screen><userinput>autoconf &amp;&amp;
[54936f2f]107./configure --prefix=/usr &amp;&amp;
[5f6ab32]108make</userinput></screen>
109
[b51fe6e]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>
[5f6ab32]117
[b51fe6e]118 <para>
119 Now, as the <systemitem class="username">root</systemitem> user:
120 </para>
[5f6ab32]121
122<screen role="root"><userinput>make install</userinput></screen>
123
124 </sect2>
125
[7c56ece]126 <sect2 role="configuration" revision="sysv">
[a23aa7b]127 <title>Configuring bridge-utils</title>
128
[7c56ece]129 <sect3 id='bridgeutils-init'>
[a23aa7b]130 <title>Configuration Information</title>
131
[b51fe6e]132 <para>
133 To automate bridge creation and configuration,
[265da10b]134 install the <filename>/usr/lib/services/bridge</filename>
[b51fe6e]135 service script included in the <xref linkend="bootscripts"/>
136 package.
137 </para>
[a23aa7b]138
139 <indexterm zone="bridgeutils bridgeutils-init">
140 <primary sortas="f-bridgeutils">bridge-utils</primary>
141 </indexterm>
142
[bcad034]143<screen role="root"><userinput>make install-service-bridge</userinput></screen>
[a23aa7b]144
[b51fe6e]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>
[78962e30]164 Other <envar>SERVICE</envar> combinations are possible, for example,
165 <code>SERVICE="bridge dhcp"</code>. In that case, the address
[9e2ff85]166 parameters are not needed, but do not interfere if present. The
[b51fe6e]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>
[0d7900a]181
[a23aa7b]182<screen role="root"><userinput>cat &gt; /etc/sysconfig/ifconfig.br0 &lt;&lt; "EOF"
183<literal>ONBOOT=yes
184IFACE=br0
[274a82e9]185VIRTINT=yes
[a23aa7b]186SERVICE="bridge ipv4-static" # Space separated
187IP=192.168.1.32
188GATEWAY=192.168.1.1
189PREFIX=24
190BROADCAST=192.168.1.255
[d28198d3]191CHECK_LINK=no # Don't check before bridge is created
[a23aa7b]192STP=no # Spanning tree protocol, default no
[0d7900a]193INTERFACE_COMPONENTS="eth0" # Add to IFACE, space separated devices
[a23aa7b]194IP_FORWARD=true</literal>
195EOF</userinput></screen>
196
[b51fe6e]197 <para>
198 All addresses should be changed to meet your circumstance.
199 </para>
[a23aa7b]200
201 </sect3>
[7c56ece]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>
[a23aa7b]207
[7c56ece]208 <sect3 id='bridgeutils-init-systemd'>
[3c7bd00]209 <title>Configuration Information</title>
[b51fe6e]210 <para>
211 TBA
212 </para>
[3c7bd00]213 </sect3>
[a23aa7b]214 </sect2>
[7c56ece]215-->
[a23aa7b]216
217
[5f6ab32]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>
[b51fe6e]241 <para>
242 is a program used to set up, maintain, and inspect the
[4c24eb0a]243 ethernet bridge configuration in the linux kernel
[b51fe6e]244 </para>
[5f6ab32]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.