]> git.ipfire.org Git - thirdparty/systemd.git/blame - man/systemd.network.xml
Merge pull request #3156 from keszybz/duid-settings
[thirdparty/systemd.git] / man / systemd.network.xml
CommitLineData
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>
439689c6
SS
205 <para>Note that if IPv6 is enabled on the interface, and the MTU is chosen
206 below 1280 (the minimum MTU for IPv6) it will automatically be increased to this value.</para>
798d3a52
ZJS
207 </listitem>
208 </varlistentry>
413708d1 209 <varlistentry>
1db30aea 210 <term><varname>IAID=</varname></term>
413708d1
VK
211 <listitem>
212 <para>Identity Association Identifier for the interface, a 32-bit unsigned integer.</para>
213 </listitem>
214 </varlistentry>
439689c6
SS
215 <varlistentry>
216 <listitem>
217 <para>Note that an interface without any static IPv6 addresses configured, and neither
218 DHCPv6 nor IPv6LL enabled, shall be considered to have no IPv6 support. IPv6 will be
219 automatically disabled for that interface by writing "1" to
4f25723c 220 <filename>/proc/sys/net/ipv6/conf/<replaceable>ifname</replaceable>/disable_ipv6</filename>.
439689c6
SS
221 </para>
222 </listitem>
223 </varlistentry>
798d3a52
ZJS
224 </variablelist>
225 </refsect1>
226
227 <refsect1>
228 <title>[Network] Section Options</title>
229
230 <para>The <literal>[Network]</literal> section accepts the following keys:</para>
231
232 <variablelist class='network-directives'>
233 <varlistentry>
234 <term><varname>Description=</varname></term>
235 <listitem>
236 <para>A description of the device. This is only used for
237 presentation purposes.</para>
238 </listitem>
239 </varlistentry>
240 <varlistentry>
241 <term><varname>DHCP=</varname></term>
242 <listitem>
ad943783 243 <para>Enables DHCPv4 and/or DHCPv6 client support. Accepts
798d3a52
ZJS
244 <literal>yes</literal>, <literal>no</literal>,
245 <literal>ipv4</literal>, or <literal>ipv6</literal>.</para>
e88d8021 246
f5a8c43f 247 <para>Note that DHCPv6 will by default be triggered by Router
7f3fdb7f 248 Advertisement, if that is enabled, regardless of this parameter.
f5a8c43f
TG
249 By enabling DHCPv6 support explicitly, the DHCPv6 client will
250 be started regardless of the presence of routers on the link,
251 or what flags the routers pass. See
252 <literal>IPv6AcceptRouterAdvertisements=</literal>.</para>
253
254 <para>Furthermore, note that by default the domain name
e88d8021
ZJS
255 specified through DHCP is not used for name resolution.
256 See option <option>UseDomains=</option> below.</para>
798d3a52
ZJS
257 </listitem>
258 </varlistentry>
259 <varlistentry>
260 <term><varname>DHCPServer=</varname></term>
261 <listitem>
ad943783
LP
262 <para>A boolean. Enables DHCPv4 server support. Defaults
263 to <literal>no</literal>. Further settings for the DHCP
264 server may be set in the <literal>[DHCPServer]</literal>
265 section described below.</para>
798d3a52
ZJS
266 </listitem>
267 </varlistentry>
268 <varlistentry>
56fd6bf7 269 <term><varname>LinkLocalAddressing=</varname></term>
798d3a52 270 <listitem>
d0d6a4cd
TG
271 <para>Enables link-local address autoconfiguration. Accepts
272 <literal>yes</literal>, <literal>no</literal>,
273 <literal>ipv4</literal>, or <literal>ipv6</literal>. Defaults to
274 <literal>ipv6</literal>.</para>
798d3a52
ZJS
275 </listitem>
276 </varlistentry>
277 <varlistentry>
278 <term><varname>IPv4LLRoute=</varname></term>
279 <listitem>
280 <para>A boolean. When true, sets up the route needed for
281 non-IPv4LL hosts to communicate with IPv4LL-only hosts. Defaults
282 to false.
283 </para>
284 </listitem>
285 </varlistentry>
286 <varlistentry>
113bfde1
TG
287 <term><varname>IPv6Token=</varname></term>
288 <listitem>
289 <para>An IPv6 address with the top 64 bits unset. When set, indicates the
eb142d8e
TG
290 64-bit interface part of SLAAC IPv6 addresses for this link. Note that
291 the token is only ever used for SLAAC, and not for DHCPv6 addresses, even
3708bd46 292 in the case DHCP is requested by router advertisement. By default, the
eb142d8e 293 token is autogenerated.</para>
113bfde1
TG
294 </listitem>
295 </varlistentry>
296 <varlistentry>
798d3a52
ZJS
297 <term><varname>LLMNR=</varname></term>
298 <listitem>
aaa297d4
LP
299 <para>A boolean or <literal>resolve</literal>. When true,
300 enables <ulink
301 url="https://tools.ietf.org/html/rfc4795">Link-Local
302 Multicast Name Resolution</ulink> on the link. When set to
303 <literal>resolve</literal>, only resolution is enabled,
304 but not host registration and announcement. Defaults to
305 true. This setting is read by
306 <citerefentry><refentrytitle>systemd-resolved.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>.</para>
307 </listitem>
308 </varlistentry>
309 <varlistentry>
310 <term><varname>MulticastDNS=</varname></term>
311 <listitem>
312 <para>A boolean or <literal>resolve</literal>. When true,
313 enables <ulink
314 url="https://tools.ietf.org/html/rfc6762">Multicast
315 DNS</ulink> support on the link. When set to
316 <literal>resolve</literal>, only resolution is enabled,
317 but not host or service registration and
318 announcement. Defaults to false. This setting is read by
319 <citerefentry><refentrytitle>systemd-resolved.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>.</para>
798d3a52
ZJS
320 </listitem>
321 </varlistentry>
ad6c0475
LP
322 <varlistentry>
323 <term><varname>DNSSEC=</varname></term>
324 <listitem>
325 <para>A boolean or
326 <literal>allow-downgrade</literal>. When true, enables
327 <ulink
328 url="https://tools.ietf.org/html/rfc4033">DNSSEC</ulink>
329 DNS validation support on the link. When set to
330 <literal>allow-downgrade</literal>, compatibility with
331 non-DNSSEC capable networks is increased, by automatically
332 turning off DNSEC in this case. This option defines a
333 per-interface setting for
334 <citerefentry><refentrytitle>resolved.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>'s
335 global <varname>DNSSEC=</varname> option. Defaults to
336 false. This setting is read by
337 <citerefentry><refentrytitle>systemd-resolved.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>.</para>
338 </listitem>
339 </varlistentry>
8a516214
LP
340 <varlistentry>
341 <term><varname>DNSSECNegativeTrustAnchors=</varname></term>
342 <listitem><para>A space-separated list of DNSSEC negative
343 trust anchor domains. If specified and DNSSEC is enabled,
344 look-ups done via the interface's DNS server will be subject
345 to the list of negative trust anchors, and not require
346 authentication for the specified domains, or anything below
347 it. Use this to disable DNSSEC authentication for specific
348 private domains, that cannot be proven valid using the
349 Internet DNS hierarchy. Defaults to the empty list. This
350 setting is read by
351 <citerefentry><refentrytitle>systemd-resolved.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>.</para>
352 </listitem>
353 </varlistentry>
798d3a52
ZJS
354 <varlistentry>
355 <term><varname>LLDP=</varname></term>
356 <listitem>
da6c766d
LP
357 <para>Controls support for Ethernet LLDP packet reception. LLDP is a link-layer protocol commonly
358 implemented on professional routers and bridges which announces which physical port a system is connected
359 to, as well as other related data. Accepts a boolean or the special value
34437b4f
LP
360 <literal>routers-only</literal>. When true, incoming LLDP packets are accepted and a database of all LLDP
361 neighbors maintained. If <literal>routers-only</literal> is set only LLDP data of various types of routers
362 is collected and LLDP data about other types of devices ignored (such as stations, telephones and
7cececb2 363 others). If false, LLDP reception is disabled. Defaults to <literal>routers-only</literal>. Use
34437b4f 364 <citerefentry><refentrytitle>networkctl</refentrytitle><manvolnum>1</manvolnum></citerefentry> to query the
da6c766d
LP
365 collected neighbor data. LLDP is only available on Ethernet links. See <varname>EmitLLDP=</varname> below
366 for enabling LLDP packet emission from the local system.
798d3a52
ZJS
367 </para>
368 </listitem>
369 </varlistentry>
da6c766d
LP
370 <varlistentry>
371 <term><varname>EmitLLDP=</varname></term>
372 <listitem>
373 <para>Controls support for Ethernet LLDP packet emission. Accepts a boolean parameter and defaults to
374 false. If enabled a short LLDP packet with information about the local system is sent out in regular
375 intervals on the link. The LLDP packet will contain information about the local host name, the local
376 machine ID (as stored in
377 <citerefentry><refentrytitle>machine-id</refentrytitle><manvolnum>5</manvolnum></citerefentry>) and the
378 local interface name, as well as the pretty hostname of the system (as set in
379 <citerefentry><refentrytitle>machine-info</refentrytitle><manvolnum>5</manvolnum></citerefentry>). LLDP
380 emission is only available on Ethernet links. Note that this setting passed data suitable for
381 identification of host to the network and should thus not be used on untrusted networks, where such
382 identification data should not be made available. Use this option to enable other systems to identify on
383 which interface they are connected to this system. See <varname>LLDP=</varname> above for an option to
384 enable LLDP reception.</para>
385 </listitem>
386 </varlistentry>
0d4ad91d
AR
387 <varlistentry>
388 <term><varname>BindCarrier=</varname></term>
389 <listitem>
2ae7505f
TG
390 <para>A link name or a list of link names. When set, controls the behavior of the current
391 link. When all links in the list are in an operational down state, the current link is brought
392 down. When at least one link has carrier, the current interface is brought up.
0d4ad91d
AR
393 </para>
394 </listitem>
395 </varlistentry>
798d3a52
ZJS
396 <varlistentry>
397 <term><varname>Address=</varname></term>
398 <listitem>
399 <para>A static IPv4 or IPv6 address and its prefix length,
400 separated by a <literal>/</literal> character. Specify
401 this key more than once to configure several addresses.
402 The format of the address must be as described in
3ba3a79d 403 <citerefentry project='man-pages'><refentrytitle>inet_pton</refentrytitle><manvolnum>3</manvolnum></citerefentry>.
798d3a52
ZJS
404 This is a short-hand for an [Address] section only
405 containing an Address key (see below). This option may be
406 specified more than once.
407 </para>
408
409 <para>If the specified address is 0.0.0.0 (for IPv4) or
410 [::] (for IPv6), a new address range of the requested size
411 is automatically allocated from a system-wide pool of
412 unused ranges. The allocated range is checked against all
413 current network interfaces and all known network
414 configuration files to avoid address range conflicts. The
415 default system-wide pool consists of 192.168.0.0/16,
416 172.16.0.0/12 and 10.0.0.0/8 for IPv4, and fc00::/7 for
417 IPv6. This functionality is useful to manage a large
418 number of dynamically created network interfaces with the
419 same network configuration and automatic address range
420 assignment.</para>
421
422 </listitem>
423 </varlistentry>
424 <varlistentry>
425 <term><varname>Gateway=</varname></term>
426 <listitem>
427 <para>The gateway address, which must be in the format
428 described in
3ba3a79d 429 <citerefentry project='man-pages'><refentrytitle>inet_pton</refentrytitle><manvolnum>3</manvolnum></citerefentry>.
798d3a52
ZJS
430 This is a short-hand for a [Route] section only containing
431 a Gateway key. This option may be specified more than
432 once.</para>
433 </listitem>
434 </varlistentry>
435 <varlistentry>
436 <term><varname>DNS=</varname></term>
437 <listitem>
438 <para>A DNS server address, which must be in the format
439 described in
3ba3a79d 440 <citerefentry project='man-pages'><refentrytitle>inet_pton</refentrytitle><manvolnum>3</manvolnum></citerefentry>.
f41b446a 441 This option may be specified more than once. This setting is read by
3df9bec5 442 <citerefentry><refentrytitle>systemd-resolved.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>.</para>
798d3a52
ZJS
443 </listitem>
444 </varlistentry>
445 <varlistentry>
446 <term><varname>Domains=</varname></term>
447 <listitem>
3df9bec5
LP
448 <para>The domains used for DNS host name resolution on this link. Takes a list of DNS domain names which
449 are used as search suffixes for extending single-label host names (host names containing no dots) to become
450 fully qualified domain names (FQDNs). If a single-label host name is resolved on this interface, each of
451 the specified search domains are appended to it in turn, converting it into a fully qualified domain name,
452 until one of them may be successfully resolved.</para>
453
454 <para>The specified domains are also used for routing of DNS queries: look-ups for host names ending in the
455 domains specified here are preferably routed to the DNS servers configured for this interface. If a domain
456 name is prefixed with <literal>~</literal>, the domain name becomes a pure "routing" domain, is used for
457 DNS query routing purposes only and is not used in the described domain search logic. By specifying a
07ff561c 458 routing domain of <literal>~.</literal> (the tilde indicating definition of a routing domain, the dot
3df9bec5
LP
459 referring to the DNS root domain which is the implied suffix of all valid DNS names) it is possible to
460 route all DNS traffic preferably to the DNS server specified for this interface. The route domain logic is
461 particularly useful on multi-homed hosts with DNS servers serving particular private DNS zones on each
462 interface.</para>
463
464 <para>This setting is read by
465 <citerefentry><refentrytitle>systemd-resolved.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>.</para>
798d3a52
ZJS
466 </listitem>
467 </varlistentry>
468 <varlistentry>
469 <term><varname>NTP=</varname></term>
470 <listitem>
f41b446a 471 <para>An NTP server address. This option may be specified more than once. This setting is read by
3df9bec5 472 <citerefentry><refentrytitle>systemd-timesyncd.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>.</para>
798d3a52
ZJS
473 </listitem>
474 </varlistentry>
475 <varlistentry>
476 <term><varname>IPForward=</varname></term>
765afd5c
LP
477 <listitem><para>Configures IP packet forwarding for the
478 system. If enabled, incoming packets on any network
479 interface will be forwarded to any other interfaces
480 according to the routing table. Takes either a boolean
481 argument, or the values <literal>ipv4</literal> or
482 <literal>ipv6</literal>, which only enable IP packet
483 forwarding for the specified address family. This controls
484 the <filename>net.ipv4.ip_forward</filename> and
485 <filename>net.ipv6.conf.all.forwarding</filename> sysctl
486 options of the network interface (see <ulink
4046d836
LP
487 url="https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt">ip-sysctl.txt</ulink>
488 for details about sysctl options). Defaults to
489 <literal>no</literal>.</para>
490
765afd5c
LP
491 <para>Note: this setting controls a global kernel option,
492 and does so one way only: if a network that has this setting
493 enabled is set up the global setting is turned on. However,
494 it is never turned off again, even after all networks with
495 this setting enabled are shut down again.</para>
496
497 <para>To allow IP packet forwarding only between specific
498 network interfaces use a firewall.</para>
4046d836 499 </listitem>
798d3a52
ZJS
500 </varlistentry>
501 <varlistentry>
502 <term><varname>IPMasquerade=</varname></term>
503 <listitem><para>Configures IP masquerading for the network
b938cb90 504 interface. If enabled, packets forwarded from the network
798d3a52
ZJS
505 interface will be appear as coming from the local host.
506 Takes a boolean argument. Implies
5c82dd13 507 <varname>IPForward=ipv4</varname>. Defaults to
4046d836 508 <literal>no</literal>.</para></listitem>
798d3a52 509 </varlistentry>
a46e37cb
SS
510 <varlistentry>
511 <term><varname>IPv6PrivacyExtensions=</varname></term>
1f0d9695
LP
512 <listitem><para>Configures use of stateless temporary
513 addresses that change over time (see <ulink
514 url="https://tools.ietf.org/html/rfc4941">RFC 4941</ulink>,
515 Privacy Extensions for Stateless Address Autoconfiguration
516 in IPv6). Takes a boolean or the special values
517 <literal>prefer-public</literal> and
b938cb90 518 <literal>kernel</literal>. When true, enables the privacy
1f0d9695 519 extensions and prefers temporary addresses over public
b938cb90 520 addresses. When <literal>prefer-public</literal>, enables the
1f0d9695
LP
521 privacy extensions, but prefers public addresses over
522 temporary addresses. When false, the privacy extensions
b938cb90 523 remain disabled. When <literal>kernel</literal>, the kernel's
1f0d9695 524 default setting will be left in place. Defaults to
a46e37cb
SS
525 <literal>no</literal>.</para></listitem>
526 </varlistentry>
941d0aa8
SS
527 <varlistentry>
528 <term><varname>IPv6AcceptRouterAdvertisements=</varname></term>
a8eaaee7 529 <listitem><para>Force the setting of the <filename>accept_ra</filename>
ebf98081
ZJS
530 (router advertisements) setting for the interface.
531 When unset, the kernel default is used, and router
532 advertisements are accepted only when local forwarding
533 is disabled for that interface.
f5a8c43f
TG
534 When router advertisements are accepted, they will
535 trigger the start of the DHCPv6 client if the relevant
536 flags are passed, or if no routers are found on the link.
ebf98081
ZJS
537 Takes a boolean. If true, router advertisements are
538 accepted, when false, router advertisements are ignored,
539 independently of the local forwarding state.</para>
540
541 <para>See
542 <ulink url="https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt">ip-sysctl.txt</ulink>
543 in the kernel documentation, but note that systemd's
544 setting of <constant>1</constant> corresponds to
545 kernel's setting of <constant>2</constant>.</para>
546 </listitem>
941d0aa8 547 </varlistentry>
44de7fb1
SS
548 <varlistentry>
549 <term><varname>IPv6DuplicateAddressDetection=</varname></term>
a8eaaee7
JE
550 <listitem><para>Configures the amount of IPv6 Duplicate
551 Address Detection (DAD) probes to send. Defaults to unset.
44de7fb1
SS
552 </para></listitem>
553 </varlistentry>
a86cba89
SS
554 <varlistentry>
555 <term><varname>IPv6HopLimit=</varname></term>
556 <listitem><para>Configures IPv6 Hop Limit. For each router that
557 forwards the packet, the hop limit is decremented by 1. When the
558 hop limit field reaches zero, the packet is discarded.
559 Defaults to unset.
560 </para></listitem>
561 </varlistentry>
23d8b221
SS
562 <varlistentry>
563 <term><varname>ProxyARP=</varname></term>
564 <listitem><para>A boolean. Configures proxy ARP. Proxy ARP is the technique in which one host,
565 usually a router, answers ARP requests intended for another machine. By "faking" its identity,
566 the router accepts responsibility for routing packets to the "real" destination. (see <ulink
567 url="https://tools.ietf.org/html/rfc1027">RFC 1027</ulink>.
568 Defaults to unset.
569 </para></listitem>
570 </varlistentry>
798d3a52
ZJS
571 <varlistentry>
572 <term><varname>Bridge=</varname></term>
573 <listitem>
574 <para>The name of the bridge to add the link to.</para>
575 </listitem>
576 </varlistentry>
577 <varlistentry>
578 <term><varname>Bond=</varname></term>
579 <listitem>
580 <para>The name of the bond to add the link to.</para>
581 </listitem>
582 </varlistentry>
583 <varlistentry>
584 <term><varname>VLAN=</varname></term>
585 <listitem>
586 <para>The name of a VLAN to create on the link. This
587 option may be specified more than once.</para>
588 </listitem>
589 </varlistentry>
590 <varlistentry>
591 <term><varname>MACVLAN=</varname></term>
592 <listitem>
593 <para>The name of a MACVLAN to create on the link. This
594 option may be specified more than once.</para>
595 </listitem>
596 </varlistentry>
597 <varlistentry>
598 <term><varname>VXLAN=</varname></term>
599 <listitem>
600 <para>The name of a VXLAN to create on the link. This
601 option may be specified more than once.</para>
602 </listitem>
603 </varlistentry>
604 <varlistentry>
605 <term><varname>Tunnel=</varname></term>
606 <listitem>
607 <para>The name of a Tunnel to create on the link. This
608 option may be specified more than once.</para>
609 </listitem>
610 </varlistentry>
611 </variablelist>
612
613 </refsect1>
614
615 <refsect1>
616 <title>[Address] Section Options</title>
617
618 <para>An <literal>[Address]</literal> section accepts the
619 following keys. Specify several <literal>[Address]</literal>
620 sections to configure several addresses.</para>
621
622 <variablelist class='network-directives'>
623 <varlistentry>
624 <term><varname>Address=</varname></term>
625 <listitem>
626 <para>As in the <literal>[Network]</literal> section. This
627 key is mandatory.</para>
628 </listitem>
629 </varlistentry>
630 <varlistentry>
631 <term><varname>Peer=</varname></term>
632 <listitem>
633 <para>The peer address in a point-to-point connection.
634 Accepts the same format as the <literal>Address</literal>
635 key.</para>
636 </listitem>
637 </varlistentry>
638 <varlistentry>
639 <term><varname>Broadcast=</varname></term>
640 <listitem>
641 <para>The broadcast address, which must be in the format
642 described in
3ba3a79d 643 <citerefentry project='man-pages'><refentrytitle>inet_pton</refentrytitle><manvolnum>3</manvolnum></citerefentry>.
798d3a52
ZJS
644 This key only applies to IPv4 addresses. If it is not
645 given, it is derived from the <literal>Address</literal>
646 key.</para>
647 </listitem>
648 </varlistentry>
649 <varlistentry>
650 <term><varname>Label=</varname></term>
651 <listitem>
652 <para>An address label.</para>
653 </listitem>
654 </varlistentry>
b5834a0b
SS
655 <varlistentry>
656 <term><varname>PreferredLifetime=</varname></term>
657 <listitem>
658 <para>Allows the default "preferred lifetime" of the address to be overridden.
659 Only three settings are accepted: <literal>forever</literal> or <literal>infinity</literal>
660 which is the default and means that the address never expires, and <literal>0</literal> which means
661 that the address is considered immediately "expired" and will not be used,
662 unless explicitly requested. A setting of PreferredLifetime=0 is useful for
663 addresses which are added to be used only by a specific application,
664 which is then configured to use them explicitly.</para>
665 </listitem>
666 </varlistentry>
798d3a52
ZJS
667 </variablelist>
668 </refsect1>
669
670 <refsect1>
671 <title>[Route] Section Options</title>
672 <para>The <literal>[Route]</literal> section accepts the
673 following keys. Specify several <literal>[Route]</literal>
674 sections to configure several routes.</para>
675
676 <variablelist class='network-directives'>
677 <varlistentry>
678 <term><varname>Gateway=</varname></term>
679 <listitem>
680 <para>As in the <literal>[Network]</literal> section.</para>
681 </listitem>
682 </varlistentry>
683 <varlistentry>
684 <term><varname>Destination=</varname></term>
685 <listitem>
686 <para>The destination prefix of the route. Possibly
b938cb90 687 followed by a slash and the prefix length. If omitted, a
798d3a52
ZJS
688 full-length host route is assumed.</para>
689 </listitem>
690 </varlistentry>
691 <varlistentry>
692 <term><varname>Source=</varname></term>
693 <listitem>
694 <para>The source prefix of the route. Possibly followed by
b938cb90 695 a slash and the prefix length. If omitted, a full-length
798d3a52
ZJS
696 host route is assumed.</para>
697 </listitem>
698 </varlistentry>
699 <varlistentry>
700 <term><varname>Metric=</varname></term>
701 <listitem>
b938cb90 702 <para>The metric of the route (an unsigned integer).</para>
798d3a52
ZJS
703 </listitem>
704 </varlistentry>
769b56a3
TG
705 <varlistentry>
706 <term><varname>Scope=</varname></term>
707 <listitem>
a8eaaee7 708 <para>The scope of the route, which can be <literal>global</literal>,
769b56a3
TG
709 <literal>link</literal> or <literal>host</literal>. Defaults to
710 <literal>global</literal>.</para>
711 </listitem>
0d07e595
JK
712 </varlistentry>
713 <varlistentry>
714 <term><varname>PreferredSource=</varname></term>
715 <listitem>
716 <para>The preferred source address of the route. The address
717 must be in the format described in
718 <citerefentry project='man-pages'><refentrytitle>inet_pton</refentrytitle><manvolnum>3</manvolnum></citerefentry>.</para>
719 </listitem>
769b56a3 720 </varlistentry>
c953b24c
SS
721 <varlistentry>
722 <term><varname>Table=<replaceable>num</replaceable></varname></term>
723 <listitem>
724 <para>The table identifier for the route (a number between 1 and 4294967295, or 0 to unset).
725 The table can be retrieved using <command>ip route show table <replaceable>num</replaceable></command>.
726 </para>
727 </listitem>
728 </varlistentry>
798d3a52
ZJS
729 </variablelist>
730 </refsect1>
731
732 <refsect1>
733 <title>[DHCP] Section Options</title>
ad943783
LP
734 <para>The <literal>[DHCP]</literal> section configures the
735 DHCPv4 and DHCP6 client, if it is enabled with the
736 <varname>DHCP=</varname> setting described above:</para>
798d3a52
ZJS
737
738 <variablelist class='network-directives'>
739 <varlistentry>
740 <term><varname>UseDNS=</varname></term>
741 <listitem>
742 <para>When true (the default), the DNS servers received
743 from the DHCP server will be used and take precedence over
744 any statically configured ones.</para>
e88d8021
ZJS
745
746 <para>This corresponds to the <option>nameserver</option>
ad943783
LP
747 option in <citerefentry
748 project='man-pages'><refentrytitle>resolv.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>.</para>
798d3a52
ZJS
749 </listitem>
750 </varlistentry>
301f4073
MM
751 <varlistentry>
752 <term><varname>UseNTP=</varname></term>
753 <listitem>
754 <para>When true (the default), the NTP servers received
755 from the DHCP server will be used by systemd-timesyncd
756 and take precedence over any statically configured ones.</para>
757 </listitem>
758 </varlistentry>
798d3a52
ZJS
759 <varlistentry>
760 <term><varname>UseMTU=</varname></term>
761 <listitem>
762 <para>When true, the interface maximum transmission unit
763 from the DHCP server will be used on the current link.
764 Defaults to false.</para>
765 </listitem>
766 </varlistentry>
767 <varlistentry>
768 <term><varname>SendHostname=</varname></term>
769 <listitem>
d59be2cf
ZJS
770 <para>When true (the default), the machine's hostname will
771 be sent to the DHCP server.</para>
798d3a52
ZJS
772 </listitem>
773 </varlistentry>
774 <varlistentry>
775 <term><varname>UseHostname=</varname></term>
776 <listitem>
777 <para>When true (the default), the hostname received from
ad943783 778 the DHCP server will be set as the transient hostname of the system
d59be2cf 779 </para>
798d3a52
ZJS
780 </listitem>
781 </varlistentry>
1adc5d0b
SS
782 <varlistentry>
783 <term><varname>Hostname=</varname></term>
784 <listitem>
d59be2cf
ZJS
785 <para>Use this value for the hostname which is sent to the
786 DHCP server, instead of machine's hostname.</para>
1adc5d0b
SS
787 </listitem>
788 </varlistentry>
798d3a52
ZJS
789 <varlistentry>
790 <term><varname>UseDomains=</varname></term>
791 <listitem>
07ff561c 792 <para>Takes a boolean argument, or the special value <literal>route</literal>. When true, the domain name
b2a81c0b
LP
793 received from the DHCP server will be used as DNS search domain over this link, similar to the effect of
794 the <option>Domains=</option> setting. If set to <literal>route</literal>, the domain name received from
795 the DHCP server will be used for routing DNS queries only, but not for searching, similar to the effect of
796 the <option>Domains=</option> setting when the argument is prefixed with <literal>~</literal>. Defaults to
797 false.</para>
798
799 <para>It is recommended to enable this option only on trusted networks, as setting this affects resolution
800 of all host names, in particular to single-label names. It is generally safer to use the supplied domain
801 only as routing domain, rather than as search domain, in order to not have it affect local resolution of
802 single-label names.</para>
803
804 <para>When set to true, this setting corresponds to the <option>domain</option> option in <citerefentry
805 project='man-pages'><refentrytitle>resolv.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>.</para>
798d3a52
ZJS
806 </listitem>
807 </varlistentry>
808 <varlistentry>
809 <term><varname>UseRoutes=</varname></term>
810 <listitem>
811 <para>When true (the default), the static routes will be
812 requested from the DHCP server and added to the routing
a8eaaee7 813 table with a metric of 1024.</para>
798d3a52
ZJS
814 </listitem>
815 </varlistentry>
ad943783
LP
816
817 <varlistentry>
818 <term><varname>UseTimezone=</varname></term>
819
820 <listitem><para>When true, the timezone received from the
7f3fdb7f 821 DHCP server will be set as timezone of the local
ad943783
LP
822 system. Defaults to <literal>no</literal>.</para></listitem>
823 </varlistentry>
824
798d3a52
ZJS
825 <varlistentry>
826 <term><varname>CriticalConnection=</varname></term>
827 <listitem>
828 <para>When true, the connection will never be torn down
829 even if the DHCP lease expires. This is contrary to the
830 DHCP specification, but may be the best choice if, say,
831 the root filesystem relies on this connection. Defaults to
832 false.</para>
833 </listitem>
834 </varlistentry>
e2e08e77 835
3e43b2cd
JJ
836 <varlistentry>
837 <term><varname>ClientIdentifier=</varname></term>
838 <listitem>
076ea6f6
LP
839 <para>The DHCPv4 client identifier to use. Either <literal>mac</literal> to use the MAC address of the link
840 or <literal>duid</literal> (the default, see below) to use a RFC4361-compliant Client ID.</para>
3e43b2cd
JJ
841 </listitem>
842 </varlistentry>
e2e08e77 843
798d3a52
ZJS
844 <varlistentry>
845 <term><varname>VendorClassIdentifier=</varname></term>
846 <listitem>
847 <para>The vendor class identifier used to identify vendor
848 type and configuration.</para>
849 </listitem>
850 </varlistentry>
076ea6f6 851
e2e08e77
ZJS
852 <varlistentry>
853 <term><varname>DUIDType=</varname></term>
854 <listitem>
855 <para>Override the global <varname>DUIDType</varname> setting for this network. See
856 <citerefentry><refentrytitle>networkd.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>
857 for a description of possible values.</para>
858 </listitem>
859 </varlistentry>
076ea6f6 860
e2e08e77
ZJS
861 <varlistentry>
862 <term><varname>DUIDRawData=</varname></term>
863 <listitem>
864 <para>Override the global <varname>DUIDRawData</varname> setting for this network. See
865 <citerefentry><refentrytitle>networkd.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>
866 for a description of possible values.</para>
076ea6f6
LP
867 </listitem>
868 </varlistentry>
e2e08e77 869
798d3a52
ZJS
870 <varlistentry>
871 <term><varname>RequestBroadcast=</varname></term>
872 <listitem>
873 <para>Request the server to use broadcast messages before
874 the IP address has been configured. This is necessary for
875 devices that cannot receive RAW packets, or that cannot
876 receive packets at all before an IP address has been
877 configured. On the other hand, this must not be enabled on
878 networks where broadcasts are filtered out.</para>
879 </listitem>
880 </varlistentry>
e2e08e77 881
798d3a52
ZJS
882 <varlistentry>
883 <term><varname>RouteMetric=</varname></term>
884 <listitem>
885 <para>Set the routing metric for routes specified by the
886 DHCP server.</para>
887 </listitem>
888 </varlistentry>
ad943783 889 </variablelist>
076ea6f6 890 </refsect1>
413708d1 891
ad943783
LP
892 <refsect1>
893 <title>[DHCPServer] Section Options</title>
894 <para>The <literal>[DHCPServer]</literal> section contains
895 settings for the DHCP server, if enabled via the
896 <varname>DHCPServer=</varname> option described above:</para>
897
898 <variablelist class='network-directives'>
899
9b3a67c5
TG
900 <varlistentry>
901 <term><varname>PoolOffset=</varname></term>
902 <term><varname>PoolSize=</varname></term>
903
904 <listitem><para>Configures the pool of addresses to hand out. The pool
905 is a contiguous sequence of IP addresses in the subnet configured for
906 the server address, which does not include the subnet nor the broadcast
907 address. <varname>PoolOffset=</varname> takes the offset of the pool
908 from the start of subnet, or zero to use the default value.
909 <varname>PoolSize=</varname> takes the number of IP addresses in the
b938cb90 910 pool or zero to use the default value. By default, the pool starts at
9b3a67c5
TG
911 the first address after the subnet address and takes up the rest of
912 the subnet, excluding the broadcast address. If the pool includes
913 the server address (the default), this is reserved and not handed
914 out to clients.</para></listitem>
915 </varlistentry>
916
ad943783
LP
917 <varlistentry>
918 <term><varname>DefaultLeaseTimeSec=</varname></term>
919 <term><varname>MaxLeaseTimeSec=</varname></term>
920
921 <listitem><para>Control the default and maximum DHCP lease
922 time to pass to clients. These settings take time values in seconds or
923 another common time unit, depending on the suffix. The default
924 lease time is used for clients that did not ask for a specific
925 lease time. If a client asks for a lease time longer than the
b938cb90 926 maximum lease time, it is automatically shortened to the
ad943783
LP
927 specified time. The default lease time defaults to 1h, the
928 maximum lease time to 12h. Shorter lease times are beneficial
929 if the configuration data in DHCP leases changes frequently
930 and clients shall learn the new settings with shorter
931 latencies. Longer lease times reduce the generated DHCP
932 network traffic.</para></listitem>
933 </varlistentry>
934
935 <varlistentry>
936 <term><varname>EmitDNS=</varname></term>
937 <term><varname>DNS=</varname></term>
938
939 <listitem><para>Configures whether the DHCP leases handed out
940 to clients shall contain DNS server information. The
941 <varname>EmitDNS=</varname> setting takes a boolean argument
942 and defaults to <literal>yes</literal>. The DNS servers to
943 pass to clients may be configured with the
944 <varname>DNS=</varname> option, which takes a list of IPv4
945 addresses. If the <varname>EmitDNS=</varname> option is
b938cb90 946 enabled but no servers configured, the servers are
ad943783
LP
947 automatically propagated from an "uplink" interface that has
948 appropriate servers set. The "uplink" interface is determined
949 by the default route of the system with the highest
950 priority. Note that this information is acquired at the time
951 the lease is handed out, and does not take uplink interfaces
952 into account that acquire DNS or NTP server information at a
953 later point. DNS server propagation does not take
954 <filename>/etc/resolv.conf</filename> into account. Also, note
a8eaaee7 955 that the leases are not refreshed if the uplink network
ad943783 956 configuration changes. To ensure clients regularly acquire the
b938cb90 957 most current uplink DNS server information, it is thus
ad943783
LP
958 advisable to shorten the DHCP lease time via
959 <varname>MaxLeaseTimeSec=</varname> described
960 above.</para></listitem>
961 </varlistentry>
962
963 <varlistentry>
964 <term><varname>EmitNTP=</varname></term>
965 <term><varname>NTP=</varname></term>
966
967 <listitem><para>Similar to the <varname>EmitDNS=</varname> and
b938cb90 968 <varname>DNS=</varname> settings described above, these
ad943783
LP
969 settings configure whether and what NTP server information
970 shall be emitted as part of the DHCP lease. The same syntax,
971 propagation semantics and defaults apply as for
972 <varname>EmitDNS=</varname> and
973 <varname>DNS=</varname>.</para></listitem>
974 </varlistentry>
975
976 <varlistentry>
977 <term><varname>EmitTimezone=</varname></term>
978 <term><varname>Timezone=</varname></term>
979
980 <listitem><para>Configures whether the DHCP leases handed out
981 to clients shall contain timezone information. The
982 <varname>EmitTimezone=</varname> setting takes a boolean
983 argument and defaults to <literal>yes</literal>. The
984 <varname>Timezone=</varname> setting takes a timezone string
985 (such as <literal>Europe/Berlin</literal> or
986 <literal>UTC</literal>) to pass to clients. If no explicit
b938cb90 987 timezone is set, the system timezone of the local host is
ad943783
LP
988 propagated, as determined by the
989 <filename>/etc/localtime</filename> symlink.</para></listitem>
990 </varlistentry>
991
992 </variablelist>
993 </refsect1>
994
798d3a52
ZJS
995 <refsect1>
996 <title>[Bridge] Section Options</title>
997 <para>The <literal>[Bridge]</literal> section accepts the
998 following keys.</para>
999 <variablelist class='network-directives'>
165c41a9
SS
1000 <varlistentry>
1001 <term><varname>UnicastFlood=</varname></term>
1002 <listitem>
072f9e4a
ZJS
1003 <para>A boolean. Controls whether the bridge should flood
1004 traffic for which an FDB entry is missing and the destination
1005 is unknown through this port. Defaults to on.
47c7dfe2 1006 </para>
165c41a9
SS
1007 </listitem>
1008 </varlistentry>
1009 <varlistentry>
1010 <term><varname>HairPin=</varname></term>
1011 <listitem>
47c7dfe2
ZJS
1012 <para>A boolean. Configures whether traffic may be sent back
1013 out of the port on which it was received. By default, this
1014 flag is false, and the bridge will not forward traffic back
1015 out of the receiving port.</para>
165c41a9
SS
1016 </listitem>
1017 </varlistentry>
1018 <varlistentry>
84c34096 1019 <term><varname>UseBPDU=</varname></term>
165c41a9 1020 <listitem>
47c7dfe2 1021 <para>A boolean. Configures whether STP Bridge Protocol Data Units will be
84c34096 1022 processed by the bridge port. Defaults to yes.</para>
165c41a9
SS
1023 </listitem>
1024 </varlistentry>
1025 <varlistentry>
1026 <term><varname>FastLeave=</varname></term>
1027 <listitem>
47c7dfe2 1028 <para>A boolean. This flag allows the bridge to immediately stop multicast
a8eaaee7 1029 traffic on a port that receives an IGMP Leave message. It is only used with
47c7dfe2 1030 IGMP snooping if enabled on the bridge. Defaults to off.</para>
165c41a9
SS
1031 </listitem>
1032 </varlistentry>
1033 <varlistentry>
23da66bb 1034 <term><varname>AllowPortToBeRoot=</varname></term>
165c41a9 1035 <listitem>
47c7dfe2
ZJS
1036 <para>A boolean. Configures whether a given port is allowed to
1037 become a root port. Only used when STP is enabled on the bridge.
23da66bb 1038 Defaults to on.</para>
165c41a9
SS
1039 </listitem>
1040 </varlistentry>
798d3a52
ZJS
1041 <varlistentry>
1042 <term><varname>Cost=</varname></term>
1043 <listitem>
47c7dfe2 1044 <para>Sets the "cost" of sending packets of this interface.
a8eaaee7 1045 Each port in a bridge may have a different speed and the cost
798d3a52 1046 is used to decide which link to use. Faster interfaces
47c7dfe2 1047 should have lower costs.</para>
798d3a52
ZJS
1048 </listitem>
1049 </varlistentry>
1050 </variablelist>
1051 </refsect1>
798d3a52
ZJS
1052 <refsect1>
1053 <title>[BridgeFDB] Section Options</title>
1054 <para>The <literal>[BridgeFDB]</literal> section manages the
1055 forwarding database table of a port and accepts the following
1056 keys. Specify several <literal>[BridgeFDB]</literal> sections to
1057 configure several static MAC table entries.</para>
1058
1059 <variablelist class='network-directives'>
1060 <varlistentry>
1061 <term><varname>MACAddress=</varname></term>
1062 <listitem>
1063 <para>As in the <literal>[Network]</literal> section. This
1064 key is mandatory.</para>
1065 </listitem>
1066 </varlistentry>
1067 <varlistentry>
1068 <term><varname>VLANId=</varname></term>
1069 <listitem>
a8eaaee7
JE
1070 <para>The VLAN ID for the new static MAC table entry. If
1071 omitted, no VLAN ID info is appended to the new static MAC
798d3a52
ZJS
1072 table entry.</para>
1073 </listitem>
1074 </varlistentry>
1075 </variablelist>
1076 </refsect1>
1077
1078 <refsect1>
1079 <title>Example</title>
1080 <example>
12b42c76 1081 <title>/etc/systemd/network/50-static.network</title>
798d3a52
ZJS
1082
1083 <programlisting>[Match]
eac684ef
TG
1084Name=enp2s0
1085
1086[Network]
1087Address=192.168.0.15/24
1088Gateway=192.168.0.1</programlisting>
798d3a52 1089 </example>
eac684ef 1090
798d3a52 1091 <example>
12b42c76 1092 <title>/etc/systemd/network/80-dhcp.network</title>
eac684ef 1093
798d3a52 1094 <programlisting>[Match]
eac684ef
TG
1095Name=en*
1096
1097[Network]
9c8ca3f7 1098DHCP=yes</programlisting>
798d3a52 1099 </example>
eac684ef 1100
798d3a52 1101 <example>
6c1695be 1102 <title>/etc/systemd/network/25-bridge-static.network</title>
f47c5c47 1103
798d3a52 1104 <programlisting>[Match]
f47c5c47 1105Name=bridge0
1106
1107[Network]
1108Address=192.168.0.15/24
1109Gateway=192.168.0.1
1110DNS=192.168.0.1</programlisting>
798d3a52 1111 </example>
f47c5c47 1112
798d3a52 1113 <example>
6c1695be 1114 <title>/etc/systemd/network/25-bridge-slave-interface.network</title>
f47c5c47 1115
798d3a52 1116 <programlisting>[Match]
f47c5c47 1117Name=enp2s0
1118
1119[Network]
1120Bridge=bridge0</programlisting>
798d3a52
ZJS
1121 </example>
1122 <example>
6c1695be 1123 <title>/etc/systemd/network/25-ipip.network</title>
0a8a0fad 1124
798d3a52 1125 <programlisting>[Match]
0a8a0fad
TG
1126Name=em1
1127
1128[Network]
1129Tunnel=ipip-tun</programlisting>
798d3a52 1130 </example>
0a8a0fad 1131
798d3a52 1132 <example>
6c1695be 1133 <title>/etc/systemd/network/25-sit.network</title>
0a8a0fad 1134
798d3a52 1135 <programlisting>[Match]
0a8a0fad
TG
1136Name=em1
1137
1138[Network]
1139Tunnel=sit-tun</programlisting>
798d3a52 1140 </example>
0a8a0fad 1141
798d3a52 1142 <example>
6c1695be 1143 <title>/etc/systemd/network/25-gre.network</title>
0a8a0fad 1144
798d3a52 1145 <programlisting>[Match]
0a8a0fad
TG
1146Name=em1
1147
1148[Network]
1149Tunnel=gre-tun</programlisting>
798d3a52 1150 </example>
0a8a0fad 1151
798d3a52 1152 <example>
6c1695be 1153 <title>/etc/systemd/network/25-vti.network</title>
0a8a0fad 1154
798d3a52 1155 <programlisting>[Match]
0a8a0fad
TG
1156Name=em1
1157
1158[Network]
1159Tunnel=vti-tun</programlisting>
798d3a52 1160 </example>
d94facdc
MH
1161
1162 <example>
6c1695be 1163 <title>/etc/systemd/network/25-bond.network</title>
d94facdc
MH
1164
1165 <programlisting>[Match]
1166Name=bond1
1167
1168[Network]
1169DHCP=yes
1170</programlisting>
1171 </example>
1172
798d3a52
ZJS
1173 </refsect1>
1174
1175 <refsect1>
1176 <title>See Also</title>
1177 <para>
1178 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
f41b446a 1179 <citerefentry><refentrytitle>systemd-networkd.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
798d3a52 1180 <citerefentry><refentrytitle>systemd.link</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
aaa297d4
LP
1181 <citerefentry><refentrytitle>systemd.netdev</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
1182 <citerefentry><refentrytitle>systemd-resolved.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>
798d3a52
ZJS
1183 </para>
1184 </refsect1>
eac684ef
TG
1185
1186</refentry>