source: networking/connect/advanced-network-systemd.xml@ 9a9c7c2

7.6-blfs 7.6-systemd kde5-14269 kde5-14686 systemd-13485
Last change on this file since 9a9c7c2 was f994845, checked in by Krejzi <krejzi@…>, 10 years ago

Add kernel config section for bonding, but keep it commented out until the entire section has been completed.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@13808 af4574ff-66df-0310-9fd7-8a98e5e911e0

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