source: networking/connect/advanced-network.xml@ f6b3dbf

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 f6b3dbf was 511e498, checked in by Bruce Dubbs <bdubbs@…>, 10 months ago

Remove duplicate words

  • Property mode set to 100644
File size: 4.6 KB
RevLine 
[e468571]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
8<sect1 id="advanced-network" revision="systemd">
9 <?dbhtml filename="advanced-network.html"?>
10
11
12 <title>Advanced Network Setup</title>
13
14 <sect2 id="network-bridge">
15 <title>Network Bridge</title>
16
17 <sect3 role="kernel" id="advanced-network-bridge-kernel">
18 <title>Kernel Configuration</title>
19
20 <para>
21 Enable the following options in the kernel configuration
22 and recompile the kernel if necessary:
23 </para>
24
25<screen><literal>Networking support: Y
26 Networking options:
27 802.1d Ethernet Bridging: M or Y</literal></screen>
28
29 <indexterm zone="advanced-network advanced-network-bridge-kernel">
30 <primary sortas="d-advanced-network-bridge">Advanced Network Bridge</primary>
31 </indexterm>
32
33 </sect3>
34
35 <sect3>
36 <title>Setting up a Network Bridge</title>
37
38 <para>
[511e498]39 In this section we are going to discuss how to set up a network
[e468571]40 bridge using <command>systemd-networkd</command>. In the examples
41 below, <replaceable>eth0</replaceable> represents the external
42 interface that is being bridged, while <replaceable>br0</replaceable>
43 represents the bridge interface.
44 </para>
45
46 <para>
47 To create a bridge interface, create the following configuration file
48 by running the following command as the
49 <systemitem class="username">root</systemitem> user:
50 </para>
51
52<screen role="root"><userinput>cat &gt; /etc/systemd/network/50-br0.netdev &lt;&lt; EOF
53<literal>[NetDev]
54Name=<replaceable>br0</replaceable>
55Kind=bridge</literal>
56EOF</userinput></screen>
57
58 <para>
59 To assign a network interface to a bridge, create the following
60 configuration file by running the following command as the
61 <systemitem class="username">root</systemitem> user:
62 </para>
63
64<screen role="root"><userinput>cat &gt; /etc/systemd/network/51-eth0.network &lt;&lt; EOF
65<literal>[Match]
66Name=<replaceable>eth0</replaceable>
67
68[Network]
69Bridge=<replaceable>br0</replaceable></literal>
70EOF</userinput></screen>
71
72 <para>
73 Repeat the process for any other interfaces that need to be bridged.
74 Note that it is important that nothing assigns any addresses to the
[cc2e1ac6]75 bridged interfaces. If you are using <xref linkend="NetworkManager"/>,
76 <!--or <xref linkend="wicd"/>i,--> make sure you configure them to ignore
[e468571]77 the bridged interfaces, as well as the bridge interface itself.
78 </para>
79
80 <para>
81 If you are on a network which uses DHCP for assigning ip addresses,
82 create the following configuration file by running the following
83 command as the <systemitem class="username">root</systemitem> user:
84 </para>
85
86<screen role="root"><userinput>cat &gt; /etc/systemd/network/60-br0.network &lt;&lt; EOF
87<literal>[Match]
88Name=<replaceable>br0</replaceable>
89
90[Network]
91DHCP=yes</literal>
92EOF</userinput></screen>
93
94 <para>
95 Alternatively, if using a static ip setup, create the following
96 configuration file by running the following command as the
97 <systemitem class="username">root</systemitem> user:
98 </para>
99
100<screen role="root"><userinput>cat &gt; /etc/systemd/network/60-br0.network &lt;&lt; EOF
101<literal>[Match]
102Name=<replaceable>br0</replaceable>
103
104[Network]
105Address=192.168.0.2/24
106Gateway=192.168.0.1
107DNS=192.168.0.1</literal>
108EOF</userinput></screen>
109
110 <para>
111 To bring up the bridge interface, simply restart the
112 <command>systemd-networkd</command> daemon by running the following
113 command as the <systemitem class="username">root</systemitem> user:
114 </para>
115
116<screen role="root"><userinput>systemctl restart systemd-networkd</userinput></screen>
117
118 </sect3>
119
120 </sect2>
121
122 <!-- <sect2 id="network-interface-bonding">
123 <title>Network Interface Bonding</title>
124
125 <sect3 role="kernel" id="advanced-network-bonding-kernel">
126 <title>Kernel Configuration</title>
127
128 <para>
129 Enable the following options in the kernel configuration
130 and recompile the kernel if necessary:
131 </para>
132
133<screen><literal>Device Drivers:
134 Network device support: Y
135 Bonding driver support: M or Y</literal></screen>
136
137 <indexterm zone="advanced-network advanced-network-bonding-kernel">
138 <primary sortas="d-advanced-network-bonding">Advanced Network Bonding</primary>
139 </indexterm>
140
141 </sect3>
142
143 <sect3>
144 <title>Setting up Network Interface Bonding</title>
145
146 </sect3>
147
148 </sect2> -->
149
150</sect1>
Note: See TracBrowser for help on using the repository browser.