]>
Commit | Line | Data |
---|---|---|
eac684ef | 1 | <?xml version='1.0'?> <!--*-nxml-*--> |
3a54a157 | 2 | <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" |
12b42c76 | 3 | "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"> |
0307f791 | 4 | <!-- SPDX-License-Identifier: LGPL-2.1+ --> |
eac684ef TG |
5 | |
6 | <refentry id="systemd.netdev" conditional='ENABLE_NETWORKD'> | |
7 | ||
798d3a52 ZJS |
8 | <refentryinfo> |
9 | <title>systemd.network</title> | |
10 | <productname>systemd</productname> | |
798d3a52 ZJS |
11 | </refentryinfo> |
12 | ||
13 | <refmeta> | |
14 | <refentrytitle>systemd.netdev</refentrytitle> | |
15 | <manvolnum>5</manvolnum> | |
16 | </refmeta> | |
17 | ||
18 | <refnamediv> | |
19 | <refname>systemd.netdev</refname> | |
20 | <refpurpose>Virtual Network Device configuration</refpurpose> | |
21 | </refnamediv> | |
22 | ||
23 | <refsynopsisdiv> | |
24 | <para><filename><replaceable>netdev</replaceable>.netdev</filename></para> | |
25 | </refsynopsisdiv> | |
26 | ||
27 | <refsect1> | |
28 | <title>Description</title> | |
29 | ||
30 | <para>Network setup is performed by | |
31 | <citerefentry><refentrytitle>systemd-networkd</refentrytitle><manvolnum>8</manvolnum></citerefentry>. | |
32 | </para> | |
33 | ||
bac150e9 ZJS |
34 | <para>The main Virtual Network Device file must have the extension <filename>.netdev</filename>; |
35 | other extensions are ignored. Virtual network devices are created as soon as networkd is | |
36 | started. If a netdev with the specified name already exists, networkd will use that as-is rather | |
37 | than create its own. Note that the settings of the pre-existing netdev will not be changed by | |
798d3a52 ZJS |
38 | networkd.</para> |
39 | ||
bac150e9 ZJS |
40 | <para>The <filename>.netdev</filename> files are read from the files located in the system |
41 | network directory <filename>/usr/lib/systemd/network</filename>, the volatile runtime network | |
42 | directory <filename>/run/systemd/network</filename> and the local administration network | |
43 | directory <filename>/etc/systemd/network</filename>. All configuration files are collectively | |
44 | sorted and processed in lexical order, regardless of the directories in which they live. | |
45 | However, files with identical filenames replace each other. Files in <filename>/etc</filename> | |
46 | have the highest priority, files in <filename>/run</filename> take precedence over files with | |
47 | the same name in <filename>/usr/lib</filename>. This can be used to override a system-supplied | |
48 | configuration file with a local file if needed. As a special case, an empty file (file size 0) | |
49 | or symlink with the same name pointing to <filename>/dev/null</filename> disables the | |
50 | configuration file entirely (it is "masked").</para> | |
51 | ||
52 | <para>Along with the netdev file <filename>foo.netdev</filename>, a "drop-in" directory | |
53 | <filename>foo.netdev.d/</filename> may exist. All files with the suffix <literal>.conf</literal> | |
54 | from this directory will be parsed after the file itself is parsed. This is useful to alter or | |
55 | add configuration settings, without having to modify the main configuration file. Each drop-in | |
56 | file must have appropriate section headers.</para> | |
57 | ||
58 | <para>In addition to <filename>/etc/systemd/network</filename>, drop-in <literal>.d</literal> | |
59 | directories can be placed in <filename>/usr/lib/systemd/network</filename> or | |
60 | <filename>/run/systemd/network</filename> directories. Drop-in files in | |
61 | <filename>/etc</filename> take precedence over those in <filename>/run</filename> which in turn | |
62 | take precedence over those in <filename>/usr/lib</filename>. Drop-in files under any of these | |
63 | directories take precedence over the main netdev file wherever located. (Of course, since | |
64 | <filename>/run</filename> is temporary and <filename>/usr/lib</filename> is for vendors, it is | |
65 | unlikely drop-ins should be used in either of those places.)</para> | |
798d3a52 ZJS |
66 | </refsect1> |
67 | ||
68 | <refsect1> | |
69 | <title>Supported netdev kinds</title> | |
70 | ||
71 | <para>The following kinds of virtual network devices may be | |
72 | configured in <filename>.netdev</filename> files:</para> | |
73 | ||
74 | <table> | |
75 | <title>Supported kinds of virtual network devices</title> | |
76 | ||
77 | <tgroup cols='2'> | |
78 | <colspec colname='kind' /> | |
79 | <colspec colname='explanation' /> | |
80 | <thead><row> | |
81 | <entry>Kind</entry> | |
82 | <entry>Description</entry> | |
83 | </row></thead> | |
84 | <tbody> | |
85 | <row><entry><varname>bond</varname></entry> | |
86 | <entry>A bond device is an aggregation of all its slave devices. See <ulink url="https://www.kernel.org/doc/Documentation/networking/bonding.txt">Linux Ethernet Bonding Driver HOWTO</ulink> for details.Local configuration</entry></row> | |
87 | ||
88 | <row><entry><varname>bridge</varname></entry> | |
a8eaaee7 | 89 | <entry>A bridge device is a software switch, and each of its slave devices and the bridge itself are ports of the switch.</entry></row> |
798d3a52 ZJS |
90 | |
91 | <row><entry><varname>dummy</varname></entry> | |
92 | <entry>A dummy device drops all packets sent to it.</entry></row> | |
93 | ||
94 | <row><entry><varname>gre</varname></entry> | |
95 | <entry>A Level 3 GRE tunnel over IPv4. See <ulink url="https://tools.ietf.org/html/rfc2784">RFC 2784</ulink> for details.</entry></row> | |
96 | ||
97 | <row><entry><varname>gretap</varname></entry> | |
98 | <entry>A Level 2 GRE tunnel over IPv4.</entry></row> | |
99 | ||
2266864b | 100 | <row><entry><varname>erspan</varname></entry> |
d653a359 | 101 | <entry>ERSPAN mirrors traffic on one or more source ports and delivers the mirrored traffic to one or more destination ports on another switch. The traffic is encapsulated in generic routing encapsulation (GRE) and is therefore routable across a layer 3 network between the source switch and the destination switch.</entry></row> |
2266864b | 102 | |
798d3a52 ZJS |
103 | <row><entry><varname>ip6gre</varname></entry> |
104 | <entry>A Level 3 GRE tunnel over IPv6.</entry></row> | |
105 | ||
106 | <row><entry><varname>ip6tnl</varname></entry> | |
107 | <entry>An IPv4 or IPv6 tunnel over IPv6</entry></row> | |
108 | ||
109 | <row><entry><varname>ip6gretap</varname></entry> | |
037a3ded | 110 | <entry>A Level 2 GRE tunnel over IPv6.</entry></row> |
798d3a52 ZJS |
111 | |
112 | <row><entry><varname>ipip</varname></entry> | |
113 | <entry>An IPv4 over IPv4 tunnel.</entry></row> | |
114 | ||
115 | <row><entry><varname>ipvlan</varname></entry> | |
116 | <entry>An ipvlan device is a stacked device which receives packets from its underlying device based on IP address filtering.</entry></row> | |
117 | ||
69c317a0 SS |
118 | <row><entry><varname>ipvtap</varname></entry> |
119 | <entry>An ipvtap device is a stacked device which receives packets from its underlying device based on IP address filtering and can be accessed using the tap user space interface.</entry></row> | |
120 | ||
798d3a52 ZJS |
121 | <row><entry><varname>macvlan</varname></entry> |
122 | <entry>A macvlan device is a stacked device which receives packets from its underlying device based on MAC address filtering.</entry></row> | |
123 | ||
0371f2df SS |
124 | <row><entry><varname>macvtap</varname></entry> |
125 | <entry>A macvtap device is a stacked device which receives packets from its underlying device based on MAC address filtering.</entry></row> | |
126 | ||
798d3a52 ZJS |
127 | <row><entry><varname>sit</varname></entry> |
128 | <entry>An IPv6 over IPv4 tunnel.</entry></row> | |
129 | ||
130 | <row><entry><varname>tap</varname></entry> | |
131 | <entry>A persistent Level 2 tunnel between a network device and a device node.</entry></row> | |
132 | ||
133 | <row><entry><varname>tun</varname></entry> | |
134 | <entry>A persistent Level 3 tunnel between a network device and a device node.</entry></row> | |
135 | ||
136 | <row><entry><varname>veth</varname></entry> | |
a8eaaee7 | 137 | <entry>An Ethernet tunnel between a pair of network devices.</entry></row> |
798d3a52 ZJS |
138 | |
139 | <row><entry><varname>vlan</varname></entry> | |
140 | <entry>A VLAN is a stacked device which receives packets from its underlying device based on VLAN tagging. See <ulink url="http://www.ieee802.org/1/pages/802.1Q.html">IEEE 802.1Q</ulink> for details.</entry></row> | |
141 | ||
142 | <row><entry><varname>vti</varname></entry> | |
143 | <entry>An IPv4 over IPSec tunnel.</entry></row> | |
144 | ||
5cc0748e SS |
145 | <row><entry><varname>vti6</varname></entry> |
146 | <entry>An IPv6 over IPSec tunnel.</entry></row> | |
147 | ||
798d3a52 ZJS |
148 | <row><entry><varname>vxlan</varname></entry> |
149 | <entry>A virtual extensible LAN (vxlan), for connecting Cloud computing deployments.</entry></row> | |
20897a0d | 150 | |
6598e046 SS |
151 | <row><entry><varname>geneve</varname></entry> |
152 | <entry>A GEneric NEtwork Virtualization Encapsulation (GENEVE) netdev driver.</entry></row> | |
153 | ||
3a56e697 SS |
154 | <row><entry><varname>l2tp</varname></entry> |
155 | <entry>A Layer 2 Tunneling Protocol (L2TP) is a tunneling protocol used to support virtual private networks (VPNs) or as part of the delivery of services by ISPs. It does not provide any encryption or confidentiality by itself</entry></row> | |
156 | ||
81962db7 SS |
157 | <row><entry><varname>macsec</varname></entry> |
158 | <entry>Media Access Control Security (MACsec) is an 802.1AE IEEE industry-standard security technology that provides secure communication for all traffic on Ethernet links. MACsec provides point-to-point security on Ethernet links between directly connected nodes and is capable of identifying and preventing most security threats.</entry></row> | |
159 | ||
20897a0d | 160 | <row><entry><varname>vrf</varname></entry> |
92c918b0 SS |
161 | <entry>A Virtual Routing and Forwarding (<ulink url="https://www.kernel.org/doc/Documentation/networking/vrf.txt">VRF</ulink>) interface to create separate routing and forwarding domains.</entry></row> |
162 | ||
163 | <row><entry><varname>vcan</varname></entry> | |
ba9fa3bc | 164 | <entry>The virtual CAN driver (vcan). Similar to the network loopback devices, vcan offers a virtual local CAN interface.</entry></row> |
20897a0d | 165 | |
d6df583c SS |
166 | <row><entry><varname>vxcan</varname></entry> |
167 | <entry>The virtual CAN tunnel driver (vxcan). Similar to the virtual ethernet driver veth, vxcan implements a local CAN traffic tunnel between two virtual CAN network devices. When creating a vxcan, two vxcan devices are created as pair. When one end receives the packet it appears on its pair and vice versa. The vxcan can be used for cross namespace communication. | |
168 | </entry></row> | |
169 | ||
e5719363 JT |
170 | <row><entry><varname>wireguard</varname></entry> |
171 | <entry>WireGuard Secure Network Tunnel.</entry></row> | |
172 | ||
56e7fb50 | 173 | <row><entry><varname>netdevsim</varname></entry> |
d61e4c5b YW |
174 | <entry>A simulator. This simulated networking device is used for testing various networking APIs and at this time is particularly focused on testing hardware offloading related interfaces.</entry></row> |
175 | ||
176 | <row><entry><varname>nlmon</varname></entry> | |
177 | <entry>A Netlink monitor device. Use an nlmon device when you want to monitor system Netlink messages.</entry></row> | |
53cb501a SS |
178 | |
179 | <row><entry><varname>fou</varname></entry> | |
180 | <entry>Foo-over-UDP tunneling.</entry></row> | |
181 | ||
798d3a52 ZJS |
182 | </tbody> |
183 | </tgroup> | |
184 | </table> | |
185 | ||
186 | </refsect1> | |
187 | ||
188 | <refsect1> | |
189 | <title>[Match] Section Options</title> | |
190 | ||
191 | <para>A virtual network device is only created if the | |
192 | <literal>[Match]</literal> section matches the current | |
193 | environment, or if the section is empty. The following keys are | |
194 | accepted:</para> | |
195 | ||
196 | <variablelist class='network-directives'> | |
197 | <varlistentry> | |
198 | <term><varname>Host=</varname></term> | |
199 | <listitem> | |
d689bbca YW |
200 | <para>Matches against the hostname or machine ID of the host. See |
201 | <literal>ConditionHost=</literal> in | |
798d3a52 | 202 | <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry> |
d689bbca YW |
203 | for details. When prefixed with an exclamation mark (<literal>!</literal>), the result is negated. |
204 | If an empty string is assigned, then previously assigned value is cleared. | |
798d3a52 ZJS |
205 | </para> |
206 | </listitem> | |
207 | </varlistentry> | |
208 | <varlistentry> | |
209 | <term><varname>Virtualization=</varname></term> | |
210 | <listitem> | |
d689bbca YW |
211 | <para>Checks whether the system is executed in a virtualized environment and optionally test |
212 | whether it is a specific implementation. See <literal>ConditionVirtualization=</literal> in | |
798d3a52 | 213 | <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry> |
d689bbca YW |
214 | for details. When prefixed with an exclamation mark (<literal>!</literal>), the result is negated. |
215 | If an empty string is assigned, then previously assigned value is cleared. | |
798d3a52 ZJS |
216 | </para> |
217 | </listitem> | |
218 | </varlistentry> | |
219 | <varlistentry> | |
220 | <term><varname>KernelCommandLine=</varname></term> | |
221 | <listitem> | |
d689bbca | 222 | <para>Checks whether a specific kernel command line option is set. See |
798d3a52 ZJS |
223 | <literal>ConditionKernelCommandLine=</literal> in |
224 | <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry> | |
d689bbca YW |
225 | for details. When prefixed with an exclamation mark (<literal>!</literal>), the result is negated. |
226 | If an empty string is assigned, then previously assigned value is cleared. | |
798d3a52 ZJS |
227 | </para> |
228 | </listitem> | |
229 | </varlistentry> | |
5022f08a LP |
230 | <varlistentry> |
231 | <term><varname>KernelVersion=</varname></term> | |
232 | <listitem> | |
d689bbca YW |
233 | <para>Checks whether the kernel version (as reported by <command>uname -r</command>) matches a |
234 | certain expression. See <literal>ConditionKernelVersion=</literal> in | |
235 | <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry> | |
236 | for details. When prefixed with an exclamation mark (<literal>!</literal>), the result is negated. | |
237 | If an empty string is assigned, then previously assigned value is cleared. | |
5022f08a LP |
238 | </para> |
239 | </listitem> | |
240 | </varlistentry> | |
798d3a52 ZJS |
241 | <varlistentry> |
242 | <term><varname>Architecture=</varname></term> | |
243 | <listitem> | |
d689bbca YW |
244 | <para>Checks whether the system is running on a specific architecture. See |
245 | <literal>ConditionArchitecture=</literal> in | |
798d3a52 | 246 | <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry> |
d689bbca YW |
247 | for details. When prefixed with an exclamation mark (<literal>!</literal>), the result is negated. |
248 | If an empty string is assigned, then previously assigned value is cleared. | |
798d3a52 ZJS |
249 | </para> |
250 | </listitem> | |
251 | </varlistentry> | |
252 | </variablelist> | |
253 | ||
254 | </refsect1> | |
255 | ||
256 | <refsect1> | |
257 | <title>[NetDev] Section Options</title> | |
258 | ||
259 | <para>The <literal>[NetDev]</literal> section accepts the | |
260 | following keys:</para> | |
261 | ||
262 | <variablelist class='network-directives'> | |
263 | <varlistentry> | |
264 | <term><varname>Description=</varname></term> | |
265 | <listitem> | |
266 | <para>A free-form description of the netdev.</para> | |
267 | </listitem> | |
268 | </varlistentry> | |
269 | <varlistentry> | |
270 | <term><varname>Name=</varname></term> | |
271 | <listitem> | |
272 | <para>The interface name used when creating the netdev. | |
273 | This option is compulsory.</para> | |
274 | </listitem> | |
275 | </varlistentry> | |
276 | <varlistentry> | |
277 | <term><varname>Kind=</varname></term> | |
278 | <listitem> | |
279 | <para>The netdev kind. This option is compulsory. See the | |
280 | <literal>Supported netdev kinds</literal> section for the | |
281 | valid keys.</para> | |
282 | </listitem> | |
283 | </varlistentry> | |
284 | <varlistentry> | |
285 | <term><varname>MTUBytes=</varname></term> | |
286 | <listitem> | |
48847676 YW |
287 | <para>The maximum transmission unit in bytes to set for the device. The usual suffixes K, M, G, |
288 | are supported and are understood to the base of 1024. For <literal>tun</literal> or | |
289 | <literal>tap</literal> devices, <varname>MTUBytes=</varname> setting is not currently supported in | |
290 | <literal>[NetDev]</literal> section. Please specify it in <literal>[Link]</literal> section of | |
291 | corresponding | |
292 | <citerefentry><refentrytitle>systemd.network</refentrytitle><manvolnum>5</manvolnum></citerefentry> | |
293 | files.</para> | |
798d3a52 ZJS |
294 | </listitem> |
295 | </varlistentry> | |
296 | <varlistentry> | |
297 | <term><varname>MACAddress=</varname></term> | |
298 | <listitem> | |
a61b550c YW |
299 | <para>The MAC address to use for the device. For <literal>tun</literal> or <literal>tap</literal> |
300 | devices, setting <varname>MACAddress=</varname> in the <literal>[NetDev]</literal> section is not | |
301 | supported. Please specify it in <literal>[Link]</literal> section of the corresponding | |
48847676 | 302 | <citerefentry><refentrytitle>systemd.network</refentrytitle><manvolnum>5</manvolnum></citerefentry> |
a61b550c YW |
303 | file. If this option is not set, <literal>vlan</literal> devices inherit the MAC address of the |
304 | physical interface. For other kind of netdevs, if this option is not set, then MAC address is | |
305 | generated based on the interface name and the | |
306 | <citerefentry><refentrytitle>machine-id</refentrytitle><manvolnum>5</manvolnum></citerefentry>. | |
307 | </para> | |
798d3a52 ZJS |
308 | </listitem> |
309 | </varlistentry> | |
310 | </variablelist> | |
311 | </refsect1> | |
312 | ||
3428fe07 SS |
313 | <refsect1> |
314 | <title>[Bridge] Section Options</title> | |
315 | ||
316 | <para>The <literal>[Bridge]</literal> section only applies for | |
317 | netdevs of kind <literal>bridge</literal>, and accepts the | |
a8eaaee7 | 318 | following keys:</para> |
3428fe07 SS |
319 | |
320 | <variablelist class='network-directives'> | |
321 | <varlistentry> | |
322 | <term><varname>HelloTimeSec=</varname></term> | |
323 | <listitem> | |
a8eaaee7 | 324 | <para>HelloTimeSec specifies the number of seconds between two hello packets |
3428fe07 SS |
325 | sent out by the root bridge and the designated bridges. Hello packets are |
326 | used to communicate information about the topology throughout the entire | |
327 | bridged local area network.</para> | |
328 | </listitem> | |
329 | </varlistentry> | |
330 | <varlistentry> | |
331 | <term><varname>MaxAgeSec=</varname></term> | |
332 | <listitem> | |
333 | <para>MaxAgeSec specifies the number of seconds of maximum message age. | |
334 | If the last seen (received) hello packet is more than this number of | |
335 | seconds old, the bridge in question will start the takeover procedure | |
336 | in attempt to become the Root Bridge itself.</para> | |
337 | </listitem> | |
338 | </varlistentry> | |
339 | <varlistentry> | |
340 | <term><varname>ForwardDelaySec=</varname></term> | |
341 | <listitem> | |
342 | <para>ForwardDelaySec specifies the number of seconds spent in each | |
343 | of the Listening and Learning states before the Forwarding state is entered.</para> | |
344 | </listitem> | |
345 | </varlistentry> | |
c7440e74 TJ |
346 | <varlistentry> |
347 | <term><varname>AgeingTimeSec=</varname></term> | |
348 | <listitem> | |
349 | <para>This specifies the number of seconds a MAC Address will be kept in | |
d23a0044 | 350 | the forwarding database after having a packet received from this MAC Address.</para> |
c7440e74 TJ |
351 | </listitem> |
352 | </varlistentry> | |
353 | <varlistentry> | |
354 | <term><varname>Priority=</varname></term> | |
355 | <listitem> | |
356 | <para>The priority of the bridge. An integer between 0 and 65535. A lower value | |
357 | means higher priority. The bridge having the lowest priority will be elected as root bridge.</para> | |
358 | </listitem> | |
359 | </varlistentry> | |
c4819961 JC |
360 | <varlistentry> |
361 | <term><varname>GroupForwardMask=</varname></term> | |
362 | <listitem> | |
363 | <para>A 16-bit bitmask represented as an integer which allows forwarding of link | |
364 | local frames with 802.1D reserved addresses (01:80:C2:00:00:0X). A logical AND | |
365 | is performed between the specified bitmask and the exponentiation of 2^X, the | |
366 | lower nibble of the last octet of the MAC address. For example, a value of 8 | |
367 | would allow forwarding of frames addressed to 01:80:C2:00:00:03 (802.1X PAE).</para> | |
368 | </listitem> | |
369 | </varlistentry> | |
c7440e74 TJ |
370 | <varlistentry> |
371 | <term><varname>DefaultPVID=</varname></term> | |
372 | <listitem> | |
0d6c68eb TJ |
373 | <para>This specifies the default port VLAN ID of a newly attached bridge port. |
374 | Set this to an integer in the range 1–4094 or <literal>none</literal> to disable the PVID.</para> | |
c7440e74 TJ |
375 | </listitem> |
376 | </varlistentry> | |
3fef7a3f SS |
377 | <varlistentry> |
378 | <term><varname>MulticastQuerier=</varname></term> | |
379 | <listitem> | |
9b6ffef3 | 380 | <para>Takes a boolean. This setting controls the IFLA_BR_MCAST_QUERIER option in the kernel. |
3fef7a3f SS |
381 | If enabled, the kernel will send general ICMP queries from a zero source address. |
382 | This feature should allow faster convergence on startup, but it causes some | |
383 | multicast-aware switches to misbehave and disrupt forwarding of multicast packets. | |
025314d9 | 384 | When unset, the kernel's default will be used. |
3fef7a3f SS |
385 | </para> |
386 | </listitem> | |
387 | </varlistentry> | |
6df6d898 SS |
388 | <varlistentry> |
389 | <term><varname>MulticastSnooping=</varname></term> | |
390 | <listitem> | |
9b6ffef3 | 391 | <para>Takes a boolean. This setting controls the IFLA_BR_MCAST_SNOOPING option in the kernel. |
6df6d898 | 392 | If enabled, IGMP snooping monitors the Internet Group Management Protocol (IGMP) traffic |
025314d9 | 393 | between hosts and multicast routers. When unset, the kernel's default will be used. |
6df6d898 SS |
394 | </para> |
395 | </listitem> | |
396 | </varlistentry> | |
c6f8d17d TJ |
397 | <varlistentry> |
398 | <term><varname>VLANFiltering=</varname></term> | |
399 | <listitem> | |
9b6ffef3 | 400 | <para>Takes a boolean. This setting controls the IFLA_BR_VLAN_FILTERING option in the kernel. |
025314d9 | 401 | If enabled, the bridge will be started in VLAN-filtering mode. When unset, the kernel's default will be used. |
c6f8d17d TJ |
402 | </para> |
403 | </listitem> | |
404 | </varlistentry> | |
b760a9af SS |
405 | <varlistentry> |
406 | <term><varname>STP=</varname></term> | |
407 | <listitem> | |
9b6ffef3 | 408 | <para>Takes a boolean. This enables the bridge's Spanning Tree Protocol (STP). |
025314d9 | 409 | When unset, the kernel's default will be used. |
b760a9af SS |
410 | </para> |
411 | </listitem> | |
412 | </varlistentry> | |
3428fe07 | 413 | </variablelist> |
3428fe07 SS |
414 | </refsect1> |
415 | ||
798d3a52 ZJS |
416 | <refsect1> |
417 | <title>[VLAN] Section Options</title> | |
418 | ||
419 | <para>The <literal>[VLAN]</literal> section only applies for | |
420 | netdevs of kind <literal>vlan</literal>, and accepts the | |
421 | following key:</para> | |
422 | ||
423 | <variablelist class='network-directives'> | |
424 | <varlistentry> | |
425 | <term><varname>Id=</varname></term> | |
426 | <listitem> | |
427 | <para>The VLAN ID to use. An integer in the range 0–4094. | |
428 | This option is compulsory.</para> | |
429 | </listitem> | |
430 | </varlistentry> | |
c8b21184 SS |
431 | <varlistentry> |
432 | <term><varname>GVRP=</varname></term> | |
433 | <listitem> | |
9b6ffef3 YW |
434 | <para>Takes a boolean. The Generic VLAN Registration Protocol (GVRP) is a protocol that |
435 | allows automatic learning of VLANs on a network. | |
025314d9 YW |
436 | When unset, the kernel's default will be used. |
437 | </para> | |
c8b21184 SS |
438 | </listitem> |
439 | </varlistentry> | |
6c1ff21b SS |
440 | <varlistentry> |
441 | <term><varname>MVRP=</varname></term> | |
442 | <listitem> | |
9b6ffef3 | 443 | <para>Takes a boolean. Multiple VLAN Registration Protocol (MVRP) formerly known as GARP VLAN |
6c1ff21b SS |
444 | Registration Protocol (GVRP) is a standards-based Layer 2 network protocol, |
445 | for automatic configuration of VLAN information on switches. It was defined | |
9b6ffef3 | 446 | in the 802.1ak amendment to 802.1Q-2005. When unset, the kernel's default will be used. |
025314d9 | 447 | </para> |
6c1ff21b SS |
448 | </listitem> |
449 | </varlistentry> | |
450 | <varlistentry> | |
451 | <term><varname>LooseBinding=</varname></term> | |
452 | <listitem> | |
9b6ffef3 | 453 | <para>Takes a boolean. The VLAN loose binding mode, in which only the operational state is passed |
6c1ff21b | 454 | from the parent to the associated VLANs, but the VLAN device state is not changed. |
9b6ffef3 | 455 | When unset, the kernel's default will be used.</para> |
6c1ff21b SS |
456 | </listitem> |
457 | </varlistentry> | |
458 | <varlistentry> | |
459 | <term><varname>ReorderHeader=</varname></term> | |
460 | <listitem> | |
9b6ffef3 YW |
461 | <para>Takes a boolean. The VLAN reorder header is set VLAN interfaces behave like physical interfaces. |
462 | When unset, the kernel's default will be used.</para> | |
6c1ff21b SS |
463 | </listitem> |
464 | </varlistentry> | |
798d3a52 | 465 | </variablelist> |
798d3a52 ZJS |
466 | </refsect1> |
467 | ||
468 | <refsect1> | |
469 | <title>[MACVLAN] Section Options</title> | |
470 | ||
471 | <para>The <literal>[MACVLAN]</literal> section only applies for | |
472 | netdevs of kind <literal>macvlan</literal>, and accepts the | |
473 | following key:</para> | |
474 | ||
475 | <variablelist class='network-directives'> | |
476 | <varlistentry> | |
477 | <term><varname>Mode=</varname></term> | |
478 | <listitem> | |
479 | <para>The MACVLAN mode to use. The supported options are | |
480 | <literal>private</literal>, | |
481 | <literal>vepa</literal>, | |
482 | <literal>bridge</literal>, and | |
483 | <literal>passthru</literal>. | |
484 | </para> | |
485 | </listitem> | |
486 | </varlistentry> | |
487 | </variablelist> | |
488 | ||
489 | </refsect1> | |
490 | ||
0371f2df SS |
491 | <refsect1> |
492 | <title>[MACVTAP] Section Options</title> | |
493 | ||
494 | <para>The <literal>[MACVTAP]</literal> section applies for | |
495 | netdevs of kind <literal>macvtap</literal> and accepts the | |
96d49011 | 496 | same key as <literal>[MACVLAN]</literal>.</para> |
0371f2df SS |
497 | |
498 | </refsect1> | |
499 | ||
798d3a52 ZJS |
500 | <refsect1> |
501 | <title>[IPVLAN] Section Options</title> | |
502 | ||
503 | <para>The <literal>[IPVLAN]</literal> section only applies for | |
504 | netdevs of kind <literal>ipvlan</literal>, and accepts the | |
505 | following key:</para> | |
506 | ||
507 | <variablelist class='network-directives'> | |
508 | <varlistentry> | |
509 | <term><varname>Mode=</varname></term> | |
510 | <listitem> | |
511 | <para>The IPVLAN mode to use. The supported options are | |
d384826f SS |
512 | <literal>L2</literal>,<literal>L3</literal> and <literal>L3S</literal>. |
513 | </para> | |
514 | </listitem> | |
515 | </varlistentry> | |
516 | <varlistentry> | |
517 | <term><varname>Flags=</varname></term> | |
518 | <listitem> | |
519 | <para>The IPVLAN flags to use. The supported options are | |
520 | <literal>bridge</literal>,<literal>private</literal> and <literal>vepa</literal>. | |
798d3a52 ZJS |
521 | </para> |
522 | </listitem> | |
523 | </varlistentry> | |
524 | </variablelist> | |
525 | ||
526 | </refsect1> | |
527 | ||
69c317a0 SS |
528 | <refsect1> |
529 | <title>[IPVTAP] Section Options</title> | |
530 | ||
531 | <para>The <literal>[IPVTAP]</literal> section only applies for | |
532 | netdevs of kind <literal>ipvtap</literal> and accepts the | |
533 | same key as <literal>[IPVLAN]</literal>.</para> | |
534 | ||
535 | </refsect1> | |
536 | ||
798d3a52 ZJS |
537 | <refsect1> |
538 | <title>[VXLAN] Section Options</title> | |
539 | <para>The <literal>[VXLAN]</literal> section only applies for | |
540 | netdevs of kind <literal>vxlan</literal>, and accepts the | |
541 | following keys:</para> | |
542 | ||
543 | <variablelist class='network-directives'> | |
544 | <varlistentry> | |
6f213e4a | 545 | <term><varname>VNI=</varname></term> |
798d3a52 | 546 | <listitem> |
6f213e4a | 547 | <para>The VXLAN Network Identifier (or VXLAN Segment ID). Takes a number in the range 1-16777215.</para> |
798d3a52 ZJS |
548 | </listitem> |
549 | </varlistentry> | |
550 | <varlistentry> | |
d35e5d37 | 551 | <term><varname>Remote=</varname></term> |
798d3a52 | 552 | <listitem> |
bf443be9 | 553 | <para>Configures destination IP address.</para> |
798d3a52 ZJS |
554 | </listitem> |
555 | </varlistentry> | |
556 | <varlistentry> | |
d35e5d37 SS |
557 | <term><varname>Local=</varname></term> |
558 | <listitem> | |
559 | <para>Configures local IP address.</para> | |
560 | </listitem> | |
83cb24ac SS |
561 | </varlistentry> |
562 | <varlistentry> | |
563 | <term><varname>Group=</varname></term> | |
564 | <listitem> | |
565 | <para>Configures VXLAN multicast group IP address. All members of a VXLAN must use the same multicast group address.</para> | |
566 | </listitem> | |
d35e5d37 SS |
567 | </varlistentry> |
568 | <varlistentry> | |
798d3a52 ZJS |
569 | <term><varname>TOS=</varname></term> |
570 | <listitem> | |
571 | <para>The Type Of Service byte value for a vxlan interface.</para> | |
572 | </listitem> | |
573 | </varlistentry> | |
574 | <varlistentry> | |
575 | <term><varname>TTL=</varname></term> | |
576 | <listitem> | |
f4a8ca32 SS |
577 | <para>A fixed Time To Live N on Virtual eXtensible Local Area Network packets. |
578 | Takes <literal>inherit</literal> or a number in the range 0–255. 0 is a special | |
579 | value meaning inherit the inner protocol's TTL value. <literal>inherit</literal> | |
580 | means that it will inherit the outer protocol's TTL value.</para> | |
798d3a52 ZJS |
581 | </listitem> |
582 | </varlistentry> | |
583 | <varlistentry> | |
584 | <term><varname>MacLearning=</varname></term> | |
585 | <listitem> | |
9b6ffef3 | 586 | <para>Takes a boolean. When true, enables dynamic MAC learning |
798d3a52 ZJS |
587 | to discover remote MAC addresses.</para> |
588 | </listitem> | |
589 | </varlistentry> | |
590 | <varlistentry> | |
591 | <term><varname>FDBAgeingSec=</varname></term> | |
592 | <listitem> | |
593 | <para>The lifetime of Forwarding Database entry learnt by | |
b938cb90 | 594 | the kernel, in seconds.</para> |
798d3a52 ZJS |
595 | </listitem> |
596 | </varlistentry> | |
597 | <varlistentry> | |
3d276dd2 SS |
598 | <term><varname>MaximumFDBEntries=</varname></term> |
599 | <listitem> | |
600 | <para>Configures maximum number of FDB entries.</para> | |
601 | </listitem> | |
602 | </varlistentry> | |
798d3a52 | 603 | <varlistentry> |
7dd6974c | 604 | <term><varname>ReduceARPProxy=</varname></term> |
798d3a52 | 605 | <listitem> |
9b6ffef3 | 606 | <para>Takes a boolean. When true, bridge-connected VXLAN tunnel |
7dd6974c SS |
607 | endpoint answers ARP requests from the local bridge on behalf |
608 | of remote Distributed Overlay Virtual Ethernet | |
609 | <ulink url="https://en.wikipedia.org/wiki/Distributed_Overlay_Virtual_Ethernet"> | |
610 | (DVOE)</ulink> clients. Defaults to false.</para> | |
798d3a52 ZJS |
611 | </listitem> |
612 | </varlistentry> | |
613 | <varlistentry> | |
614 | <term><varname>L2MissNotification=</varname></term> | |
615 | <listitem> | |
9b6ffef3 | 616 | <para>Takes a boolean. When true, enables netlink LLADDR miss |
798d3a52 ZJS |
617 | notifications.</para> |
618 | </listitem> | |
619 | </varlistentry> | |
620 | <varlistentry> | |
621 | <term><varname>L3MissNotification=</varname></term> | |
622 | <listitem> | |
9b6ffef3 | 623 | <para>Takes a boolean. When true, enables netlink IP address miss |
798d3a52 ZJS |
624 | notifications.</para> |
625 | </listitem> | |
626 | </varlistentry> | |
627 | <varlistentry> | |
628 | <term><varname>RouteShortCircuit=</varname></term> | |
629 | <listitem> | |
9b6ffef3 | 630 | <para>Takes a boolean. When true, route short circuiting is turned |
798d3a52 ZJS |
631 | on.</para> |
632 | </listitem> | |
633 | </varlistentry> | |
cffacc74 | 634 | <varlistentry> |
53c06862 | 635 | <term><varname>UDPChecksum=</varname></term> |
cffacc74 | 636 | <listitem> |
9b6ffef3 | 637 | <para>Takes a boolean. When true, transmitting UDP checksums when doing VXLAN/IPv4 is turned on.</para> |
cffacc74 SS |
638 | </listitem> |
639 | </varlistentry> | |
640 | <varlistentry> | |
641 | <term><varname>UDP6ZeroChecksumTx=</varname></term> | |
642 | <listitem> | |
9b6ffef3 | 643 | <para>Takes a boolean. When true, sending zero checksums in VXLAN/IPv6 is turned on.</para> |
cffacc74 SS |
644 | </listitem> |
645 | </varlistentry> | |
646 | <varlistentry> | |
53c06862 | 647 | <term><varname>UDP6ZeroChecksumRx=</varname></term> |
cffacc74 | 648 | <listitem> |
9b6ffef3 | 649 | <para>Takes a boolean. When true, receiving zero checksums in VXLAN/IPv6 is turned on.</para> |
16441027 SS |
650 | </listitem> |
651 | </varlistentry> | |
652 | <varlistentry> | |
53c06862 | 653 | <term><varname>RemoteChecksumTx=</varname></term> |
16441027 | 654 | <listitem> |
9b6ffef3 | 655 | <para>Takes a boolean. When true, remote transmit checksum offload of VXLAN is turned on.</para> |
16441027 SS |
656 | </listitem> |
657 | </varlistentry> | |
658 | <varlistentry> | |
53c06862 | 659 | <term><varname>RemoteChecksumRx=</varname></term> |
16441027 | 660 | <listitem> |
9b6ffef3 | 661 | <para>Takes a boolean. When true, remote receive checksum offload in VXLAN is turned on.</para> |
cffacc74 SS |
662 | </listitem> |
663 | </varlistentry> | |
8b414e52 SS |
664 | <varlistentry> |
665 | <term><varname>GroupPolicyExtension=</varname></term> | |
666 | <listitem> | |
9b6ffef3 | 667 | <para>Takes a boolean. When true, it enables Group Policy VXLAN extension security label mechanism |
b938cb90 | 668 | across network peers based on VXLAN. For details about the Group Policy VXLAN, see the |
8b414e52 SS |
669 | <ulink url="https://tools.ietf.org/html/draft-smith-vxlan-group-policy"> |
670 | VXLAN Group Policy </ulink> document. Defaults to false.</para> | |
671 | </listitem> | |
672 | </varlistentry> | |
4cc0fd75 SS |
673 | <varlistentry> |
674 | <term><varname>GenericProtocolExtension=</varname></term> | |
675 | <listitem> | |
676 | <para>Takes a boolean. When true, Generic Protocol Extension extends the existing VXLAN protocol | |
677 | to provide protocol typing, OAM, and versioning capabilities. For details about the VXLAN GPE | |
678 | Header, see the <ulink url="https://tools.ietf.org/html/draft-ietf-nvo3-vxlan-gpe-07"> | |
1c8b0ecc SS |
679 | Generic Protocol Extension for VXLAN </ulink> document. If destination port is not specified and |
680 | Generic Protocol Extension is set then default port of 4790 is used. Defaults to false.</para> | |
4cc0fd75 SS |
681 | </listitem> |
682 | </varlistentry> | |
ea0288d1 SS |
683 | <varlistentry> |
684 | <term><varname>DestinationPort=</varname></term> | |
685 | <listitem> | |
686 | <para>Configures the default destination UDP port on a per-device basis. | |
687 | If destination port is not specified then Linux kernel default will be used. | |
98616735 SS |
688 | Set destination port 4789 to get the IANA assigned value. If not set or if the |
689 | destination port is assigned the empty string the default port of 4789 is used.</para> | |
ea0288d1 SS |
690 | </listitem> |
691 | </varlistentry> | |
692 | <varlistentry> | |
693 | <term><varname>PortRange=</varname></term> | |
694 | <listitem> | |
695 | <para>Configures VXLAN port range. VXLAN bases source | |
696 | UDP port based on flow to help the receiver to be able | |
697 | to load balance based on outer header flow. It | |
698 | restricts the port range to the normal UDP local | |
699 | ports, and allows overriding via configuration.</para> | |
700 | </listitem> | |
701 | </varlistentry> | |
d8653945 SS |
702 | <varlistentry> |
703 | <term><varname>FlowLabel=</varname></term> | |
704 | <listitem> | |
705 | <para>Specifies the flow label to use in outgoing packets. | |
706 | The valid range is 0-1048575. | |
707 | </para> | |
708 | </listitem> | |
1189c00a SS |
709 | </varlistentry> |
710 | <varlistentry> | |
711 | <term><varname>IPDoNotFragment=</varname></term> | |
712 | <listitem> | |
713 | <para>Allows to set the IPv4 Do not Fragment (DF) bit in outgoing packets, or to inherit its | |
714 | value from the IPv4 inner header. Takes a boolean value, or <literal>inherit</literal>. Set | |
715 | to <literal>inherit</literal> if the encapsulated protocol is IPv6. When unset, the kernel's | |
716 | default will be used.</para> | |
717 | </listitem> | |
d8653945 | 718 | </varlistentry> |
798d3a52 ZJS |
719 | </variablelist> |
720 | </refsect1> | |
6598e046 SS |
721 | <refsect1> |
722 | <title>[GENEVE] Section Options</title> | |
723 | <para>The <literal>[GENEVE]</literal> section only applies for | |
724 | netdevs of kind <literal>geneve</literal>, and accepts the | |
725 | following keys:</para> | |
726 | ||
727 | <variablelist class='network-directives'> | |
728 | <varlistentry> | |
729 | <term><varname>Id=</varname></term> | |
730 | <listitem> | |
328184d1 | 731 | <para>Specifies the Virtual Network Identifier (VNI) to use. Ranges [0-16777215]. This field is mandatory.</para> |
6598e046 SS |
732 | </listitem> |
733 | </varlistentry> | |
734 | <varlistentry> | |
735 | <term><varname>Remote=</varname></term> | |
736 | <listitem> | |
737 | <para>Specifies the unicast destination IP address to use in outgoing packets.</para> | |
738 | </listitem> | |
739 | </varlistentry> | |
740 | <varlistentry> | |
741 | <term><varname>TOS=</varname></term> | |
742 | <listitem> | |
98616735 | 743 | <para>Specifies the TOS value to use in outgoing packets. Ranges [1-255].</para> |
6598e046 SS |
744 | </listitem> |
745 | </varlistentry> | |
746 | <varlistentry> | |
747 | <term><varname>TTL=</varname></term> | |
748 | <listitem> | |
d70c9bbd SS |
749 | <para>Accepts the same key in <literal>[VXLAN]</literal> section except when unset or |
750 | set to 0, the kernel's default will be used meaning that packets TTL will be set from | |
328184d1 | 751 | <filename>/proc/sys/net/ipv4/ip_default_ttl</filename>.</para> |
6598e046 SS |
752 | </listitem> |
753 | </varlistentry> | |
754 | <varlistentry> | |
755 | <term><varname>UDPChecksum=</varname></term> | |
756 | <listitem> | |
9b6ffef3 | 757 | <para>Takes a boolean. When true, specifies if UDP checksum is calculated for transmitted packets over IPv4.</para> |
6598e046 SS |
758 | </listitem> |
759 | </varlistentry> | |
760 | <varlistentry> | |
761 | <term><varname>UDP6ZeroChecksumTx=</varname></term> | |
762 | <listitem> | |
9b6ffef3 | 763 | <para>Takes a boolean. When true, skip UDP checksum calculation for transmitted packets over IPv6.</para> |
6598e046 SS |
764 | </listitem> |
765 | </varlistentry> | |
766 | <varlistentry> | |
767 | <term><varname>UDP6ZeroChecksumRx=</varname></term> | |
768 | <listitem> | |
9b6ffef3 | 769 | <para>Takes a boolean. When true, allows incoming UDP packets over IPv6 with zero checksum field.</para> |
6598e046 SS |
770 | </listitem> |
771 | </varlistentry> | |
772 | <varlistentry> | |
773 | <term><varname>DestinationPort=</varname></term> | |
774 | <listitem> | |
98616735 SS |
775 | <para>Specifies destination port. Defaults to 6081. If not set or assigned the empty string, the default |
776 | port of 6081 is used.</para> | |
6598e046 SS |
777 | </listitem> |
778 | </varlistentry> | |
779 | <varlistentry> | |
780 | <term><varname>FlowLabel=</varname></term> | |
781 | <listitem> | |
782 | <para>Specifies the flow label to use in outgoing packets.</para> | |
783 | </listitem> | |
aac35019 SS |
784 | </varlistentry> |
785 | <varlistentry> | |
786 | <term><varname>IPDoNotFragment=</varname></term> | |
787 | <listitem> | |
788 | <para>Accepts the same key in <literal>[VXLAN]</literal> section.</para> | |
789 | </listitem> | |
790 | </varlistentry> | |
6598e046 SS |
791 | </variablelist> |
792 | </refsect1> | |
3a56e697 SS |
793 | <refsect1> |
794 | <title>[L2TP] Section Options</title> | |
795 | <para>The <literal>[L2TP]</literal> section only applies for | |
796 | netdevs of kind <literal>l2tp</literal>, and accepts the | |
797 | following keys:</para> | |
798 | ||
799 | <variablelist class='network-directives'> | |
800 | <varlistentry> | |
801 | <term><varname>TunnelId=</varname></term> | |
802 | <listitem> | |
803 | <para>Specifies the tunnel id. The value used must match the <literal>PeerTunnelId=</literal> value being used at the peer. | |
804 | Ranges a number between 1 and 4294967295). This option is compulsory.</para> | |
805 | </listitem> | |
806 | </varlistentry> | |
807 | <varlistentry> | |
808 | <term><varname>PeerTunnelId=</varname></term> | |
809 | <listitem> | |
810 | <para>Specifies the peer tunnel id. The value used must match the <literal>PeerTunnelId=</literal> value being used at the peer. | |
811 | Ranges a number between 1 and 4294967295). This option is compulsory.</para> | |
812 | </listitem> | |
813 | </varlistentry> | |
814 | <varlistentry> | |
815 | <term><varname>Remote=</varname></term> | |
816 | <listitem> | |
817 | <para>Specifies the IP address of the remote peer. This option is compulsory.</para> | |
818 | </listitem> | |
819 | </varlistentry> | |
820 | <varlistentry> | |
821 | <term><varname>Local=</varname></term> | |
822 | <listitem> | |
d053d08a YW |
823 | <para>Specifies the IP address of the local interface. Takes an IP address, or the special values |
824 | <literal>auto</literal>, <literal>static</literal>, or <literal>dynamic</literal>. When an address | |
825 | is set, then the local interface must have the address. If <literal>auto</literal>, then one of the | |
826 | addresses on the local interface is used. Similarly, if <literal>static</literal> or | |
827 | <literal>dynamic</literal> is set, then one of the static or dynamic addresses on the local | |
828 | interface is used. Defaults to <literal>auto</literal>.</para> | |
3a56e697 SS |
829 | </listitem> |
830 | </varlistentry> | |
831 | <varlistentry> | |
832 | <term><varname>EncapsulationType=</varname></term> | |
833 | <listitem> | |
834 | <para>Specifies the encapsulation type of the tunnel. Takes one of <literal>udp</literal> or <literal>ip</literal>.</para> | |
835 | </listitem> | |
836 | </varlistentry> | |
837 | <varlistentry> | |
838 | <term><varname>UDPSourcePort=</varname></term> | |
839 | <listitem> | |
840 | <para>Specifies the UDP source port to be used for the tunnel. When UDP encapsulation is selected it's mandotory. Ignored when ip | |
841 | encapsulation is selected.</para> | |
842 | </listitem> | |
843 | </varlistentry> | |
844 | <varlistentry> | |
845 | <term><varname>DestinationPort=</varname></term> | |
846 | <listitem> | |
847 | <para>Specifies destination port. When UDP encapsulation is selected it's mandotory. Ignored when ip | |
848 | encapsulation is selected.</para> | |
849 | </listitem> | |
850 | </varlistentry> | |
851 | <varlistentry> | |
852 | <term><varname>UDPChecksum=</varname></term> | |
853 | <listitem> | |
854 | <para>Takes a boolean. When true, specifies if UDP checksum is calculated for transmitted packets over IPv4.</para> | |
855 | </listitem> | |
856 | </varlistentry> | |
857 | <varlistentry> | |
858 | <term><varname>UDP6ZeroChecksumTx=</varname></term> | |
859 | <listitem> | |
860 | <para>Takes a boolean. When true, skip UDP checksum calculation for transmitted packets over IPv6.</para> | |
861 | </listitem> | |
862 | </varlistentry> | |
863 | <varlistentry> | |
864 | <term><varname>UDP6ZeroChecksumRx=</varname></term> | |
865 | <listitem> | |
866 | <para>Takes a boolean. When true, allows incoming UDP packets over IPv6 with zero checksum field.</para> | |
867 | </listitem> | |
868 | </varlistentry> | |
869 | </variablelist> | |
870 | </refsect1> | |
871 | <refsect1> | |
872 | <title>[L2TPSession] Section Options</title> | |
873 | <para>The <literal>[L2TPSession]</literal> section only applies for | |
874 | netdevs of kind <literal>l2tp</literal>, and accepts the | |
875 | following keys:</para> | |
876 | <variablelist class='network-directives'> | |
877 | <varlistentry> | |
878 | <term><varname>Name=</varname></term> | |
879 | <listitem> | |
5238e957 | 880 | <para>Specifies the name of the session. This option is compulsory.</para> |
3a56e697 SS |
881 | </listitem> |
882 | </varlistentry> | |
883 | <varlistentry> | |
884 | <term><varname>SessionId=</varname></term> | |
885 | <listitem> | |
5238e957 | 886 | <para>Specifies the session id. The value used must match the <literal>SessionId=</literal> value being used at the peer. |
3a56e697 SS |
887 | Ranges a number between 1 and 4294967295). This option is compulsory.</para> |
888 | </listitem> | |
889 | </varlistentry> | |
890 | <varlistentry> | |
891 | <term><varname>PeerSessionId=</varname></term> | |
892 | <listitem> | |
893 | <para>Specifies the peer session id. The value used must match the <literal>PeerSessionId=</literal> value being used at the peer. | |
894 | Ranges a number between 1 and 4294967295). This option is compulsory.</para> | |
895 | </listitem> | |
896 | </varlistentry> | |
897 | <varlistentry> | |
898 | <term><varname>Layer2SpecificHeader=</varname></term> | |
899 | <listitem> | |
900 | <para>Specifies layer2specific header type of the session. One of <literal>none</literal> or <literal>default</literal>. Defaults to <literal>default</literal>.</para> | |
901 | </listitem> | |
902 | </varlistentry> | |
903 | </variablelist> | |
904 | </refsect1> | |
81962db7 SS |
905 | <refsect1> |
906 | <title>[MACsec] Section Options</title> | |
907 | <para>The <literal>[MACsec]</literal> section only applies for network devices of kind | |
908 | <literal>macsec</literal>, and accepts the following keys:</para> | |
909 | ||
910 | <variablelist class='network-directives'> | |
911 | <varlistentry> | |
912 | <term><varname>Port=</varname></term> | |
913 | <listitem> | |
914 | <para>Specifies the port to be used for the MACsec transmit channel. The port is used to make | |
915 | secure channel identifier (SCI). Takes a value between 1 and 65535. Defaults to unset. | |
916 | </para> | |
917 | </listitem> | |
918 | </varlistentry> | |
919 | <varlistentry> | |
920 | <term><varname>Encrypt=</varname></term> | |
921 | <listitem> | |
922 | <para>Takes a boolean. When true, enable encryption. Defaults to unset.</para> | |
923 | </listitem> | |
924 | </varlistentry> | |
925 | </variablelist> | |
926 | </refsect1> | |
927 | <refsect1> | |
928 | <title>[MACsecReceiveChannel] Section Options</title> | |
929 | <para>The <literal>[MACsecReceiveChannel]</literal> section only applies for network devices of | |
930 | kind <literal>macsec</literal>, and accepts the following keys:</para> | |
931 | ||
932 | <variablelist class='network-directives'> | |
933 | <varlistentry> | |
934 | <term><varname>Port=</varname></term> | |
935 | <listitem> | |
936 | <para>Specifies the port to be used for the MACsec receive channel. The port is used to make | |
937 | secure channel identifier (SCI). Takes a value between 1 and 65535. This option is | |
938 | compulsory, and is not set by default.</para> | |
939 | </listitem> | |
940 | </varlistentry> | |
941 | <varlistentry> | |
942 | <term><varname>MACAddress=</varname></term> | |
943 | <listitem> | |
944 | <para>Specifies the MAC address to be used for the MACsec receive channel. The MAC address | |
945 | used to make secure channel identifier (SCI). This option is compulsory, and is not set by | |
946 | default.</para> | |
947 | </listitem> | |
948 | </varlistentry> | |
949 | </variablelist> | |
950 | </refsect1> | |
951 | <refsect1> | |
952 | <title>[MACsecTransmitAssociation] Section Options</title> | |
953 | <para>The <literal>[MACsecTransmitAssociation]</literal> section only applies for network devices | |
954 | of kind <literal>macsec</literal>, and accepts the following keys:</para> | |
955 | ||
956 | <variablelist class='network-directives'> | |
957 | <varlistentry> | |
958 | <term><varname>PacketNumber=</varname></term> | |
959 | <listitem> | |
960 | <para>Specifies the packet number to be used for replay protection and the construction of | |
961 | the initialization vector (along with the secure channel identifier [SCI]). Takes a value | |
962 | between 1-4,294,967,295. Defaults to unset. | |
963 | </para> | |
964 | </listitem> | |
965 | </varlistentry> | |
966 | <varlistentry> | |
967 | <term><varname>KeyId=</varname></term> | |
968 | <listitem> | |
969 | <para>Specifies the identification for the key. Takes a number between 0-255. This option | |
970 | is compulsory, and is not set by default.</para> | |
971 | </listitem> | |
972 | </varlistentry> | |
973 | <varlistentry> | |
974 | <term><varname>Key=</varname></term> | |
975 | <listitem> | |
976 | <para>Specifies the encryption key used in the transmission channel. The same key must be | |
977 | configured on the peer’s matching receive channel. This option is compulsory, and is not set | |
978 | by default. Takes a 128-bit key encoded in a hexadecimal string, for example | |
979 | <literal>dffafc8d7b9a43d5b9a3dfbbf6a30c16</literal>.</para> | |
980 | </listitem> | |
981 | </varlistentry> | |
eb4705fb YW |
982 | <varlistentry> |
983 | <term><varname>KeyFile=</varname></term> | |
984 | <listitem> | |
985 | <para>Takes a absolute path to a file which contains a 128-bit key encoded in a hexadecimal | |
986 | string, which will be used in the transmission channel. When this option is specified, | |
987 | <varname>Key=</varname> is ignored. Note that the file must be readable by the user | |
988 | <literal>systemd-network</literal>, so it should be, e.g., owned by | |
989 | <literal>root:systemd-network</literal> with a <literal>0640</literal> file mode.</para> | |
990 | </listitem> | |
991 | </varlistentry> | |
a7b9c52f YW |
992 | <varlistentry> |
993 | <term><varname>Activate=</varname></term> | |
994 | <listitem> | |
995 | <para>Takes a boolean. If enabled, then the security association is activated. Defaults to | |
996 | unset.</para> | |
997 | </listitem> | |
998 | </varlistentry> | |
b0e13c31 YW |
999 | <varlistentry> |
1000 | <term><varname>UseForEncoding=</varname></term> | |
1001 | <listitem> | |
1002 | <para>Takes a boolean. If enabled, then the security association is used for encoding. Only | |
1003 | one <literal>[MACsecTransmitAssociation]</literal> section can enable this option. When enabled, | |
1004 | <varname>Activate=yes</varname> is implied. Defaults to unset.</para> | |
1005 | </listitem> | |
1006 | </varlistentry> | |
81962db7 SS |
1007 | </variablelist> |
1008 | </refsect1> | |
1009 | <refsect1> | |
1010 | <title>[MACsecReceiveAssociation] Section Options</title> | |
1011 | <para>The <literal>[MACsecReceiveAssociation]</literal> section only applies for | |
1012 | network devices of kind <literal>macsec</literal>, and accepts the | |
1013 | following keys:</para> | |
1014 | ||
1015 | <variablelist class='network-directives'> | |
1016 | <varlistentry> | |
1017 | <term><varname>Port=</varname></term> | |
1018 | <listitem> | |
1019 | <para>Accepts the same key in <literal>[MACsecReceiveChannel]</literal> section.</para> | |
1020 | </listitem> | |
1021 | </varlistentry> | |
1022 | <varlistentry> | |
1023 | <term><varname>MACAddress=</varname></term> | |
1024 | <listitem> | |
1025 | <para>Accepts the same key in <literal>[MACsecReceiveChannel]</literal> section.</para> | |
1026 | </listitem> | |
1027 | </varlistentry> | |
1028 | <varlistentry> | |
1029 | <term><varname>PacketNumber=</varname></term> | |
1030 | <listitem> | |
1031 | <para>Accepts the same key in <literal>[MACsecTransmitAssociation]</literal> section.</para> | |
1032 | </listitem> | |
1033 | </varlistentry> | |
1034 | <varlistentry> | |
1035 | <term><varname>KeyId=</varname></term> | |
1036 | <listitem> | |
1037 | <para>Accepts the same key in <literal>[MACsecTransmitAssociation]</literal> section.</para> | |
1038 | </listitem> | |
1039 | </varlistentry> | |
1040 | <varlistentry> | |
1041 | <term><varname>Key=</varname></term> | |
1042 | <listitem> | |
1043 | <para>Accepts the same key in <literal>[MACsecTransmitAssociation]</literal> section.</para> | |
1044 | </listitem> | |
1045 | </varlistentry> | |
eb4705fb YW |
1046 | <varlistentry> |
1047 | <term><varname>KeyFile=</varname></term> | |
1048 | <listitem> | |
1049 | <para>Accepts the same key in <literal>[MACsecTransmitAssociation]</literal> section.</para> | |
1050 | </listitem> | |
1051 | </varlistentry> | |
a7b9c52f YW |
1052 | <varlistentry> |
1053 | <term><varname>Activate=</varname></term> | |
1054 | <listitem> | |
1055 | <para>Accepts the same key in <literal>[MACsecTransmitAssociation]</literal> section.</para> | |
1056 | </listitem> | |
1057 | </varlistentry> | |
81962db7 SS |
1058 | </variablelist> |
1059 | </refsect1> | |
798d3a52 ZJS |
1060 | <refsect1> |
1061 | <title>[Tunnel] Section Options</title> | |
1062 | ||
1063 | <para>The <literal>[Tunnel]</literal> section only applies for | |
1064 | netdevs of kind | |
1065 | <literal>ipip</literal>, | |
1066 | <literal>sit</literal>, | |
1067 | <literal>gre</literal>, | |
1068 | <literal>gretap</literal>, | |
1069 | <literal>ip6gre</literal>, | |
1070 | <literal>ip6gretap</literal>, | |
5cc0748e | 1071 | <literal>vti</literal>, |
af555aa3 YW |
1072 | <literal>vti6</literal>, |
1073 | <literal>ip6tnl</literal>, and | |
1074 | <literal>erspan</literal> and accepts | |
798d3a52 ZJS |
1075 | the following keys:</para> |
1076 | ||
1077 | <variablelist class='network-directives'> | |
1078 | <varlistentry> | |
1079 | <term><varname>Local=</varname></term> | |
1080 | <listitem> | |
8643885f YW |
1081 | <para>A static local address for tunneled packets. It must be an address on another interface of |
1082 | this host, or the special value <literal>any</literal>.</para> | |
798d3a52 ZJS |
1083 | </listitem> |
1084 | </varlistentry> | |
1085 | <varlistentry> | |
1086 | <term><varname>Remote=</varname></term> | |
1087 | <listitem> | |
8643885f YW |
1088 | <para>The remote endpoint of the tunnel. Takes an IP address or the special value |
1089 | <literal>any</literal>.</para> | |
798d3a52 ZJS |
1090 | </listitem> |
1091 | </varlistentry> | |
1092 | <varlistentry> | |
1093 | <term><varname>TOS=</varname></term> | |
1094 | <listitem> | |
1095 | <para>The Type Of Service byte value for a tunnel interface. | |
b938cb90 | 1096 | For details about the TOS, see the |
798d3a52 ZJS |
1097 | <ulink url="http://tools.ietf.org/html/rfc1349"> Type of |
1098 | Service in the Internet Protocol Suite </ulink> document. | |
1099 | </para> | |
1100 | </listitem> | |
1101 | </varlistentry> | |
1102 | <varlistentry> | |
1103 | <term><varname>TTL=</varname></term> | |
1104 | <listitem> | |
1105 | <para>A fixed Time To Live N on tunneled packets. N is a | |
b938cb90 | 1106 | number in the range 1–255. 0 is a special value meaning that |
798d3a52 | 1107 | packets inherit the TTL value. The default value for IPv4 |
b938cb90 | 1108 | tunnels is: inherit. The default value for IPv6 tunnels is |
798d3a52 ZJS |
1109 | 64.</para> |
1110 | </listitem> | |
1111 | </varlistentry> | |
1112 | <varlistentry> | |
1113 | <term><varname>DiscoverPathMTU=</varname></term> | |
1114 | <listitem> | |
9b6ffef3 | 1115 | <para>Takes a boolean. When true, enables Path MTU Discovery on |
798d3a52 ZJS |
1116 | the tunnel.</para> |
1117 | </listitem> | |
1118 | </varlistentry> | |
276de526 SS |
1119 | <varlistentry> |
1120 | <term><varname>IPv6FlowLabel=</varname></term> | |
1121 | <listitem> | |
a8eaaee7 | 1122 | <para>Configures the 20-bit flow label (see <ulink url="https://tools.ietf.org/html/rfc6437"> |
276de526 | 1123 | RFC 6437</ulink>) field in the IPv6 header (see <ulink url="https://tools.ietf.org/html/rfc2460"> |
a8eaaee7 JE |
1124 | RFC 2460</ulink>), which is used by a node to label packets of a flow. |
1125 | It is only used for IPv6 tunnels. | |
1126 | A flow label of zero is used to indicate packets that have | |
1127 | not been labeled. | |
1128 | It can be configured to a value in the range 0–0xFFFFF, or be | |
1129 | set to <literal>inherit</literal>, in which case the original flowlabel is used.</para> | |
276de526 SS |
1130 | </listitem> |
1131 | </varlistentry> | |
9b0ca30a | 1132 | <varlistentry> |
a9b70f9d | 1133 | <term><varname>CopyDSCP=</varname></term> |
9b0ca30a | 1134 | <listitem> |
9b6ffef3 | 1135 | <para>Takes a boolean. When true, the Differentiated Service Code |
3cf4bcab | 1136 | Point (DSCP) field will be copied to the inner header from |
a9b70f9d | 1137 | outer header during the decapsulation of an IPv6 tunnel |
3cf4bcab ZJS |
1138 | packet. DSCP is a field in an IP packet that enables different |
1139 | levels of service to be assigned to network traffic. | |
1140 | Defaults to <literal>no</literal>. | |
9b0ca30a SS |
1141 | </para> |
1142 | </listitem> | |
1143 | </varlistentry> | |
dae398a8 SS |
1144 | <varlistentry> |
1145 | <term><varname>EncapsulationLimit=</varname></term> | |
1146 | <listitem> | |
1147 | <para>The Tunnel Encapsulation Limit option specifies how many additional | |
1148 | levels of encapsulation are permitted to be prepended to the packet. | |
1149 | For example, a Tunnel Encapsulation Limit option containing a limit | |
1150 | value of zero means that a packet carrying that option may not enter | |
1151 | another tunnel before exiting the current tunnel. | |
1152 | (see <ulink url="https://tools.ietf.org/html/rfc2473#section-4.1.1"> RFC 2473</ulink>). | |
b938cb90 | 1153 | The valid range is 0–255 and <literal>none</literal>. Defaults to 4. |
dae398a8 SS |
1154 | </para> |
1155 | </listitem> | |
1156 | </varlistentry> | |
1d710029 SS |
1157 | <varlistentry> |
1158 | <term><varname>Key=</varname></term> | |
1159 | <listitem> | |
1160 | <para>The <varname>Key=</varname> parameter specifies the same key to use in | |
1161 | both directions (<varname>InputKey=</varname> and <varname>OutputKey=</varname>). | |
1162 | The <varname>Key=</varname> is either a number or an IPv4 address-like dotted quad. | |
1163 | It is used as mark-configured SAD/SPD entry as part of the lookup key (both in data | |
1164 | and control path) in ip xfrm (framework used to implement IPsec protocol). | |
1165 | See <ulink url="http://man7.org/linux/man-pages/man8/ip-xfrm.8.html"> | |
c65c01c4 YW |
1166 | ip-xfrm — transform configuration</ulink> for details. It is only used for VTI/VTI6, |
1167 | GRE, GRETAP, and ERSPAN tunnels.</para> | |
1d710029 SS |
1168 | </listitem> |
1169 | </varlistentry> | |
1170 | <varlistentry> | |
1171 | <term><varname>InputKey=</varname></term> | |
1172 | <listitem> | |
1173 | <para>The <varname>InputKey=</varname> parameter specifies the key to use for input. | |
c65c01c4 YW |
1174 | The format is same as <varname>Key=</varname>. It is only used for VTI/VTI6, GRE, GRETAP, |
1175 | and ERSPAN tunnels.</para> | |
1d710029 SS |
1176 | </listitem> |
1177 | </varlistentry> | |
1178 | <varlistentry> | |
1179 | <term><varname>OutputKey=</varname></term> | |
1180 | <listitem> | |
1181 | <para>The <varname>OutputKey=</varname> parameter specifies the key to use for output. | |
c65c01c4 YW |
1182 | The format is same as <varname>Key=</varname>. It is only used for VTI/VTI6, GRE, GRETAP, |
1183 | and ERSPAN tunnels.</para> | |
1d710029 SS |
1184 | </listitem> |
1185 | </varlistentry> | |
798d3a52 ZJS |
1186 | <varlistentry> |
1187 | <term><varname>Mode=</varname></term> | |
1188 | <listitem> | |
a8eaaee7 | 1189 | <para>An <literal>ip6tnl</literal> tunnel can be in one of three |
798d3a52 ZJS |
1190 | modes |
1191 | <literal>ip6ip6</literal> for IPv6 over IPv6, | |
1192 | <literal>ipip6</literal> for IPv4 over IPv6 or | |
1193 | <literal>any</literal> for either. | |
1194 | </para> | |
1195 | </listitem> | |
1196 | </varlistentry> | |
4d7fa6de SS |
1197 | <varlistentry> |
1198 | <term><varname>Independent=</varname></term> | |
1199 | <listitem> | |
9b6ffef3 | 1200 | <para>Takes a boolean. When true tunnel does not require .network file. Created as "tunnel@NONE". |
4d7fa6de SS |
1201 | Defaults to <literal>false</literal>. |
1202 | </para> | |
1203 | </listitem> | |
1204 | </varlistentry> | |
3a4f3e42 SS |
1205 | <varlistentry> |
1206 | <term><varname>AllowLocalRemote=</varname></term> | |
1207 | <listitem> | |
9b6ffef3 | 1208 | <para>Takes a boolean. When true allows tunnel traffic on <varname>ip6tnl</varname> devices where the remote endpoint is a local host address. |
025314d9 | 1209 | When unset, the kernel's default will be used. |
3a4f3e42 SS |
1210 | </para> |
1211 | </listitem> | |
1212 | </varlistentry> | |
53cb501a SS |
1213 | <varlistentry> |
1214 | <term><varname>FooOverUDP=</varname></term> | |
1215 | <listitem> | |
9b6ffef3 | 1216 | <para>Takes a boolean. Specifies whether <varname>FooOverUDP=</varname> tunnel is to be configured. |
0b145817 YW |
1217 | Defaults to false. This takes effects only for IPIP, SIT, GRE, and GRETAP tunnels. |
1218 | For more detail information see | |
53cb501a SS |
1219 | <ulink url="https://lwn.net/Articles/614348">Foo over UDP</ulink></para> |
1220 | </listitem> | |
1221 | </varlistentry> | |
1222 | <varlistentry> | |
1223 | <term><varname>FOUDestinationPort=</varname></term> | |
1224 | <listitem> | |
6f520e74 | 1225 | <para>This setting specifies the UDP destination port for encapsulation. |
0b145817 | 1226 | This field is mandatory when <varname>FooOverUDP=yes</varname>, and is not set by default.</para> |
53cb501a SS |
1227 | </listitem> |
1228 | </varlistentry> | |
1229 | <varlistentry> | |
1230 | <term><varname>FOUSourcePort=</varname></term> | |
1231 | <listitem> | |
6f520e74 ZJS |
1232 | <para>This setting specifies the UDP source port for encapsulation. Defaults to <constant>0</constant> |
1233 | — that is, the source port for packets is left to the network stack to decide.</para> | |
53cb501a SS |
1234 | </listitem> |
1235 | </varlistentry> | |
1236 | <varlistentry> | |
1237 | <term><varname>Encapsulation=</varname></term> | |
1238 | <listitem> | |
0b145817 | 1239 | <para>Accepts the same key as in the <literal>[FooOverUDP]</literal> section.</para> |
53cb501a SS |
1240 | </listitem> |
1241 | </varlistentry> | |
d067cab3 DA |
1242 | <varlistentry> |
1243 | <term><varname>IPv6RapidDeploymentPrefix=</varname></term> | |
1244 | <listitem> | |
1245 | <para>Reconfigure the tunnel for <ulink url="https://tools.ietf.org/html/rfc5569">IPv6 Rapid | |
1246 | Deployment</ulink>, also known as 6rd. The value is an ISP-specific IPv6 prefix with a non-zero length. Only | |
1247 | applicable to SIT tunnels.</para> | |
1248 | </listitem> | |
1249 | </varlistentry> | |
918049ad SS |
1250 | <varlistentry> |
1251 | <term><varname>ISATAP=</varname></term> | |
1252 | <listitem> | |
1253 | <para>Takes a boolean. If set, configures the tunnel as Intra-Site Automatic Tunnel Addressing Protocol (ISATAP) tunnel. | |
1254 | Only applicable to SIT tunnels. When unset, the kernel's default will be used.</para> | |
1255 | </listitem> | |
1256 | </varlistentry> | |
2266864b SS |
1257 | <varlistentry> |
1258 | <term><varname>SerializeTunneledPackets=</varname></term> | |
1259 | <listitem> | |
c65c01c4 YW |
1260 | <para>Takes a boolean. If set to yes, then packets are serialized. Only applies for GRE, |
1261 | GRETAP, and ERSPAN tunnels. When unset, the kernel's default will be used. | |
2266864b SS |
1262 | </para> |
1263 | </listitem> | |
1264 | </varlistentry> | |
1265 | <varlistentry> | |
1266 | <term><varname>ERSPANIndex=</varname></term> | |
1267 | <listitem> | |
1268 | <para>Specifies the ERSPAN index field for the interface, an integer in the range 1-1048575 associated with | |
1269 | the ERSPAN traffic's source port and direction. This field is mandatory. | |
1270 | </para> | |
1271 | </listitem> | |
1272 | </varlistentry> | |
798d3a52 ZJS |
1273 | </variablelist> |
1274 | </refsect1> | |
53cb501a SS |
1275 | |
1276 | <refsect1> | |
1277 | <title>[FooOverUDP] Section Options</title> | |
1278 | ||
1279 | <para>The <literal>[FooOverUDP]</literal> section only applies for | |
1280 | netdevs of kind <literal>fou</literal> and accepts the | |
1281 | following keys:</para> | |
1282 | ||
1283 | <variablelist class='network-directives'> | |
53cb501a SS |
1284 | <varlistentry> |
1285 | <term><varname>Encapsulation=</varname></term> | |
1286 | <listitem> | |
1287 | <para>Specifies the encapsulation mechanism used to store networking packets of various protocols inside the UDP packets. Supports the following values: | |
1288 | ||
1289 | <literal>FooOverUDP</literal> provides the simplest no frills model of UDP encapsulation, it simply encapsulates | |
1290 | packets directly in the UDP payload. | |
1291 | <literal>GenericUDPEncapsulation</literal> is a generic and extensible encapsulation, it allows encapsulation of packets for any IP | |
1292 | protocol and optional data as part of the encapsulation. | |
1293 | For more detailed information see <ulink url="https://lwn.net/Articles/615044">Generic UDP Encapsulation</ulink>. | |
1294 | Defaults to <literal>FooOverUDP</literal>. | |
1295 | </para> | |
1296 | </listitem> | |
1297 | </varlistentry> | |
1298 | <varlistentry> | |
1299 | <term><varname>Port=</varname></term> | |
1300 | <listitem> | |
1301 | <para>Specifies the port number, where the IP encapsulation packets will arrive. Please take note that the packets | |
1302 | will arrive with the encapsulation will be removed. Then they will be manually fed back into the network stack, and sent ahead | |
1303 | for delivery to the real destination. This option is mandatory.</para> | |
1304 | </listitem> | |
1305 | </varlistentry> | |
8f02c9b0 SS |
1306 | <varlistentry> |
1307 | <term><varname>PeerPort=</varname></term> | |
1308 | <listitem> | |
1309 | <para>Specifies the peer port number. Defaults to unset. Note that when peer port is set <literal>Peer=</literal> address is mandotory.</para> | |
1310 | </listitem> | |
1311 | </varlistentry> | |
0b145817 YW |
1312 | <varlistentry> |
1313 | <term><varname>Protocol=</varname></term> | |
1314 | <listitem> | |
1315 | <para>The <varname>Protocol=</varname> specifies the protocol number of the packets arriving | |
1316 | at the UDP port. When <varname>Encapsulation=FooOverUDP</varname>, this field is mandatory | |
1317 | and is not set by default. Takes an IP protocol name such as <literal>gre</literal> or | |
1318 | <literal>ipip</literal>, or an integer within the range 1-255. When | |
1319 | <varname>Encapsulation=GenericUDPEncapsulation</varname>, this must not be specified.</para> | |
1320 | </listitem> | |
1321 | </varlistentry> | |
4502a61c SS |
1322 | <varlistentry> |
1323 | <term><varname>Peer=</varname></term> | |
1324 | <listitem> | |
8f02c9b0 | 1325 | <para>Configures peer IP address. Note that when peer address is set <literal>PeerPort=</literal> is mandotory.</para> |
4502a61c SS |
1326 | </listitem> |
1327 | </varlistentry> | |
1328 | <varlistentry> | |
1329 | <term><varname>Local=</varname></term> | |
1330 | <listitem> | |
1331 | <para>Configures local IP address.</para> | |
1332 | </listitem> | |
1333 | </varlistentry> | |
0b145817 | 1334 | </variablelist> |
53cb501a | 1335 | </refsect1> |
798d3a52 ZJS |
1336 | <refsect1> |
1337 | <title>[Peer] Section Options</title> | |
1338 | ||
1339 | <para>The <literal>[Peer]</literal> section only applies for | |
1340 | netdevs of kind <literal>veth</literal> and accepts the | |
a8eaaee7 | 1341 | following keys:</para> |
798d3a52 ZJS |
1342 | |
1343 | <variablelist class='network-directives'> | |
1344 | <varlistentry> | |
1345 | <term><varname>Name=</varname></term> | |
1346 | <listitem> | |
1347 | <para>The interface name used when creating the netdev. | |
1348 | This option is compulsory.</para> | |
1349 | </listitem> | |
1350 | </varlistentry> | |
1351 | <varlistentry> | |
1352 | <term><varname>MACAddress=</varname></term> | |
1353 | <listitem> | |
b938cb90 | 1354 | <para>The peer MACAddress, if not set, it is generated in |
798d3a52 ZJS |
1355 | the same way as the MAC address of the main |
1356 | interface.</para> | |
1357 | </listitem> | |
1358 | </varlistentry> | |
1359 | </variablelist> | |
1360 | </refsect1> | |
d6df583c SS |
1361 | <refsect1> |
1362 | <title>[VXCAN] Section Options</title> | |
1363 | <para>The <literal>[VXCAN]</literal> section only applies for | |
1364 | netdevs of kind <literal>vxcan</literal> and accepts the | |
1365 | following key:</para> | |
1366 | ||
1367 | <variablelist class='network-directives'> | |
1368 | <varlistentry> | |
1369 | <term><varname>Peer=</varname></term> | |
1370 | <listitem> | |
1371 | <para>The peer interface name used when creating the netdev. | |
1372 | This option is compulsory.</para> | |
1373 | </listitem> | |
1374 | </varlistentry> | |
1375 | </variablelist> | |
1376 | </refsect1> | |
798d3a52 ZJS |
1377 | <refsect1> |
1378 | <title>[Tun] Section Options</title> | |
1379 | ||
1380 | <para>The <literal>[Tun]</literal> section only applies for | |
1381 | netdevs of kind <literal>tun</literal>, and accepts the following | |
1382 | keys:</para> | |
1383 | ||
1384 | <variablelist class='network-directives'> | |
798d3a52 ZJS |
1385 | <varlistentry> |
1386 | <term><varname>MultiQueue=</varname></term> | |
9b6ffef3 | 1387 | <listitem><para>Takes a boolean. Configures whether |
798d3a52 ZJS |
1388 | to use multiple file descriptors (queues) to parallelize |
1389 | packets sending and receiving. Defaults to | |
1390 | <literal>no</literal>.</para> | |
1391 | </listitem> | |
1392 | </varlistentry> | |
1393 | <varlistentry> | |
1394 | <term><varname>PacketInfo=</varname></term> | |
9b6ffef3 | 1395 | <listitem><para>Takes a boolean. Configures whether |
ff9b60f3 | 1396 | packets should be prepended with four extra bytes (two flag |
b938cb90 | 1397 | bytes and two protocol bytes). If disabled, it indicates that |
798d3a52 ZJS |
1398 | the packets will be pure IP packets. Defaults to |
1399 | <literal>no</literal>.</para> | |
1400 | </listitem> | |
1401 | </varlistentry> | |
43f78da4 | 1402 | <varlistentry> |
2aba142e | 1403 | <term><varname>VNetHeader=</varname></term> |
9b6ffef3 | 1404 | <listitem><para>Takes a boolean. Configures |
75eed300 | 1405 | IFF_VNET_HDR flag for a tun or tap device. It allows sending |
43f78da4 SS |
1406 | and receiving larger Generic Segmentation Offload (GSO) |
1407 | packets. This may increase throughput significantly. | |
1408 | Defaults to | |
1409 | <literal>no</literal>.</para> | |
1410 | </listitem> | |
1411 | </varlistentry> | |
798d3a52 ZJS |
1412 | <varlistentry> |
1413 | <term><varname>User=</varname></term> | |
1414 | <listitem><para>User to grant access to the | |
1415 | <filename>/dev/net/tun</filename> device.</para> | |
1416 | </listitem> | |
1417 | </varlistentry> | |
1418 | <varlistentry> | |
1419 | <term><varname>Group=</varname></term> | |
1420 | <listitem><para>Group to grant access to the | |
1421 | <filename>/dev/net/tun</filename> device.</para> | |
1422 | </listitem> | |
1423 | </varlistentry> | |
1424 | ||
1425 | </variablelist> | |
1426 | ||
1427 | </refsect1> | |
1428 | ||
1429 | <refsect1> | |
1430 | <title>[Tap] Section Options</title> | |
1431 | ||
1432 | <para>The <literal>[Tap]</literal> section only applies for | |
1433 | netdevs of kind <literal>tap</literal>, and accepts the same keys | |
1434 | as the <literal>[Tun]</literal> section.</para> | |
1435 | </refsect1> | |
1436 | ||
e5719363 JT |
1437 | <refsect1> |
1438 | <title>[WireGuard] Section Options</title> | |
1439 | ||
1440 | <para>The <literal>[WireGuard]</literal> section accepts the following | |
1441 | keys:</para> | |
1442 | ||
1443 | <variablelist class='network-directives'> | |
1444 | <varlistentry> | |
1445 | <term><varname>PrivateKey=</varname></term> | |
1446 | <listitem> | |
1447 | <para>The Base64 encoded private key for the interface. It can be | |
1448 | generated using the <command>wg genkey</command> command | |
1449 | (see <citerefentry project="wireguard"><refentrytitle>wg</refentrytitle><manvolnum>8</manvolnum></citerefentry>). | |
76df7779 | 1450 | This option or <varname>PrivateKeyFile=</varname> is mandatory to use WireGuard. |
a8d6dbed | 1451 | Note that because this information is secret, you may want to set |
bd277f53 | 1452 | the permissions of the .netdev file to be owned by <literal>root:systemd-network</literal> |
a8d6dbed | 1453 | with a <literal>0640</literal> file mode.</para> |
e5719363 JT |
1454 | </listitem> |
1455 | </varlistentry> | |
76df7779 YW |
1456 | <varlistentry> |
1457 | <term><varname>PrivateKeyFile=</varname></term> | |
1458 | <listitem> | |
a3945c63 | 1459 | <para>Takes an absolute path to a file which contains the Base64 encoded private key for the interface. |
cb31e7c8 | 1460 | When this option is specified, then <varname>PrivateKey=</varname> is ignored. |
76df7779 YW |
1461 | Note that the file must be readable by the user <literal>systemd-network</literal>, so it |
1462 | should be, e.g., owned by <literal>root:systemd-network</literal> with a | |
1463 | <literal>0640</literal> file mode.</para> | |
1464 | </listitem> | |
1465 | </varlistentry> | |
e5719363 JT |
1466 | <varlistentry> |
1467 | <term><varname>ListenPort=</varname></term> | |
1468 | <listitem> | |
1469 | <para>Sets UDP port for listening. Takes either value between 1 and 65535 | |
1470 | or <literal>auto</literal>. If <literal>auto</literal> is specified, | |
1471 | the port is automatically generated based on interface name. | |
1472 | Defaults to <literal>auto</literal>.</para> | |
1473 | </listitem> | |
1474 | </varlistentry> | |
1475 | <varlistentry> | |
1c30b174 | 1476 | <term><varname>FirewallMark=</varname></term> |
e5719363 | 1477 | <listitem> |
1c30b174 | 1478 | <para>Sets a firewall mark on outgoing WireGuard packets from this interface. Takes a number between 1 and 4294967295.</para> |
e5719363 JT |
1479 | </listitem> |
1480 | </varlistentry> | |
1481 | </variablelist> | |
1482 | </refsect1> | |
1483 | ||
1484 | <refsect1> | |
1485 | <title>[WireGuardPeer] Section Options</title> | |
1486 | ||
1487 | <para>The <literal>[WireGuardPeer]</literal> section accepts the following | |
1488 | keys:</para> | |
1489 | ||
1490 | <variablelist class='network-directives'> | |
1491 | <varlistentry> | |
1492 | <term><varname>PublicKey=</varname></term> | |
1493 | <listitem> | |
1494 | <para>Sets a Base64 encoded public key calculated by <command>wg pubkey</command> | |
1495 | (see <citerefentry project="wireguard"><refentrytitle>wg</refentrytitle><manvolnum>8</manvolnum></citerefentry>) | |
1496 | from a private key, and usually transmitted out of band to the | |
1497 | author of the configuration file. This option is mandatory for this | |
1498 | section.</para> | |
1499 | </listitem> | |
1500 | </varlistentry> | |
1501 | <varlistentry> | |
1502 | <term><varname>PresharedKey=</varname></term> | |
1503 | <listitem> | |
1504 | <para>Optional preshared key for the interface. It can be generated | |
1505 | by the <command>wg genpsk</command> command. This option adds an | |
1506 | additional layer of symmetric-key cryptography to be mixed into the | |
1507 | already existing public-key cryptography, for post-quantum | |
a8d6dbed JD |
1508 | resistance. |
1509 | Note that because this information is secret, you may want to set | |
1510 | the permissions of the .netdev file to be owned by <literal>root:systemd-networkd</literal> | |
1511 | with a <literal>0640</literal> file mode.</para> | |
e5719363 JT |
1512 | </listitem> |
1513 | </varlistentry> | |
a3945c63 YW |
1514 | <varlistentry> |
1515 | <term><varname>PresharedKeyFile=</varname></term> | |
1516 | <listitem> | |
1517 | <para>Takes an absolute path to a file which contains the Base64 encoded preshared key for the | |
1518 | peer. When this option is specified, then <varname>PresharedKey=</varname> is ignored. | |
1519 | Note that the file must be readable by the user <literal>systemd-network</literal>, so it | |
1520 | should be, e.g., owned by <literal>root:systemd-network</literal> with a | |
1521 | <literal>0640</literal> file mode.</para> | |
1522 | </listitem> | |
1523 | </varlistentry> | |
e5719363 JT |
1524 | <varlistentry> |
1525 | <term><varname>AllowedIPs=</varname></term> | |
1526 | <listitem> | |
1527 | <para>Sets a comma-separated list of IP (v4 or v6) addresses with CIDR masks | |
1528 | from which this peer is allowed to send incoming traffic and to | |
1529 | which outgoing traffic for this peer is directed. The catch-all | |
1530 | 0.0.0.0/0 may be specified for matching all IPv4 addresses, and | |
1531 | ::/0 may be specified for matching all IPv6 addresses. </para> | |
1532 | </listitem> | |
1533 | </varlistentry> | |
1534 | <varlistentry> | |
1535 | <term><varname>Endpoint=</varname></term> | |
1536 | <listitem> | |
1537 | <para>Sets an endpoint IP address or hostname, followed by a colon, and then | |
1538 | a port number. This endpoint will be updated automatically once to | |
1539 | the most recent source IP address and port of correctly | |
1540 | authenticated packets from the peer at configuration time.</para> | |
1541 | </listitem> | |
1542 | </varlistentry> | |
1543 | <varlistentry> | |
1544 | <term><varname>PersistentKeepalive=</varname></term> | |
1545 | <listitem> | |
1546 | <para>Sets a seconds interval, between 1 and 65535 inclusive, of how often | |
1547 | to send an authenticated empty packet to the peer for the purpose | |
1548 | of keeping a stateful firewall or NAT mapping valid persistently. | |
1549 | For example, if the interface very rarely sends traffic, but it | |
1550 | might at anytime receive traffic from a peer, and it is behind NAT, | |
1551 | the interface might benefit from having a persistent keepalive | |
1552 | interval of 25 seconds. If set to 0 or "off", this option is | |
1553 | disabled. By default or when unspecified, this option is off. | |
1554 | Most users will not need this.</para> | |
1555 | </listitem> | |
1556 | </varlistentry> | |
1557 | </variablelist> | |
1558 | </refsect1> | |
1559 | ||
798d3a52 ZJS |
1560 | <refsect1> |
1561 | <title>[Bond] Section Options</title> | |
1562 | ||
1563 | <para>The <literal>[Bond]</literal> section accepts the following | |
1564 | key:</para> | |
1565 | ||
1566 | <variablelist class='network-directives'> | |
1567 | <varlistentry> | |
1568 | <term><varname>Mode=</varname></term> | |
1569 | <listitem> | |
1570 | <para>Specifies one of the bonding policies. The default is | |
1571 | <literal>balance-rr</literal> (round robin). Possible values are | |
1572 | <literal>balance-rr</literal>, | |
1573 | <literal>active-backup</literal>, | |
1574 | <literal>balance-xor</literal>, | |
1575 | <literal>broadcast</literal>, | |
1576 | <literal>802.3ad</literal>, | |
1577 | <literal>balance-tlb</literal>, and | |
1578 | <literal>balance-alb</literal>. | |
1579 | </para> | |
1580 | </listitem> | |
1581 | </varlistentry> | |
1582 | ||
1583 | <varlistentry> | |
1584 | <term><varname>TransmitHashPolicy=</varname></term> | |
1585 | <listitem> | |
1586 | <para>Selects the transmit hash policy to use for slave | |
1587 | selection in balance-xor, 802.3ad, and tlb modes. Possible | |
1588 | values are | |
1589 | <literal>layer2</literal>, | |
1590 | <literal>layer3+4</literal>, | |
1591 | <literal>layer2+3</literal>, | |
4d89618a | 1592 | <literal>encap2+3</literal>, and |
798d3a52 ZJS |
1593 | <literal>encap3+4</literal>. |
1594 | </para> | |
1595 | </listitem> | |
1596 | </varlistentry> | |
1597 | ||
1598 | <varlistentry> | |
1599 | <term><varname>LACPTransmitRate=</varname></term> | |
1600 | <listitem> | |
1601 | <para>Specifies the rate with which link partner transmits | |
1602 | Link Aggregation Control Protocol Data Unit packets in | |
1603 | 802.3ad mode. Possible values are <literal>slow</literal>, | |
1604 | which requests partner to transmit LACPDUs every 30 seconds, | |
1605 | and <literal>fast</literal>, which requests partner to | |
1606 | transmit LACPDUs every second. The default value is | |
1607 | <literal>slow</literal>.</para> | |
1608 | </listitem> | |
1609 | </varlistentry> | |
1610 | ||
1611 | <varlistentry> | |
1612 | <term><varname>MIIMonitorSec=</varname></term> | |
1613 | <listitem> | |
1614 | <para>Specifies the frequency that Media Independent | |
1615 | Interface link monitoring will occur. A value of zero | |
dd2b607b | 1616 | disables MII link monitoring. This value is rounded down to |
798d3a52 ZJS |
1617 | the nearest millisecond. The default value is 0.</para> |
1618 | </listitem> | |
1619 | </varlistentry> | |
1620 | ||
1621 | <varlistentry> | |
1622 | <term><varname>UpDelaySec=</varname></term> | |
1623 | <listitem> | |
1624 | <para>Specifies the delay before a link is enabled after a | |
1625 | link up status has been detected. This value is rounded down | |
1626 | to a multiple of MIIMonitorSec. The default value is | |
1627 | 0.</para> | |
1628 | </listitem> | |
1629 | </varlistentry> | |
1630 | ||
1631 | <varlistentry> | |
1632 | <term><varname>DownDelaySec=</varname></term> | |
1633 | <listitem> | |
1634 | <para>Specifies the delay before a link is disabled after a | |
1635 | link down status has been detected. This value is rounded | |
1636 | down to a multiple of MIIMonitorSec. The default value is | |
1637 | 0.</para> | |
1638 | </listitem> | |
1639 | </varlistentry> | |
1640 | ||
81bd37a8 | 1641 | <varlistentry> |
38422da7 | 1642 | <term><varname>LearnPacketIntervalSec=</varname></term> |
81bd37a8 SS |
1643 | <listitem> |
1644 | <para>Specifies the number of seconds between instances where the bonding | |
a8eaaee7 JE |
1645 | driver sends learning packets to each slave peer switch. |
1646 | The valid range is 1–0x7fffffff; the default value is 1. This option | |
1647 | has an effect only for the balance-tlb and balance-alb modes.</para> | |
81bd37a8 SS |
1648 | </listitem> |
1649 | </varlistentry> | |
1650 | ||
1651 | <varlistentry> | |
1652 | <term><varname>AdSelect=</varname></term> | |
1653 | <listitem> | |
1654 | <para>Specifies the 802.3ad aggregation selection logic to use. Possible values are | |
1655 | <literal>stable</literal>, | |
a8eaaee7 JE |
1656 | <literal>bandwidth</literal> and |
1657 | <literal>count</literal>. | |
81bd37a8 SS |
1658 | </para> |
1659 | </listitem> | |
1660 | </varlistentry> | |
1661 | ||
99f68ef0 | 1662 | <varlistentry> |
db688b7e | 1663 | <term><varname>AdActorSystemPriority=</varname></term> |
99f68ef0 | 1664 | <listitem> |
db688b7e | 1665 | <para>Specifies the 802.3ad actor system priority. Ranges [1-65535].</para> |
99f68ef0 TJ |
1666 | </listitem> |
1667 | </varlistentry> | |
1668 | ||
1669 | <varlistentry> | |
1670 | <term><varname>AdUserPortKey=</varname></term> | |
1671 | <listitem> | |
1672 | <para>Specifies the 802.3ad user defined portion of the port key. Ranges [0-1023].</para> | |
1673 | </listitem> | |
1674 | </varlistentry> | |
1675 | ||
1676 | <varlistentry> | |
1677 | <term><varname>AdActorSystem=</varname></term> | |
1678 | <listitem> | |
1679 | <para>Specifies the 802.3ad system mac address. This can not be either NULL or Multicast.</para> | |
1680 | </listitem> | |
1681 | </varlistentry> | |
1682 | ||
81bd37a8 | 1683 | <varlistentry> |
38422da7 | 1684 | <term><varname>FailOverMACPolicy=</varname></term> |
81bd37a8 | 1685 | <listitem> |
a8eaaee7 JE |
1686 | <para>Specifies whether the active-backup mode should set all slaves to |
1687 | the same MAC address at the time of enslavement or, when enabled, to perform special handling of the | |
81bd37a8 SS |
1688 | bond's MAC address in accordance with the selected policy. The default policy is none. |
1689 | Possible values are | |
1690 | <literal>none</literal>, | |
a8eaaee7 JE |
1691 | <literal>active</literal> and |
1692 | <literal>follow</literal>. | |
81bd37a8 SS |
1693 | </para> |
1694 | </listitem> | |
1695 | </varlistentry> | |
1696 | ||
1697 | <varlistentry> | |
38422da7 | 1698 | <term><varname>ARPValidate=</varname></term> |
81bd37a8 SS |
1699 | <listitem> |
1700 | <para>Specifies whether or not ARP probes and replies should be | |
38422da7 | 1701 | validated in any mode that supports ARP monitoring, or whether |
81bd37a8 SS |
1702 | non-ARP traffic should be filtered (disregarded) for link |
1703 | monitoring purposes. Possible values are | |
1704 | <literal>none</literal>, | |
1705 | <literal>active</literal>, | |
a8eaaee7 JE |
1706 | <literal>backup</literal> and |
1707 | <literal>all</literal>. | |
81bd37a8 SS |
1708 | </para> |
1709 | </listitem> | |
1710 | </varlistentry> | |
1711 | ||
1712 | <varlistentry> | |
38422da7 | 1713 | <term><varname>ARPIntervalSec=</varname></term> |
81bd37a8 SS |
1714 | <listitem> |
1715 | <para>Specifies the ARP link monitoring frequency in milliseconds. | |
1716 | A value of 0 disables ARP monitoring. The default value is 0. | |
1717 | </para> | |
1718 | </listitem> | |
1719 | </varlistentry> | |
1720 | ||
1721 | <varlistentry> | |
38422da7 | 1722 | <term><varname>ARPIPTargets=</varname></term> |
81bd37a8 SS |
1723 | <listitem> |
1724 | <para>Specifies the IP addresses to use as ARP monitoring peers when | |
38422da7 | 1725 | ARPIntervalSec is greater than 0. These are the targets of the ARP request |
81bd37a8 | 1726 | sent to determine the health of the link to the targets. |
a8eaaee7 | 1727 | Specify these values in IPv4 dotted decimal format. At least one IP |
81bd37a8 SS |
1728 | address must be given for ARP monitoring to function. The |
1729 | maximum number of targets that can be specified is 16. The | |
1730 | default value is no IP addresses. | |
1731 | </para> | |
1732 | </listitem> | |
1733 | </varlistentry> | |
1734 | ||
1735 | <varlistentry> | |
38422da7 | 1736 | <term><varname>ARPAllTargets=</varname></term> |
81bd37a8 | 1737 | <listitem> |
38422da7 | 1738 | <para>Specifies the quantity of ARPIPTargets that must be reachable |
81bd37a8 SS |
1739 | in order for the ARP monitor to consider a slave as being up. |
1740 | This option affects only active-backup mode for slaves with | |
38422da7 | 1741 | ARPValidate enabled. Possible values are |
a8eaaee7 JE |
1742 | <literal>any</literal> and |
1743 | <literal>all</literal>. | |
81bd37a8 SS |
1744 | </para> |
1745 | </listitem> | |
1746 | </varlistentry> | |
1747 | ||
1748 | <varlistentry> | |
38422da7 | 1749 | <term><varname>PrimaryReselectPolicy=</varname></term> |
81bd37a8 SS |
1750 | <listitem> |
1751 | <para>Specifies the reselection policy for the primary slave. This | |
1752 | affects how the primary slave is chosen to become the active slave | |
1753 | when failure of the active slave or recovery of the primary slave | |
1754 | occurs. This option is designed to prevent flip-flopping between | |
1755 | the primary slave and other slaves. Possible values are | |
1756 | <literal>always</literal>, | |
a8eaaee7 JE |
1757 | <literal>better</literal> and |
1758 | <literal>failure</literal>. | |
81bd37a8 SS |
1759 | </para> |
1760 | </listitem> | |
1761 | </varlistentry> | |
1762 | ||
1763 | <varlistentry> | |
1764 | <term><varname>ResendIGMP=</varname></term> | |
1765 | <listitem> | |
1766 | <para>Specifies the number of IGMP membership reports to be issued after | |
1767 | a failover event. One membership report is issued immediately after | |
1768 | the failover, subsequent packets are sent in each 200ms interval. | |
b938cb90 | 1769 | The valid range is 0–255. Defaults to 1. A value of 0 |
81bd37a8 SS |
1770 | prevents the IGMP membership report from being issued in response |
1771 | to the failover event. | |
1772 | </para> | |
1773 | </listitem> | |
1774 | </varlistentry> | |
1775 | ||
1776 | <varlistentry> | |
1777 | <term><varname>PacketsPerSlave=</varname></term> | |
1778 | <listitem> | |
b938cb90 JE |
1779 | <para>Specify the number of packets to transmit through a slave before |
1780 | moving to the next one. When set to 0, then a slave is chosen at | |
1781 | random. The valid range is 0–65535. Defaults to 1. This option | |
a8eaaee7 | 1782 | only has effect when in balance-rr mode. |
81bd37a8 SS |
1783 | </para> |
1784 | </listitem> | |
1785 | </varlistentry> | |
1786 | ||
1787 | <varlistentry> | |
38422da7 | 1788 | <term><varname>GratuitousARP=</varname></term> |
81bd37a8 SS |
1789 | <listitem> |
1790 | <para>Specify the number of peer notifications (gratuitous ARPs and | |
1791 | unsolicited IPv6 Neighbor Advertisements) to be issued after a | |
b938cb90 | 1792 | failover event. As soon as the link is up on the new slave, |
81bd37a8 SS |
1793 | a peer notification is sent on the bonding device and each |
1794 | VLAN sub-device. This is repeated at each link monitor interval | |
38422da7 | 1795 | (ARPIntervalSec or MIIMonitorSec, whichever is active) if the number is |
a8eaaee7 | 1796 | greater than 1. The valid range is 0–255. The default value is 1. |
38422da7 | 1797 | These options affect only the active-backup mode. |
81bd37a8 SS |
1798 | </para> |
1799 | </listitem> | |
1800 | </varlistentry> | |
1801 | ||
1802 | <varlistentry> | |
1803 | <term><varname>AllSlavesActive=</varname></term> | |
1804 | <listitem> | |
9b6ffef3 | 1805 | <para>Takes a boolean. Specifies that duplicate frames (received on inactive ports) |
a8eaaee7 | 1806 | should be dropped when false, or delivered when true. Normally, bonding will drop |
81bd37a8 SS |
1807 | duplicate frames (received on inactive ports), which is desirable for |
1808 | most users. But there are some times it is nice to allow duplicate | |
1809 | frames to be delivered. The default value is false (drop duplicate frames | |
1810 | received on inactive ports). | |
1811 | </para> | |
1812 | </listitem> | |
1813 | </varlistentry> | |
1814 | ||
fde60a42 SS |
1815 | <varlistentry> |
1816 | <term><varname>DynamicTransmitLoadBalancing=</varname></term> | |
1817 | <listitem> | |
1818 | <para>Takes a boolean. Specifies if dynamic shuffling of flows is enabled. Applies only | |
1819 | for balance-tlb mode. Defaults to unset. | |
1820 | </para> | |
1821 | </listitem> | |
1822 | </varlistentry> | |
1823 | ||
81bd37a8 SS |
1824 | <varlistentry> |
1825 | <term><varname>MinLinks=</varname></term> | |
1826 | <listitem> | |
1827 | <para>Specifies the minimum number of links that must be active before | |
1828 | asserting carrier. The default value is 0. | |
1829 | </para> | |
1830 | </listitem> | |
1831 | </varlistentry> | |
798d3a52 | 1832 | </variablelist> |
81bd37a8 SS |
1833 | |
1834 | <para>For more detail information see | |
1835 | <ulink url="https://www.kernel.org/doc/Documentation/networking/bonding.txt"> | |
1836 | Linux Ethernet Bonding Driver HOWTO</ulink></para> | |
b8d88b26 | 1837 | </refsect1> |
81bd37a8 | 1838 | |
b8d88b26 FP |
1839 | <refsect1> |
1840 | <title>[VRF] Section Options</title> | |
1841 | <para>The <literal>[VRF]</literal> section only applies for | |
1842 | netdevs of kind <literal>vrf</literal> and accepts the | |
1843 | following key:</para> | |
1844 | ||
1845 | <variablelist class='network-directives'> | |
1846 | <varlistentry> | |
1847 | <term><varname>Table=</varname></term> | |
1848 | <listitem> | |
1849 | <para>The numeric routing table identifier. This option is compulsory.</para> | |
1850 | </listitem> | |
1851 | </varlistentry> | |
1852 | </variablelist> | |
798d3a52 ZJS |
1853 | </refsect1> |
1854 | ||
1855 | <refsect1> | |
48847676 | 1856 | <title>Examples</title> |
798d3a52 | 1857 | <example> |
6c1695be | 1858 | <title>/etc/systemd/network/25-bridge.netdev</title> |
798d3a52 ZJS |
1859 | |
1860 | <programlisting>[NetDev] | |
eac684ef TG |
1861 | Name=bridge0 |
1862 | Kind=bridge</programlisting> | |
798d3a52 | 1863 | </example> |
eac684ef | 1864 | |
798d3a52 | 1865 | <example> |
6c1695be | 1866 | <title>/etc/systemd/network/25-vlan1.netdev</title> |
eac684ef | 1867 | |
798d3a52 | 1868 | <programlisting>[Match] |
eac684ef TG |
1869 | Virtualization=no |
1870 | ||
1871 | [NetDev] | |
1872 | Name=vlan1 | |
1873 | Kind=vlan | |
1874 | ||
1875 | [VLAN] | |
1876 | Id=1</programlisting> | |
798d3a52 ZJS |
1877 | </example> |
1878 | <example> | |
6c1695be | 1879 | <title>/etc/systemd/network/25-ipip.netdev</title> |
798d3a52 | 1880 | <programlisting>[NetDev] |
b35a2909 TG |
1881 | Name=ipip-tun |
1882 | Kind=ipip | |
1883 | MTUBytes=1480 | |
1884 | ||
1885 | [Tunnel] | |
1886 | Local=192.168.223.238 | |
1887 | Remote=192.169.224.239 | |
1888 | TTL=64</programlisting> | |
798d3a52 | 1889 | </example> |
53cb501a SS |
1890 | <example> |
1891 | <title>/etc/systemd/network/1-fou-tunnel.netdev</title> | |
1892 | <programlisting>[NetDev] | |
1893 | Name=fou-tun | |
1894 | Kind=fou | |
1895 | ||
1896 | [FooOverUDP] | |
1897 | Port=5555 | |
1898 | Protocol=4 | |
1899 | </programlisting> | |
1900 | </example> | |
1901 | <example> | |
1902 | <title>/etc/systemd/network/25-fou-ipip.netdev</title> | |
1903 | <programlisting>[NetDev] | |
53cb501a SS |
1904 | Name=ipip-tun |
1905 | Kind=ipip | |
1906 | ||
1907 | [Tunnel] | |
964c4eda | 1908 | Independent=yes |
53cb501a SS |
1909 | Local=10.65.208.212 |
1910 | Remote=10.65.208.211 | |
964c4eda | 1911 | FooOverUDP=yes |
53cb501a SS |
1912 | FOUDestinationPort=5555 |
1913 | </programlisting> | |
1914 | </example> | |
798d3a52 | 1915 | <example> |
6c1695be | 1916 | <title>/etc/systemd/network/25-tap.netdev</title> |
798d3a52 | 1917 | <programlisting>[NetDev] |
30ae9dfd SS |
1918 | Name=tap-test |
1919 | Kind=tap | |
1920 | ||
1921 | [Tap] | |
964c4eda LP |
1922 | MultiQueue=yes |
1923 | PacketInfo=yes</programlisting> </example> | |
eac684ef | 1924 | |
798d3a52 | 1925 | <example> |
6c1695be | 1926 | <title>/etc/systemd/network/25-sit.netdev</title> |
798d3a52 | 1927 | <programlisting>[NetDev] |
b35a2909 TG |
1928 | Name=sit-tun |
1929 | Kind=sit | |
1930 | MTUBytes=1480 | |
1931 | ||
1932 | [Tunnel] | |
1933 | Local=10.65.223.238 | |
1934 | Remote=10.65.223.239</programlisting> | |
798d3a52 | 1935 | </example> |
eac684ef | 1936 | |
d067cab3 DA |
1937 | <example> |
1938 | <title>/etc/systemd/network/25-6rd.netdev</title> | |
1939 | <programlisting>[NetDev] | |
1940 | Name=6rd-tun | |
1941 | Kind=sit | |
1942 | MTUBytes=1480 | |
1943 | ||
1944 | [Tunnel] | |
1945 | Local=10.65.223.238 | |
1946 | IPv6RapidDeploymentPrefix=2602::/24</programlisting> | |
1947 | </example> | |
1948 | ||
798d3a52 | 1949 | <example> |
6c1695be | 1950 | <title>/etc/systemd/network/25-gre.netdev</title> |
798d3a52 | 1951 | <programlisting>[NetDev] |
b35a2909 TG |
1952 | Name=gre-tun |
1953 | Kind=gre | |
1954 | MTUBytes=1480 | |
1955 | ||
1956 | [Tunnel] | |
1957 | Local=10.65.223.238 | |
1958 | Remote=10.65.223.239</programlisting> | |
798d3a52 | 1959 | </example> |
b35a2909 | 1960 | |
798d3a52 | 1961 | <example> |
6c1695be | 1962 | <title>/etc/systemd/network/25-vti.netdev</title> |
b35a2909 | 1963 | |
798d3a52 | 1964 | <programlisting>[NetDev] |
b35a2909 TG |
1965 | Name=vti-tun |
1966 | Kind=vti | |
1967 | MTUBytes=1480 | |
1968 | ||
1969 | [Tunnel] | |
1970 | Local=10.65.223.238 | |
1971 | Remote=10.65.223.239</programlisting> | |
798d3a52 | 1972 | </example> |
b35a2909 | 1973 | |
798d3a52 | 1974 | <example> |
6c1695be | 1975 | <title>/etc/systemd/network/25-veth.netdev</title> |
798d3a52 | 1976 | <programlisting>[NetDev] |
b35a2909 TG |
1977 | Name=veth-test |
1978 | Kind=veth | |
1979 | ||
1980 | [Peer] | |
1981 | Name=veth-peer</programlisting> | |
798d3a52 | 1982 | </example> |
b35a2909 | 1983 | |
d94facdc | 1984 | <example> |
6c1695be | 1985 | <title>/etc/systemd/network/25-bond.netdev</title> |
d94facdc MH |
1986 | <programlisting>[NetDev] |
1987 | Name=bond1 | |
1988 | Kind=bond | |
1989 | ||
1990 | [Bond] | |
1991 | Mode=802.3ad | |
1992 | TransmitHashPolicy=layer3+4 | |
1993 | MIIMonitorSec=1s | |
1994 | LACPTransmitRate=fast | |
1995 | </programlisting> | |
1996 | </example> | |
1997 | ||
798d3a52 | 1998 | <example> |
6c1695be | 1999 | <title>/etc/systemd/network/25-dummy.netdev</title> |
798d3a52 | 2000 | <programlisting>[NetDev] |
9e358851 TG |
2001 | Name=dummy-test |
2002 | Kind=dummy | |
2003 | MACAddress=12:34:56:78:9a:bc</programlisting> | |
798d3a52 | 2004 | </example> |
20897a0d AR |
2005 | <example> |
2006 | <title>/etc/systemd/network/25-vrf.netdev</title> | |
037a3ded | 2007 | <para>Create a VRF interface with table 42.</para> |
20897a0d AR |
2008 | <programlisting>[NetDev] |
2009 | Name=vrf-test | |
2010 | Kind=vrf | |
798d3a52 | 2011 | |
20897a0d | 2012 | [VRF] |
362f6336 | 2013 | Table=42</programlisting> |
20897a0d | 2014 | </example> |
42125eda SS |
2015 | |
2016 | <example> | |
2017 | <title>/etc/systemd/network/25-macvtap.netdev</title> | |
2018 | <para>Create a MacVTap device.</para> | |
2019 | <programlisting>[NetDev] | |
2020 | Name=macvtap-test | |
2021 | Kind=macvtap | |
2022 | </programlisting> | |
2023 | </example> | |
e5719363 JT |
2024 | <example> |
2025 | <title>/etc/systemd/network/25-wireguard.netdev</title> | |
2026 | <programlisting>[NetDev] | |
2027 | Name=wg0 | |
2028 | Kind=wireguard | |
2029 | ||
2030 | [WireGuard] | |
2031 | PrivateKey=EEGlnEPYJV//kbvvIqxKkQwOiS+UENyPncC4bF46ong= | |
2032 | ListenPort=51820 | |
2033 | ||
2034 | [WireGuardPeer] | |
2035 | PublicKey=RDf+LSpeEre7YEIKaxg+wbpsNV7du+ktR99uBEtIiCA= | |
2036 | AllowedIPs=fd31:bf08:57cb::/48,192.168.26.0/24 | |
2037 | Endpoint=wireguard.example.com:51820</programlisting> | |
2038 | </example> | |
798d3a52 ZJS |
2039 | </refsect1> |
2040 | <refsect1> | |
2041 | <title>See Also</title> | |
2042 | <para> | |
2043 | <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>, | |
2044 | <citerefentry><refentrytitle>systemd-networkd</refentrytitle><manvolnum>8</manvolnum></citerefentry>, | |
2045 | <citerefentry><refentrytitle>systemd.link</refentrytitle><manvolnum>5</manvolnum></citerefentry>, | |
2046 | <citerefentry><refentrytitle>systemd.network</refentrytitle><manvolnum>5</manvolnum></citerefentry> | |
2047 | </para> | |
2048 | </refsect1> | |
eac684ef TG |
2049 | |
2050 | </refentry> |