]>
Commit | Line | Data |
---|---|---|
ad943783 | 1 | <?xml version='1.0'?> <!--*- Mode: nxml; nxml-child-indent: 2; indent-tabs-mode: nil -*--> |
eac684ef | 2 | <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" |
12b42c76 | 3 | "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"> |
eac684ef TG |
4 | |
5 | <!-- | |
6 | This file is part of systemd. | |
7 | ||
8 | Copyright 2013 Tom Gundersen | |
9 | ||
10 | systemd is free software; you can redistribute it and/or modify it | |
11 | under the terms of the GNU Lesser General Public License as published by | |
12 | the Free Software Foundation; either version 2.1 of the License, or | |
13 | (at your option) any later version. | |
14 | ||
15 | systemd is distributed in the hope that it will be useful, but | |
16 | WITHOUT ANY WARRANTY; without even the implied warranty of | |
17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
18 | Lesser General Public License for more details. | |
19 | ||
20 | You should have received a copy of the GNU Lesser General Public License | |
21 | along with systemd; If not, see <http://www.gnu.org/licenses/>. | |
22 | --> | |
23 | ||
24 | <refentry id="systemd.network" conditional='ENABLE_NETWORKD'> | |
25 | ||
798d3a52 ZJS |
26 | <refentryinfo> |
27 | <title>systemd.network</title> | |
28 | <productname>systemd</productname> | |
29 | ||
30 | <authorgroup> | |
31 | <author> | |
32 | <contrib>Developer</contrib> | |
33 | <firstname>Tom</firstname> | |
34 | <surname>Gundersen</surname> | |
35 | <email>teg@jklm.no</email> | |
36 | </author> | |
37 | </authorgroup> | |
38 | </refentryinfo> | |
39 | ||
40 | <refmeta> | |
41 | <refentrytitle>systemd.network</refentrytitle> | |
42 | <manvolnum>5</manvolnum> | |
43 | </refmeta> | |
44 | ||
45 | <refnamediv> | |
46 | <refname>systemd.network</refname> | |
47 | <refpurpose>Network configuration</refpurpose> | |
48 | </refnamediv> | |
49 | ||
50 | <refsynopsisdiv> | |
51 | <para><filename><replaceable>network</replaceable>.network</filename></para> | |
52 | </refsynopsisdiv> | |
53 | ||
54 | <refsect1> | |
55 | <title>Description</title> | |
56 | ||
57 | <para>Network setup is performed by | |
58 | <citerefentry><refentrytitle>systemd-networkd</refentrytitle><manvolnum>8</manvolnum></citerefentry>. | |
59 | </para> | |
60 | ||
61 | <para>Network files must have the extension | |
62 | <filename>.network</filename>; other extensions are ignored. | |
63 | Networks are applied to links whenever the links appear.</para> | |
64 | ||
65 | <para>The <filename>.network</filename> files are read from the | |
66 | files located in the system network directory | |
12b42c76 | 67 | <filename>/usr/lib/systemd/network</filename>, the volatile |
798d3a52 ZJS |
68 | runtime network directory |
69 | <filename>/run/systemd/network</filename> and the local | |
70 | administration network directory | |
12b42c76 | 71 | <filename>/etc/systemd/network</filename>. All configuration files |
798d3a52 ZJS |
72 | are collectively sorted and processed in lexical order, regardless |
73 | of the directories in which they live. However, files with | |
74 | identical filenames replace each other. Files in | |
75 | <filename>/etc</filename> have the highest priority, files in | |
76 | <filename>/run</filename> take precedence over files with the same | |
12b42c76 | 77 | name in <filename>/usr/lib</filename>. This can be used to |
798d3a52 | 78 | override a system-supplied configuration file with a local file if |
57e27ec0 | 79 | needed. As a special case, an empty file (file size 0) or symlink |
b938cb90 | 80 | with the same name pointing to <filename>/dev/null</filename> |
a8eaaee7 | 81 | disables the configuration file entirely (it is "masked").</para> |
798d3a52 ZJS |
82 | </refsect1> |
83 | ||
84 | <refsect1> | |
85 | <title>[Match] Section Options</title> | |
86 | ||
87 | <para>The network file contains a <literal>[Match]</literal> | |
88 | section, which determines if a given network file may be applied | |
89 | to a given device; and a <literal>[Network]</literal> section | |
90 | specifying how the device should be configured. The first (in | |
91 | lexical order) of the network files that matches a given device | |
a22e1850 LP |
92 | is applied, all later files are ignored, even if they match as |
93 | well.</para> | |
798d3a52 ZJS |
94 | |
95 | <para>A network file is said to match a device if each of the | |
96 | entries in the <literal>[Match]</literal> section matches, or if | |
97 | the section is empty. The following keys are accepted:</para> | |
98 | ||
99 | <variablelist class='network-directives'> | |
100 | <varlistentry> | |
101 | <term><varname>MACAddress=</varname></term> | |
102 | <listitem> | |
103 | <para>The hardware address.</para> | |
104 | </listitem> | |
105 | </varlistentry> | |
106 | <varlistentry> | |
107 | <term><varname>Path=</varname></term> | |
108 | <listitem> | |
5256e00e TG |
109 | <para>A whitespace-separated list of shell-style globs |
110 | matching the persistent path, as exposed by the udev | |
111 | property <literal>ID_PATH</literal>.</para> | |
798d3a52 ZJS |
112 | </listitem> |
113 | </varlistentry> | |
114 | <varlistentry> | |
115 | <term><varname>Driver=</varname></term> | |
116 | <listitem> | |
5256e00e TG |
117 | <para>A whitespace-separated list of shell-style globs |
118 | matching the driver currently bound to the device, as | |
798d3a52 ZJS |
119 | exposed by the udev property <literal>DRIVER</literal> |
120 | of its parent device, or if that is not set the driver | |
121 | as exposed by <literal>ethtool -i</literal> of the | |
122 | device itself.</para> | |
123 | </listitem> | |
124 | </varlistentry> | |
125 | <varlistentry> | |
126 | <term><varname>Type=</varname></term> | |
127 | <listitem> | |
5256e00e TG |
128 | <para>A whitespace-separated list of shell-style globs |
129 | matching the device type, as exposed by the udev property | |
798d3a52 ZJS |
130 | <literal>DEVTYPE</literal>.</para> |
131 | </listitem> | |
132 | </varlistentry> | |
133 | <varlistentry> | |
134 | <term><varname>Name=</varname></term> | |
135 | <listitem> | |
5256e00e TG |
136 | <para>A whitespace-separated list of shell-style globs |
137 | matching the device name, as exposed by the udev property | |
138 | <literal>INTERFACE</literal>.</para> | |
798d3a52 ZJS |
139 | </listitem> |
140 | </varlistentry> | |
141 | <varlistentry> | |
142 | <term><varname>Host=</varname></term> | |
143 | <listitem> | |
144 | <para>Matches against the hostname or machine ID of the | |
145 | host. See <literal>ConditionHost=</literal> in | |
146 | <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry> | |
147 | for details. | |
148 | </para> | |
149 | </listitem> | |
150 | </varlistentry> | |
151 | <varlistentry> | |
152 | <term><varname>Virtualization=</varname></term> | |
153 | <listitem> | |
154 | <para>Checks whether the system is executed in a virtualized | |
155 | environment and optionally test whether it is a specific | |
156 | implementation. See <literal>ConditionVirtualization=</literal> in | |
157 | <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry> | |
158 | for details. | |
159 | </para> | |
160 | </listitem> | |
161 | </varlistentry> | |
162 | <varlistentry> | |
163 | <term><varname>KernelCommandLine=</varname></term> | |
164 | <listitem> | |
165 | <para>Checks whether a specific kernel command line option is | |
166 | set (or if prefixed with the exclamation mark unset). See | |
167 | <literal>ConditionKernelCommandLine=</literal> in | |
168 | <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry> | |
169 | for details. | |
170 | </para> | |
171 | </listitem> | |
172 | </varlistentry> | |
173 | <varlistentry> | |
174 | <term><varname>Architecture=</varname></term> | |
175 | <listitem> | |
176 | <para>Checks whether the system is running on a specific | |
177 | architecture. See <literal>ConditionArchitecture=</literal> in | |
178 | <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry> | |
179 | for details. | |
180 | </para> | |
181 | </listitem> | |
182 | </varlistentry> | |
183 | </variablelist> | |
184 | ||
185 | </refsect1> | |
186 | ||
187 | <refsect1> | |
188 | <title>[Link] Section Options</title> | |
189 | ||
190 | <para> The <literal>[Link]</literal> section accepts the following keys:</para> | |
191 | ||
192 | <variablelist class='network-directives'> | |
193 | <varlistentry> | |
194 | <term><varname>MACAddress=</varname></term> | |
195 | <listitem> | |
196 | <para>The hardware address.</para> | |
197 | </listitem> | |
198 | </varlistentry> | |
199 | <varlistentry> | |
200 | <term><varname>MTUBytes=</varname></term> | |
201 | <listitem> | |
202 | <para>The maximum transmission unit in bytes to set for the | |
203 | device. The usual suffixes K, M, G, are supported and are | |
204 | understood to the base of 1024.</para> | |
205 | </listitem> | |
206 | </varlistentry> | |
207 | </variablelist> | |
208 | </refsect1> | |
209 | ||
210 | <refsect1> | |
211 | <title>[Network] Section Options</title> | |
212 | ||
213 | <para>The <literal>[Network]</literal> section accepts the following keys:</para> | |
214 | ||
215 | <variablelist class='network-directives'> | |
216 | <varlistentry> | |
217 | <term><varname>Description=</varname></term> | |
218 | <listitem> | |
219 | <para>A description of the device. This is only used for | |
220 | presentation purposes.</para> | |
221 | </listitem> | |
222 | </varlistentry> | |
223 | <varlistentry> | |
224 | <term><varname>DHCP=</varname></term> | |
225 | <listitem> | |
ad943783 | 226 | <para>Enables DHCPv4 and/or DHCPv6 client support. Accepts |
798d3a52 ZJS |
227 | <literal>yes</literal>, <literal>no</literal>, |
228 | <literal>ipv4</literal>, or <literal>ipv6</literal>.</para> | |
e88d8021 | 229 | |
f5a8c43f | 230 | <para>Note that DHCPv6 will by default be triggered by Router |
7f3fdb7f | 231 | Advertisement, if that is enabled, regardless of this parameter. |
f5a8c43f TG |
232 | By enabling DHCPv6 support explicitly, the DHCPv6 client will |
233 | be started regardless of the presence of routers on the link, | |
234 | or what flags the routers pass. See | |
235 | <literal>IPv6AcceptRouterAdvertisements=</literal>.</para> | |
236 | ||
237 | <para>Furthermore, note that by default the domain name | |
e88d8021 ZJS |
238 | specified through DHCP is not used for name resolution. |
239 | See option <option>UseDomains=</option> below.</para> | |
798d3a52 ZJS |
240 | </listitem> |
241 | </varlistentry> | |
242 | <varlistentry> | |
243 | <term><varname>DHCPServer=</varname></term> | |
244 | <listitem> | |
ad943783 LP |
245 | <para>A boolean. Enables DHCPv4 server support. Defaults |
246 | to <literal>no</literal>. Further settings for the DHCP | |
247 | server may be set in the <literal>[DHCPServer]</literal> | |
248 | section described below.</para> | |
798d3a52 ZJS |
249 | </listitem> |
250 | </varlistentry> | |
251 | <varlistentry> | |
56fd6bf7 | 252 | <term><varname>LinkLocalAddressing=</varname></term> |
798d3a52 | 253 | <listitem> |
d0d6a4cd TG |
254 | <para>Enables link-local address autoconfiguration. Accepts |
255 | <literal>yes</literal>, <literal>no</literal>, | |
256 | <literal>ipv4</literal>, or <literal>ipv6</literal>. Defaults to | |
257 | <literal>ipv6</literal>.</para> | |
798d3a52 ZJS |
258 | </listitem> |
259 | </varlistentry> | |
260 | <varlistentry> | |
261 | <term><varname>IPv4LLRoute=</varname></term> | |
262 | <listitem> | |
263 | <para>A boolean. When true, sets up the route needed for | |
264 | non-IPv4LL hosts to communicate with IPv4LL-only hosts. Defaults | |
265 | to false. | |
266 | </para> | |
267 | </listitem> | |
268 | </varlistentry> | |
269 | <varlistentry> | |
113bfde1 TG |
270 | <term><varname>IPv6Token=</varname></term> |
271 | <listitem> | |
272 | <para>An IPv6 address with the top 64 bits unset. When set, indicates the | |
a8eaaee7 | 273 | 64-bit interface part of SLAAC IPv6 addresses for this link. By default, |
113bfde1 TG |
274 | it is autogenerated.</para> |
275 | </listitem> | |
276 | </varlistentry> | |
277 | <varlistentry> | |
798d3a52 ZJS |
278 | <term><varname>LLMNR=</varname></term> |
279 | <listitem> | |
aaa297d4 LP |
280 | <para>A boolean or <literal>resolve</literal>. When true, |
281 | enables <ulink | |
282 | url="https://tools.ietf.org/html/rfc4795">Link-Local | |
283 | Multicast Name Resolution</ulink> on the link. When set to | |
284 | <literal>resolve</literal>, only resolution is enabled, | |
285 | but not host registration and announcement. Defaults to | |
286 | true. This setting is read by | |
287 | <citerefentry><refentrytitle>systemd-resolved.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>.</para> | |
288 | </listitem> | |
289 | </varlistentry> | |
290 | <varlistentry> | |
291 | <term><varname>MulticastDNS=</varname></term> | |
292 | <listitem> | |
293 | <para>A boolean or <literal>resolve</literal>. When true, | |
294 | enables <ulink | |
295 | url="https://tools.ietf.org/html/rfc6762">Multicast | |
296 | DNS</ulink> support on the link. When set to | |
297 | <literal>resolve</literal>, only resolution is enabled, | |
298 | but not host or service registration and | |
299 | announcement. Defaults to false. This setting is read by | |
300 | <citerefentry><refentrytitle>systemd-resolved.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>.</para> | |
798d3a52 ZJS |
301 | </listitem> |
302 | </varlistentry> | |
ad6c0475 LP |
303 | <varlistentry> |
304 | <term><varname>DNSSEC=</varname></term> | |
305 | <listitem> | |
306 | <para>A boolean or | |
307 | <literal>allow-downgrade</literal>. When true, enables | |
308 | <ulink | |
309 | url="https://tools.ietf.org/html/rfc4033">DNSSEC</ulink> | |
310 | DNS validation support on the link. When set to | |
311 | <literal>allow-downgrade</literal>, compatibility with | |
312 | non-DNSSEC capable networks is increased, by automatically | |
313 | turning off DNSEC in this case. This option defines a | |
314 | per-interface setting for | |
315 | <citerefentry><refentrytitle>resolved.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>'s | |
316 | global <varname>DNSSEC=</varname> option. Defaults to | |
317 | false. This setting is read by | |
318 | <citerefentry><refentrytitle>systemd-resolved.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>.</para> | |
319 | </listitem> | |
320 | </varlistentry> | |
798d3a52 ZJS |
321 | <varlistentry> |
322 | <term><varname>LLDP=</varname></term> | |
323 | <listitem> | |
324 | <para>A boolean. When true, enables LLDP link receive support. | |
325 | </para> | |
326 | </listitem> | |
327 | </varlistentry> | |
0d4ad91d AR |
328 | <varlistentry> |
329 | <term><varname>BindCarrier=</varname></term> | |
330 | <listitem> | |
331 | <para>A port or a list of ports. When set, controls the | |
dd2b607b | 332 | behavior of the current interface. When all ports in the list |
0d4ad91d AR |
333 | are in an operational down state, the current interface is brought |
334 | down. When at least one port has carrier, the current interface | |
335 | is brought up. | |
336 | </para> | |
337 | </listitem> | |
338 | </varlistentry> | |
798d3a52 ZJS |
339 | <varlistentry> |
340 | <term><varname>Address=</varname></term> | |
341 | <listitem> | |
342 | <para>A static IPv4 or IPv6 address and its prefix length, | |
343 | separated by a <literal>/</literal> character. Specify | |
344 | this key more than once to configure several addresses. | |
345 | The format of the address must be as described in | |
3ba3a79d | 346 | <citerefentry project='man-pages'><refentrytitle>inet_pton</refentrytitle><manvolnum>3</manvolnum></citerefentry>. |
798d3a52 ZJS |
347 | This is a short-hand for an [Address] section only |
348 | containing an Address key (see below). This option may be | |
349 | specified more than once. | |
350 | </para> | |
351 | ||
352 | <para>If the specified address is 0.0.0.0 (for IPv4) or | |
353 | [::] (for IPv6), a new address range of the requested size | |
354 | is automatically allocated from a system-wide pool of | |
355 | unused ranges. The allocated range is checked against all | |
356 | current network interfaces and all known network | |
357 | configuration files to avoid address range conflicts. The | |
358 | default system-wide pool consists of 192.168.0.0/16, | |
359 | 172.16.0.0/12 and 10.0.0.0/8 for IPv4, and fc00::/7 for | |
360 | IPv6. This functionality is useful to manage a large | |
361 | number of dynamically created network interfaces with the | |
362 | same network configuration and automatic address range | |
363 | assignment.</para> | |
364 | ||
365 | </listitem> | |
366 | </varlistentry> | |
367 | <varlistentry> | |
368 | <term><varname>Gateway=</varname></term> | |
369 | <listitem> | |
370 | <para>The gateway address, which must be in the format | |
371 | described in | |
3ba3a79d | 372 | <citerefentry project='man-pages'><refentrytitle>inet_pton</refentrytitle><manvolnum>3</manvolnum></citerefentry>. |
798d3a52 ZJS |
373 | This is a short-hand for a [Route] section only containing |
374 | a Gateway key. This option may be specified more than | |
375 | once.</para> | |
376 | </listitem> | |
377 | </varlistentry> | |
378 | <varlistentry> | |
379 | <term><varname>DNS=</varname></term> | |
380 | <listitem> | |
381 | <para>A DNS server address, which must be in the format | |
382 | described in | |
3ba3a79d | 383 | <citerefentry project='man-pages'><refentrytitle>inet_pton</refentrytitle><manvolnum>3</manvolnum></citerefentry>. |
f41b446a LP |
384 | This option may be specified more than once. This setting is read by |
385 | <citerefentry><refentrytitle>systemd-resolved.service</refentrytitle><manvolnum>8</manvolnum></citerefentry></para> | |
798d3a52 ZJS |
386 | </listitem> |
387 | </varlistentry> | |
388 | <varlistentry> | |
389 | <term><varname>Domains=</varname></term> | |
390 | <listitem> | |
f41b446a LP |
391 | <para>The domains used for DNS resolution over this link. This setting is read by |
392 | <citerefentry><refentrytitle>systemd-resolved.service</refentrytitle><manvolnum>8</manvolnum></citerefentry></para> | |
798d3a52 ZJS |
393 | </listitem> |
394 | </varlistentry> | |
395 | <varlistentry> | |
396 | <term><varname>NTP=</varname></term> | |
397 | <listitem> | |
f41b446a LP |
398 | <para>An NTP server address. This option may be specified more than once. This setting is read by |
399 | <citerefentry><refentrytitle>systemd-timesyncd.service</refentrytitle><manvolnum>8</manvolnum></citerefentry></para> | |
798d3a52 ZJS |
400 | </listitem> |
401 | </varlistentry> | |
402 | <varlistentry> | |
403 | <term><varname>IPForward=</varname></term> | |
765afd5c LP |
404 | <listitem><para>Configures IP packet forwarding for the |
405 | system. If enabled, incoming packets on any network | |
406 | interface will be forwarded to any other interfaces | |
407 | according to the routing table. Takes either a boolean | |
408 | argument, or the values <literal>ipv4</literal> or | |
409 | <literal>ipv6</literal>, which only enable IP packet | |
410 | forwarding for the specified address family. This controls | |
411 | the <filename>net.ipv4.ip_forward</filename> and | |
412 | <filename>net.ipv6.conf.all.forwarding</filename> sysctl | |
413 | options of the network interface (see <ulink | |
4046d836 LP |
414 | url="https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt">ip-sysctl.txt</ulink> |
415 | for details about sysctl options). Defaults to | |
416 | <literal>no</literal>.</para> | |
417 | ||
765afd5c LP |
418 | <para>Note: this setting controls a global kernel option, |
419 | and does so one way only: if a network that has this setting | |
420 | enabled is set up the global setting is turned on. However, | |
421 | it is never turned off again, even after all networks with | |
422 | this setting enabled are shut down again.</para> | |
423 | ||
424 | <para>To allow IP packet forwarding only between specific | |
425 | network interfaces use a firewall.</para> | |
4046d836 | 426 | </listitem> |
798d3a52 ZJS |
427 | </varlistentry> |
428 | <varlistentry> | |
429 | <term><varname>IPMasquerade=</varname></term> | |
430 | <listitem><para>Configures IP masquerading for the network | |
b938cb90 | 431 | interface. If enabled, packets forwarded from the network |
798d3a52 ZJS |
432 | interface will be appear as coming from the local host. |
433 | Takes a boolean argument. Implies | |
5c82dd13 | 434 | <varname>IPForward=ipv4</varname>. Defaults to |
4046d836 | 435 | <literal>no</literal>.</para></listitem> |
798d3a52 | 436 | </varlistentry> |
a46e37cb SS |
437 | <varlistentry> |
438 | <term><varname>IPv6PrivacyExtensions=</varname></term> | |
1f0d9695 LP |
439 | <listitem><para>Configures use of stateless temporary |
440 | addresses that change over time (see <ulink | |
441 | url="https://tools.ietf.org/html/rfc4941">RFC 4941</ulink>, | |
442 | Privacy Extensions for Stateless Address Autoconfiguration | |
443 | in IPv6). Takes a boolean or the special values | |
444 | <literal>prefer-public</literal> and | |
b938cb90 | 445 | <literal>kernel</literal>. When true, enables the privacy |
1f0d9695 | 446 | extensions and prefers temporary addresses over public |
b938cb90 | 447 | addresses. When <literal>prefer-public</literal>, enables the |
1f0d9695 LP |
448 | privacy extensions, but prefers public addresses over |
449 | temporary addresses. When false, the privacy extensions | |
b938cb90 | 450 | remain disabled. When <literal>kernel</literal>, the kernel's |
1f0d9695 | 451 | default setting will be left in place. Defaults to |
a46e37cb SS |
452 | <literal>no</literal>.</para></listitem> |
453 | </varlistentry> | |
941d0aa8 SS |
454 | <varlistentry> |
455 | <term><varname>IPv6AcceptRouterAdvertisements=</varname></term> | |
a8eaaee7 | 456 | <listitem><para>Force the setting of the <filename>accept_ra</filename> |
ebf98081 ZJS |
457 | (router advertisements) setting for the interface. |
458 | When unset, the kernel default is used, and router | |
459 | advertisements are accepted only when local forwarding | |
460 | is disabled for that interface. | |
f5a8c43f TG |
461 | When router advertisements are accepted, they will |
462 | trigger the start of the DHCPv6 client if the relevant | |
463 | flags are passed, or if no routers are found on the link. | |
ebf98081 ZJS |
464 | Takes a boolean. If true, router advertisements are |
465 | accepted, when false, router advertisements are ignored, | |
466 | independently of the local forwarding state.</para> | |
467 | ||
468 | <para>See | |
469 | <ulink url="https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt">ip-sysctl.txt</ulink> | |
470 | in the kernel documentation, but note that systemd's | |
471 | setting of <constant>1</constant> corresponds to | |
472 | kernel's setting of <constant>2</constant>.</para> | |
473 | </listitem> | |
941d0aa8 | 474 | </varlistentry> |
44de7fb1 SS |
475 | <varlistentry> |
476 | <term><varname>IPv6DuplicateAddressDetection=</varname></term> | |
a8eaaee7 JE |
477 | <listitem><para>Configures the amount of IPv6 Duplicate |
478 | Address Detection (DAD) probes to send. Defaults to unset. | |
44de7fb1 SS |
479 | </para></listitem> |
480 | </varlistentry> | |
a86cba89 SS |
481 | <varlistentry> |
482 | <term><varname>IPv6HopLimit=</varname></term> | |
483 | <listitem><para>Configures IPv6 Hop Limit. For each router that | |
484 | forwards the packet, the hop limit is decremented by 1. When the | |
485 | hop limit field reaches zero, the packet is discarded. | |
486 | Defaults to unset. | |
487 | </para></listitem> | |
488 | </varlistentry> | |
798d3a52 ZJS |
489 | <varlistentry> |
490 | <term><varname>Bridge=</varname></term> | |
491 | <listitem> | |
492 | <para>The name of the bridge to add the link to.</para> | |
493 | </listitem> | |
494 | </varlistentry> | |
495 | <varlistentry> | |
496 | <term><varname>Bond=</varname></term> | |
497 | <listitem> | |
498 | <para>The name of the bond to add the link to.</para> | |
499 | </listitem> | |
500 | </varlistentry> | |
501 | <varlistentry> | |
502 | <term><varname>VLAN=</varname></term> | |
503 | <listitem> | |
504 | <para>The name of a VLAN to create on the link. This | |
505 | option may be specified more than once.</para> | |
506 | </listitem> | |
507 | </varlistentry> | |
508 | <varlistentry> | |
509 | <term><varname>MACVLAN=</varname></term> | |
510 | <listitem> | |
511 | <para>The name of a MACVLAN to create on the link. This | |
512 | option may be specified more than once.</para> | |
513 | </listitem> | |
514 | </varlistentry> | |
515 | <varlistentry> | |
516 | <term><varname>VXLAN=</varname></term> | |
517 | <listitem> | |
518 | <para>The name of a VXLAN to create on the link. This | |
519 | option may be specified more than once.</para> | |
520 | </listitem> | |
521 | </varlistentry> | |
522 | <varlistentry> | |
523 | <term><varname>Tunnel=</varname></term> | |
524 | <listitem> | |
525 | <para>The name of a Tunnel to create on the link. This | |
526 | option may be specified more than once.</para> | |
527 | </listitem> | |
528 | </varlistentry> | |
529 | </variablelist> | |
530 | ||
531 | </refsect1> | |
532 | ||
533 | <refsect1> | |
534 | <title>[Address] Section Options</title> | |
535 | ||
536 | <para>An <literal>[Address]</literal> section accepts the | |
537 | following keys. Specify several <literal>[Address]</literal> | |
538 | sections to configure several addresses.</para> | |
539 | ||
540 | <variablelist class='network-directives'> | |
541 | <varlistentry> | |
542 | <term><varname>Address=</varname></term> | |
543 | <listitem> | |
544 | <para>As in the <literal>[Network]</literal> section. This | |
545 | key is mandatory.</para> | |
546 | </listitem> | |
547 | </varlistentry> | |
548 | <varlistentry> | |
549 | <term><varname>Peer=</varname></term> | |
550 | <listitem> | |
551 | <para>The peer address in a point-to-point connection. | |
552 | Accepts the same format as the <literal>Address</literal> | |
553 | key.</para> | |
554 | </listitem> | |
555 | </varlistentry> | |
556 | <varlistentry> | |
557 | <term><varname>Broadcast=</varname></term> | |
558 | <listitem> | |
559 | <para>The broadcast address, which must be in the format | |
560 | described in | |
3ba3a79d | 561 | <citerefentry project='man-pages'><refentrytitle>inet_pton</refentrytitle><manvolnum>3</manvolnum></citerefentry>. |
798d3a52 ZJS |
562 | This key only applies to IPv4 addresses. If it is not |
563 | given, it is derived from the <literal>Address</literal> | |
564 | key.</para> | |
565 | </listitem> | |
566 | </varlistentry> | |
567 | <varlistentry> | |
568 | <term><varname>Label=</varname></term> | |
569 | <listitem> | |
570 | <para>An address label.</para> | |
571 | </listitem> | |
572 | </varlistentry> | |
573 | </variablelist> | |
574 | </refsect1> | |
575 | ||
576 | <refsect1> | |
577 | <title>[Route] Section Options</title> | |
578 | <para>The <literal>[Route]</literal> section accepts the | |
579 | following keys. Specify several <literal>[Route]</literal> | |
580 | sections to configure several routes.</para> | |
581 | ||
582 | <variablelist class='network-directives'> | |
583 | <varlistentry> | |
584 | <term><varname>Gateway=</varname></term> | |
585 | <listitem> | |
586 | <para>As in the <literal>[Network]</literal> section.</para> | |
587 | </listitem> | |
588 | </varlistentry> | |
589 | <varlistentry> | |
590 | <term><varname>Destination=</varname></term> | |
591 | <listitem> | |
592 | <para>The destination prefix of the route. Possibly | |
b938cb90 | 593 | followed by a slash and the prefix length. If omitted, a |
798d3a52 ZJS |
594 | full-length host route is assumed.</para> |
595 | </listitem> | |
596 | </varlistentry> | |
597 | <varlistentry> | |
598 | <term><varname>Source=</varname></term> | |
599 | <listitem> | |
600 | <para>The source prefix of the route. Possibly followed by | |
b938cb90 | 601 | a slash and the prefix length. If omitted, a full-length |
798d3a52 ZJS |
602 | host route is assumed.</para> |
603 | </listitem> | |
604 | </varlistentry> | |
605 | <varlistentry> | |
606 | <term><varname>Metric=</varname></term> | |
607 | <listitem> | |
b938cb90 | 608 | <para>The metric of the route (an unsigned integer).</para> |
798d3a52 ZJS |
609 | </listitem> |
610 | </varlistentry> | |
769b56a3 TG |
611 | <varlistentry> |
612 | <term><varname>Scope=</varname></term> | |
613 | <listitem> | |
a8eaaee7 | 614 | <para>The scope of the route, which can be <literal>global</literal>, |
769b56a3 TG |
615 | <literal>link</literal> or <literal>host</literal>. Defaults to |
616 | <literal>global</literal>.</para> | |
617 | </listitem> | |
0d07e595 JK |
618 | </varlistentry> |
619 | <varlistentry> | |
620 | <term><varname>PreferredSource=</varname></term> | |
621 | <listitem> | |
622 | <para>The preferred source address of the route. The address | |
623 | must be in the format described in | |
624 | <citerefentry project='man-pages'><refentrytitle>inet_pton</refentrytitle><manvolnum>3</manvolnum></citerefentry>.</para> | |
625 | </listitem> | |
769b56a3 | 626 | </varlistentry> |
798d3a52 ZJS |
627 | </variablelist> |
628 | </refsect1> | |
629 | ||
630 | <refsect1> | |
631 | <title>[DHCP] Section Options</title> | |
ad943783 LP |
632 | <para>The <literal>[DHCP]</literal> section configures the |
633 | DHCPv4 and DHCP6 client, if it is enabled with the | |
634 | <varname>DHCP=</varname> setting described above:</para> | |
798d3a52 ZJS |
635 | |
636 | <variablelist class='network-directives'> | |
637 | <varlistentry> | |
638 | <term><varname>UseDNS=</varname></term> | |
639 | <listitem> | |
640 | <para>When true (the default), the DNS servers received | |
641 | from the DHCP server will be used and take precedence over | |
642 | any statically configured ones.</para> | |
e88d8021 ZJS |
643 | |
644 | <para>This corresponds to the <option>nameserver</option> | |
ad943783 LP |
645 | option in <citerefentry |
646 | project='man-pages'><refentrytitle>resolv.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>.</para> | |
798d3a52 ZJS |
647 | </listitem> |
648 | </varlistentry> | |
301f4073 MM |
649 | <varlistentry> |
650 | <term><varname>UseNTP=</varname></term> | |
651 | <listitem> | |
652 | <para>When true (the default), the NTP servers received | |
653 | from the DHCP server will be used by systemd-timesyncd | |
654 | and take precedence over any statically configured ones.</para> | |
655 | </listitem> | |
656 | </varlistentry> | |
798d3a52 ZJS |
657 | <varlistentry> |
658 | <term><varname>UseMTU=</varname></term> | |
659 | <listitem> | |
660 | <para>When true, the interface maximum transmission unit | |
661 | from the DHCP server will be used on the current link. | |
662 | Defaults to false.</para> | |
663 | </listitem> | |
664 | </varlistentry> | |
665 | <varlistentry> | |
666 | <term><varname>SendHostname=</varname></term> | |
667 | <listitem> | |
d59be2cf ZJS |
668 | <para>When true (the default), the machine's hostname will |
669 | be sent to the DHCP server.</para> | |
798d3a52 ZJS |
670 | </listitem> |
671 | </varlistentry> | |
672 | <varlistentry> | |
673 | <term><varname>UseHostname=</varname></term> | |
674 | <listitem> | |
675 | <para>When true (the default), the hostname received from | |
ad943783 | 676 | the DHCP server will be set as the transient hostname of the system |
d59be2cf | 677 | </para> |
798d3a52 ZJS |
678 | </listitem> |
679 | </varlistentry> | |
1adc5d0b SS |
680 | <varlistentry> |
681 | <term><varname>Hostname=</varname></term> | |
682 | <listitem> | |
d59be2cf ZJS |
683 | <para>Use this value for the hostname which is sent to the |
684 | DHCP server, instead of machine's hostname.</para> | |
1adc5d0b SS |
685 | </listitem> |
686 | </varlistentry> | |
798d3a52 ZJS |
687 | <varlistentry> |
688 | <term><varname>UseDomains=</varname></term> | |
689 | <listitem> | |
690 | <para>When true (not the default), the domain name | |
691 | received from the DHCP server will be used for DNS | |
e88d8021 ZJS |
692 | resolution over this link. When a name cannot be resolved |
693 | as specified, the domain name will be used a suffix and | |
694 | name resolution of that will be attempted.</para> | |
695 | ||
696 | <para>This corresponds to the <option>domain</option> | |
697 | option in <citerefentry project='man-pages'><refentrytitle>resolv.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry> | |
698 | and should not be enabled on untrusted networks.</para> | |
798d3a52 ZJS |
699 | </listitem> |
700 | </varlistentry> | |
701 | <varlistentry> | |
702 | <term><varname>UseRoutes=</varname></term> | |
703 | <listitem> | |
704 | <para>When true (the default), the static routes will be | |
705 | requested from the DHCP server and added to the routing | |
a8eaaee7 | 706 | table with a metric of 1024.</para> |
798d3a52 ZJS |
707 | </listitem> |
708 | </varlistentry> | |
ad943783 LP |
709 | |
710 | <varlistentry> | |
711 | <term><varname>UseTimezone=</varname></term> | |
712 | ||
713 | <listitem><para>When true, the timezone received from the | |
7f3fdb7f | 714 | DHCP server will be set as timezone of the local |
ad943783 LP |
715 | system. Defaults to <literal>no</literal>.</para></listitem> |
716 | </varlistentry> | |
717 | ||
798d3a52 ZJS |
718 | <varlistentry> |
719 | <term><varname>CriticalConnection=</varname></term> | |
720 | <listitem> | |
721 | <para>When true, the connection will never be torn down | |
722 | even if the DHCP lease expires. This is contrary to the | |
723 | DHCP specification, but may be the best choice if, say, | |
724 | the root filesystem relies on this connection. Defaults to | |
725 | false.</para> | |
726 | </listitem> | |
727 | </varlistentry> | |
3e43b2cd JJ |
728 | <varlistentry> |
729 | <term><varname>ClientIdentifier=</varname></term> | |
730 | <listitem> | |
731 | <para>DHCP client identifier to use. Either <literal>mac</literal> | |
732 | to use the MAC address of the link or <literal>duid</literal> | |
4a6970c5 | 733 | (the default) to use a RFC4361-compliant Client ID.</para> |
3e43b2cd JJ |
734 | </listitem> |
735 | </varlistentry> | |
798d3a52 ZJS |
736 | <varlistentry> |
737 | <term><varname>VendorClassIdentifier=</varname></term> | |
738 | <listitem> | |
739 | <para>The vendor class identifier used to identify vendor | |
740 | type and configuration.</para> | |
741 | </listitem> | |
742 | </varlistentry> | |
743 | <varlistentry> | |
744 | <term><varname>RequestBroadcast=</varname></term> | |
745 | <listitem> | |
746 | <para>Request the server to use broadcast messages before | |
747 | the IP address has been configured. This is necessary for | |
748 | devices that cannot receive RAW packets, or that cannot | |
749 | receive packets at all before an IP address has been | |
750 | configured. On the other hand, this must not be enabled on | |
751 | networks where broadcasts are filtered out.</para> | |
752 | </listitem> | |
753 | </varlistentry> | |
754 | <varlistentry> | |
755 | <term><varname>RouteMetric=</varname></term> | |
756 | <listitem> | |
757 | <para>Set the routing metric for routes specified by the | |
758 | DHCP server.</para> | |
759 | </listitem> | |
760 | </varlistentry> | |
ad943783 | 761 | </variablelist> |
798d3a52 ZJS |
762 | |
763 | </refsect1> | |
764 | ||
ad943783 LP |
765 | <refsect1> |
766 | <title>[DHCPServer] Section Options</title> | |
767 | <para>The <literal>[DHCPServer]</literal> section contains | |
768 | settings for the DHCP server, if enabled via the | |
769 | <varname>DHCPServer=</varname> option described above:</para> | |
770 | ||
771 | <variablelist class='network-directives'> | |
772 | ||
9b3a67c5 TG |
773 | <varlistentry> |
774 | <term><varname>PoolOffset=</varname></term> | |
775 | <term><varname>PoolSize=</varname></term> | |
776 | ||
777 | <listitem><para>Configures the pool of addresses to hand out. The pool | |
778 | is a contiguous sequence of IP addresses in the subnet configured for | |
779 | the server address, which does not include the subnet nor the broadcast | |
780 | address. <varname>PoolOffset=</varname> takes the offset of the pool | |
781 | from the start of subnet, or zero to use the default value. | |
782 | <varname>PoolSize=</varname> takes the number of IP addresses in the | |
b938cb90 | 783 | pool or zero to use the default value. By default, the pool starts at |
9b3a67c5 TG |
784 | the first address after the subnet address and takes up the rest of |
785 | the subnet, excluding the broadcast address. If the pool includes | |
786 | the server address (the default), this is reserved and not handed | |
787 | out to clients.</para></listitem> | |
788 | </varlistentry> | |
789 | ||
ad943783 LP |
790 | <varlistentry> |
791 | <term><varname>DefaultLeaseTimeSec=</varname></term> | |
792 | <term><varname>MaxLeaseTimeSec=</varname></term> | |
793 | ||
794 | <listitem><para>Control the default and maximum DHCP lease | |
795 | time to pass to clients. These settings take time values in seconds or | |
796 | another common time unit, depending on the suffix. The default | |
797 | lease time is used for clients that did not ask for a specific | |
798 | lease time. If a client asks for a lease time longer than the | |
b938cb90 | 799 | maximum lease time, it is automatically shortened to the |
ad943783 LP |
800 | specified time. The default lease time defaults to 1h, the |
801 | maximum lease time to 12h. Shorter lease times are beneficial | |
802 | if the configuration data in DHCP leases changes frequently | |
803 | and clients shall learn the new settings with shorter | |
804 | latencies. Longer lease times reduce the generated DHCP | |
805 | network traffic.</para></listitem> | |
806 | </varlistentry> | |
807 | ||
808 | <varlistentry> | |
809 | <term><varname>EmitDNS=</varname></term> | |
810 | <term><varname>DNS=</varname></term> | |
811 | ||
812 | <listitem><para>Configures whether the DHCP leases handed out | |
813 | to clients shall contain DNS server information. The | |
814 | <varname>EmitDNS=</varname> setting takes a boolean argument | |
815 | and defaults to <literal>yes</literal>. The DNS servers to | |
816 | pass to clients may be configured with the | |
817 | <varname>DNS=</varname> option, which takes a list of IPv4 | |
818 | addresses. If the <varname>EmitDNS=</varname> option is | |
b938cb90 | 819 | enabled but no servers configured, the servers are |
ad943783 LP |
820 | automatically propagated from an "uplink" interface that has |
821 | appropriate servers set. The "uplink" interface is determined | |
822 | by the default route of the system with the highest | |
823 | priority. Note that this information is acquired at the time | |
824 | the lease is handed out, and does not take uplink interfaces | |
825 | into account that acquire DNS or NTP server information at a | |
826 | later point. DNS server propagation does not take | |
827 | <filename>/etc/resolv.conf</filename> into account. Also, note | |
a8eaaee7 | 828 | that the leases are not refreshed if the uplink network |
ad943783 | 829 | configuration changes. To ensure clients regularly acquire the |
b938cb90 | 830 | most current uplink DNS server information, it is thus |
ad943783 LP |
831 | advisable to shorten the DHCP lease time via |
832 | <varname>MaxLeaseTimeSec=</varname> described | |
833 | above.</para></listitem> | |
834 | </varlistentry> | |
835 | ||
836 | <varlistentry> | |
837 | <term><varname>EmitNTP=</varname></term> | |
838 | <term><varname>NTP=</varname></term> | |
839 | ||
840 | <listitem><para>Similar to the <varname>EmitDNS=</varname> and | |
b938cb90 | 841 | <varname>DNS=</varname> settings described above, these |
ad943783 LP |
842 | settings configure whether and what NTP server information |
843 | shall be emitted as part of the DHCP lease. The same syntax, | |
844 | propagation semantics and defaults apply as for | |
845 | <varname>EmitDNS=</varname> and | |
846 | <varname>DNS=</varname>.</para></listitem> | |
847 | </varlistentry> | |
848 | ||
849 | <varlistentry> | |
850 | <term><varname>EmitTimezone=</varname></term> | |
851 | <term><varname>Timezone=</varname></term> | |
852 | ||
853 | <listitem><para>Configures whether the DHCP leases handed out | |
854 | to clients shall contain timezone information. The | |
855 | <varname>EmitTimezone=</varname> setting takes a boolean | |
856 | argument and defaults to <literal>yes</literal>. The | |
857 | <varname>Timezone=</varname> setting takes a timezone string | |
858 | (such as <literal>Europe/Berlin</literal> or | |
859 | <literal>UTC</literal>) to pass to clients. If no explicit | |
b938cb90 | 860 | timezone is set, the system timezone of the local host is |
ad943783 LP |
861 | propagated, as determined by the |
862 | <filename>/etc/localtime</filename> symlink.</para></listitem> | |
863 | </varlistentry> | |
864 | ||
865 | </variablelist> | |
866 | </refsect1> | |
867 | ||
798d3a52 ZJS |
868 | <refsect1> |
869 | <title>[Bridge] Section Options</title> | |
870 | <para>The <literal>[Bridge]</literal> section accepts the | |
871 | following keys.</para> | |
872 | <variablelist class='network-directives'> | |
165c41a9 SS |
873 | <varlistentry> |
874 | <term><varname>UnicastFlood=</varname></term> | |
875 | <listitem> | |
072f9e4a ZJS |
876 | <para>A boolean. Controls whether the bridge should flood |
877 | traffic for which an FDB entry is missing and the destination | |
878 | is unknown through this port. Defaults to on. | |
47c7dfe2 | 879 | </para> |
165c41a9 SS |
880 | </listitem> |
881 | </varlistentry> | |
882 | <varlistentry> | |
883 | <term><varname>HairPin=</varname></term> | |
884 | <listitem> | |
47c7dfe2 ZJS |
885 | <para>A boolean. Configures whether traffic may be sent back |
886 | out of the port on which it was received. By default, this | |
887 | flag is false, and the bridge will not forward traffic back | |
888 | out of the receiving port.</para> | |
165c41a9 SS |
889 | </listitem> |
890 | </varlistentry> | |
891 | <varlistentry> | |
84c34096 | 892 | <term><varname>UseBPDU=</varname></term> |
165c41a9 | 893 | <listitem> |
47c7dfe2 | 894 | <para>A boolean. Configures whether STP Bridge Protocol Data Units will be |
84c34096 | 895 | processed by the bridge port. Defaults to yes.</para> |
165c41a9 SS |
896 | </listitem> |
897 | </varlistentry> | |
898 | <varlistentry> | |
899 | <term><varname>FastLeave=</varname></term> | |
900 | <listitem> | |
47c7dfe2 | 901 | <para>A boolean. This flag allows the bridge to immediately stop multicast |
a8eaaee7 | 902 | traffic on a port that receives an IGMP Leave message. It is only used with |
47c7dfe2 | 903 | IGMP snooping if enabled on the bridge. Defaults to off.</para> |
165c41a9 SS |
904 | </listitem> |
905 | </varlistentry> | |
906 | <varlistentry> | |
23da66bb | 907 | <term><varname>AllowPortToBeRoot=</varname></term> |
165c41a9 | 908 | <listitem> |
47c7dfe2 ZJS |
909 | <para>A boolean. Configures whether a given port is allowed to |
910 | become a root port. Only used when STP is enabled on the bridge. | |
23da66bb | 911 | Defaults to on.</para> |
165c41a9 SS |
912 | </listitem> |
913 | </varlistentry> | |
798d3a52 ZJS |
914 | <varlistentry> |
915 | <term><varname>Cost=</varname></term> | |
916 | <listitem> | |
47c7dfe2 | 917 | <para>Sets the "cost" of sending packets of this interface. |
a8eaaee7 | 918 | Each port in a bridge may have a different speed and the cost |
798d3a52 | 919 | is used to decide which link to use. Faster interfaces |
47c7dfe2 | 920 | should have lower costs.</para> |
798d3a52 ZJS |
921 | </listitem> |
922 | </varlistentry> | |
923 | </variablelist> | |
924 | </refsect1> | |
798d3a52 ZJS |
925 | <refsect1> |
926 | <title>[BridgeFDB] Section Options</title> | |
927 | <para>The <literal>[BridgeFDB]</literal> section manages the | |
928 | forwarding database table of a port and accepts the following | |
929 | keys. Specify several <literal>[BridgeFDB]</literal> sections to | |
930 | configure several static MAC table entries.</para> | |
931 | ||
932 | <variablelist class='network-directives'> | |
933 | <varlistentry> | |
934 | <term><varname>MACAddress=</varname></term> | |
935 | <listitem> | |
936 | <para>As in the <literal>[Network]</literal> section. This | |
937 | key is mandatory.</para> | |
938 | </listitem> | |
939 | </varlistentry> | |
940 | <varlistentry> | |
941 | <term><varname>VLANId=</varname></term> | |
942 | <listitem> | |
a8eaaee7 JE |
943 | <para>The VLAN ID for the new static MAC table entry. If |
944 | omitted, no VLAN ID info is appended to the new static MAC | |
798d3a52 ZJS |
945 | table entry.</para> |
946 | </listitem> | |
947 | </varlistentry> | |
948 | </variablelist> | |
949 | </refsect1> | |
950 | ||
951 | <refsect1> | |
952 | <title>Example</title> | |
953 | <example> | |
12b42c76 | 954 | <title>/etc/systemd/network/50-static.network</title> |
798d3a52 ZJS |
955 | |
956 | <programlisting>[Match] | |
eac684ef TG |
957 | Name=enp2s0 |
958 | ||
959 | [Network] | |
960 | Address=192.168.0.15/24 | |
961 | Gateway=192.168.0.1</programlisting> | |
798d3a52 | 962 | </example> |
eac684ef | 963 | |
798d3a52 | 964 | <example> |
12b42c76 | 965 | <title>/etc/systemd/network/80-dhcp.network</title> |
eac684ef | 966 | |
798d3a52 | 967 | <programlisting>[Match] |
eac684ef TG |
968 | Name=en* |
969 | ||
970 | [Network] | |
9c8ca3f7 | 971 | DHCP=yes</programlisting> |
798d3a52 | 972 | </example> |
eac684ef | 973 | |
798d3a52 | 974 | <example> |
6c1695be | 975 | <title>/etc/systemd/network/25-bridge-static.network</title> |
f47c5c47 | 976 | |
798d3a52 | 977 | <programlisting>[Match] |
f47c5c47 | 978 | Name=bridge0 |
979 | ||
980 | [Network] | |
981 | Address=192.168.0.15/24 | |
982 | Gateway=192.168.0.1 | |
983 | DNS=192.168.0.1</programlisting> | |
798d3a52 | 984 | </example> |
f47c5c47 | 985 | |
798d3a52 | 986 | <example> |
6c1695be | 987 | <title>/etc/systemd/network/25-bridge-slave-interface.network</title> |
f47c5c47 | 988 | |
798d3a52 | 989 | <programlisting>[Match] |
f47c5c47 | 990 | Name=enp2s0 |
991 | ||
992 | [Network] | |
993 | Bridge=bridge0</programlisting> | |
798d3a52 ZJS |
994 | </example> |
995 | <example> | |
6c1695be | 996 | <title>/etc/systemd/network/25-ipip.network</title> |
0a8a0fad | 997 | |
798d3a52 | 998 | <programlisting>[Match] |
0a8a0fad TG |
999 | Name=em1 |
1000 | ||
1001 | [Network] | |
1002 | Tunnel=ipip-tun</programlisting> | |
798d3a52 | 1003 | </example> |
0a8a0fad | 1004 | |
798d3a52 | 1005 | <example> |
6c1695be | 1006 | <title>/etc/systemd/network/25-sit.network</title> |
0a8a0fad | 1007 | |
798d3a52 | 1008 | <programlisting>[Match] |
0a8a0fad TG |
1009 | Name=em1 |
1010 | ||
1011 | [Network] | |
1012 | Tunnel=sit-tun</programlisting> | |
798d3a52 | 1013 | </example> |
0a8a0fad | 1014 | |
798d3a52 | 1015 | <example> |
6c1695be | 1016 | <title>/etc/systemd/network/25-gre.network</title> |
0a8a0fad | 1017 | |
798d3a52 | 1018 | <programlisting>[Match] |
0a8a0fad TG |
1019 | Name=em1 |
1020 | ||
1021 | [Network] | |
1022 | Tunnel=gre-tun</programlisting> | |
798d3a52 | 1023 | </example> |
0a8a0fad | 1024 | |
798d3a52 | 1025 | <example> |
6c1695be | 1026 | <title>/etc/systemd/network/25-vti.network</title> |
0a8a0fad | 1027 | |
798d3a52 | 1028 | <programlisting>[Match] |
0a8a0fad TG |
1029 | Name=em1 |
1030 | ||
1031 | [Network] | |
1032 | Tunnel=vti-tun</programlisting> | |
798d3a52 | 1033 | </example> |
d94facdc MH |
1034 | |
1035 | <example> | |
6c1695be | 1036 | <title>/etc/systemd/network/25-bond.network</title> |
d94facdc MH |
1037 | |
1038 | <programlisting>[Match] | |
1039 | Name=bond1 | |
1040 | ||
1041 | [Network] | |
1042 | DHCP=yes | |
1043 | </programlisting> | |
1044 | </example> | |
1045 | ||
798d3a52 ZJS |
1046 | </refsect1> |
1047 | ||
1048 | <refsect1> | |
1049 | <title>See Also</title> | |
1050 | <para> | |
1051 | <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>, | |
f41b446a | 1052 | <citerefentry><refentrytitle>systemd-networkd.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>, |
798d3a52 | 1053 | <citerefentry><refentrytitle>systemd.link</refentrytitle><manvolnum>5</manvolnum></citerefentry>, |
aaa297d4 LP |
1054 | <citerefentry><refentrytitle>systemd.netdev</refentrytitle><manvolnum>5</manvolnum></citerefentry>, |
1055 | <citerefentry><refentrytitle>systemd-resolved.service</refentrytitle><manvolnum>8</manvolnum></citerefentry> | |
798d3a52 ZJS |
1056 | </para> |
1057 | </refsect1> | |
eac684ef TG |
1058 | |
1059 | </refentry> |