]> git.ipfire.org Git - thirdparty/systemd.git/blame - man/systemd.network.xml
tree-wide: port more code to use ifname_valid()
[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>
82ecb4c3
LP
82
83 <para>Note that an interface without any static IPv6 addresses configured, and neither DHCPv6 nor IPv6LL enabled,
84 shall be considered to have no IPv6 support. IPv6 will be automatically disabled for that interface by writing "1"
85 to <filename>/proc/sys/net/ipv6/conf/<replaceable>ifname</replaceable>/disable_ipv6</filename>.
86 </para>
798d3a52
ZJS
87 </refsect1>
88
89 <refsect1>
90 <title>[Match] Section Options</title>
91
92 <para>The network file contains a <literal>[Match]</literal>
93 section, which determines if a given network file may be applied
94 to a given device; and a <literal>[Network]</literal> section
95 specifying how the device should be configured. The first (in
96 lexical order) of the network files that matches a given device
a22e1850
LP
97 is applied, all later files are ignored, even if they match as
98 well.</para>
798d3a52
ZJS
99
100 <para>A network file is said to match a device if each of the
101 entries in the <literal>[Match]</literal> section matches, or if
102 the section is empty. The following keys are accepted:</para>
103
104 <variablelist class='network-directives'>
105 <varlistentry>
106 <term><varname>MACAddress=</varname></term>
107 <listitem>
108 <para>The hardware address.</para>
109 </listitem>
110 </varlistentry>
111 <varlistentry>
112 <term><varname>Path=</varname></term>
113 <listitem>
5256e00e
TG
114 <para>A whitespace-separated list of shell-style globs
115 matching the persistent path, as exposed by the udev
116 property <literal>ID_PATH</literal>.</para>
798d3a52
ZJS
117 </listitem>
118 </varlistentry>
119 <varlistentry>
120 <term><varname>Driver=</varname></term>
121 <listitem>
5256e00e
TG
122 <para>A whitespace-separated list of shell-style globs
123 matching the driver currently bound to the device, as
798d3a52
ZJS
124 exposed by the udev property <literal>DRIVER</literal>
125 of its parent device, or if that is not set the driver
126 as exposed by <literal>ethtool -i</literal> of the
127 device itself.</para>
128 </listitem>
129 </varlistentry>
130 <varlistentry>
131 <term><varname>Type=</varname></term>
132 <listitem>
5256e00e
TG
133 <para>A whitespace-separated list of shell-style globs
134 matching the device type, as exposed by the udev property
798d3a52
ZJS
135 <literal>DEVTYPE</literal>.</para>
136 </listitem>
137 </varlistentry>
138 <varlistentry>
139 <term><varname>Name=</varname></term>
140 <listitem>
5256e00e
TG
141 <para>A whitespace-separated list of shell-style globs
142 matching the device name, as exposed by the udev property
143 <literal>INTERFACE</literal>.</para>
798d3a52
ZJS
144 </listitem>
145 </varlistentry>
146 <varlistentry>
147 <term><varname>Host=</varname></term>
148 <listitem>
149 <para>Matches against the hostname or machine ID of the
150 host. See <literal>ConditionHost=</literal> in
151 <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>
152 for details.
153 </para>
154 </listitem>
155 </varlistentry>
156 <varlistentry>
157 <term><varname>Virtualization=</varname></term>
158 <listitem>
159 <para>Checks whether the system is executed in a virtualized
160 environment and optionally test whether it is a specific
161 implementation. See <literal>ConditionVirtualization=</literal> in
162 <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>
163 for details.
164 </para>
165 </listitem>
166 </varlistentry>
167 <varlistentry>
168 <term><varname>KernelCommandLine=</varname></term>
169 <listitem>
170 <para>Checks whether a specific kernel command line option is
171 set (or if prefixed with the exclamation mark unset). See
172 <literal>ConditionKernelCommandLine=</literal> in
173 <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>
174 for details.
175 </para>
176 </listitem>
177 </varlistentry>
178 <varlistentry>
179 <term><varname>Architecture=</varname></term>
180 <listitem>
181 <para>Checks whether the system is running on a specific
182 architecture. See <literal>ConditionArchitecture=</literal> in
183 <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>
184 for details.
185 </para>
186 </listitem>
187 </varlistentry>
188 </variablelist>
189
190 </refsect1>
191
192 <refsect1>
193 <title>[Link] Section Options</title>
194
195 <para> The <literal>[Link]</literal> section accepts the following keys:</para>
196
197 <variablelist class='network-directives'>
198 <varlistentry>
199 <term><varname>MACAddress=</varname></term>
200 <listitem>
201 <para>The hardware address.</para>
202 </listitem>
203 </varlistentry>
204 <varlistentry>
205 <term><varname>MTUBytes=</varname></term>
206 <listitem>
207 <para>The maximum transmission unit in bytes to set for the
208 device. The usual suffixes K, M, G, are supported and are
209 understood to the base of 1024.</para>
439689c6
SS
210 <para>Note that if IPv6 is enabled on the interface, and the MTU is chosen
211 below 1280 (the minimum MTU for IPv6) it will automatically be increased to this value.</para>
798d3a52
ZJS
212 </listitem>
213 </varlistentry>
214 </variablelist>
215 </refsect1>
216
217 <refsect1>
218 <title>[Network] Section Options</title>
219
220 <para>The <literal>[Network]</literal> section accepts the following keys:</para>
221
222 <variablelist class='network-directives'>
223 <varlistentry>
224 <term><varname>Description=</varname></term>
225 <listitem>
226 <para>A description of the device. This is only used for
227 presentation purposes.</para>
228 </listitem>
229 </varlistentry>
230 <varlistentry>
231 <term><varname>DHCP=</varname></term>
232 <listitem>
ad943783 233 <para>Enables DHCPv4 and/or DHCPv6 client support. Accepts
798d3a52
ZJS
234 <literal>yes</literal>, <literal>no</literal>,
235 <literal>ipv4</literal>, or <literal>ipv6</literal>.</para>
e88d8021 236
f5a8c43f 237 <para>Note that DHCPv6 will by default be triggered by Router
7f3fdb7f 238 Advertisement, if that is enabled, regardless of this parameter.
f5a8c43f
TG
239 By enabling DHCPv6 support explicitly, the DHCPv6 client will
240 be started regardless of the presence of routers on the link,
241 or what flags the routers pass. See
242 <literal>IPv6AcceptRouterAdvertisements=</literal>.</para>
243
244 <para>Furthermore, note that by default the domain name
e88d8021
ZJS
245 specified through DHCP is not used for name resolution.
246 See option <option>UseDomains=</option> below.</para>
2ef322fc
LP
247
248 <para>See the <literal>[DHCP]</literal> section below for further configuration options for the DHCP client
249 support.</para>
798d3a52
ZJS
250 </listitem>
251 </varlistentry>
252 <varlistentry>
253 <term><varname>DHCPServer=</varname></term>
254 <listitem>
ad943783
LP
255 <para>A boolean. Enables DHCPv4 server support. Defaults
256 to <literal>no</literal>. Further settings for the DHCP
257 server may be set in the <literal>[DHCPServer]</literal>
258 section described below.</para>
798d3a52
ZJS
259 </listitem>
260 </varlistentry>
261 <varlistentry>
56fd6bf7 262 <term><varname>LinkLocalAddressing=</varname></term>
798d3a52 263 <listitem>
d0d6a4cd
TG
264 <para>Enables link-local address autoconfiguration. Accepts
265 <literal>yes</literal>, <literal>no</literal>,
266 <literal>ipv4</literal>, or <literal>ipv6</literal>. Defaults to
267 <literal>ipv6</literal>.</para>
798d3a52
ZJS
268 </listitem>
269 </varlistentry>
270 <varlistentry>
271 <term><varname>IPv4LLRoute=</varname></term>
272 <listitem>
273 <para>A boolean. When true, sets up the route needed for
274 non-IPv4LL hosts to communicate with IPv4LL-only hosts. Defaults
275 to false.
276 </para>
277 </listitem>
278 </varlistentry>
279 <varlistentry>
113bfde1
TG
280 <term><varname>IPv6Token=</varname></term>
281 <listitem>
282 <para>An IPv6 address with the top 64 bits unset. When set, indicates the
eb142d8e
TG
283 64-bit interface part of SLAAC IPv6 addresses for this link. Note that
284 the token is only ever used for SLAAC, and not for DHCPv6 addresses, even
3708bd46 285 in the case DHCP is requested by router advertisement. By default, the
eb142d8e 286 token is autogenerated.</para>
113bfde1
TG
287 </listitem>
288 </varlistentry>
289 <varlistentry>
798d3a52
ZJS
290 <term><varname>LLMNR=</varname></term>
291 <listitem>
aaa297d4
LP
292 <para>A boolean or <literal>resolve</literal>. When true,
293 enables <ulink
294 url="https://tools.ietf.org/html/rfc4795">Link-Local
295 Multicast Name Resolution</ulink> on the link. When set to
296 <literal>resolve</literal>, only resolution is enabled,
297 but not host registration and announcement. Defaults to
298 true. This setting is read by
299 <citerefentry><refentrytitle>systemd-resolved.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>.</para>
300 </listitem>
301 </varlistentry>
302 <varlistentry>
303 <term><varname>MulticastDNS=</varname></term>
304 <listitem>
305 <para>A boolean or <literal>resolve</literal>. When true,
306 enables <ulink
307 url="https://tools.ietf.org/html/rfc6762">Multicast
308 DNS</ulink> support on the link. When set to
309 <literal>resolve</literal>, only resolution is enabled,
310 but not host or service registration and
311 announcement. Defaults to false. This setting is read by
312 <citerefentry><refentrytitle>systemd-resolved.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>.</para>
798d3a52
ZJS
313 </listitem>
314 </varlistentry>
ad6c0475
LP
315 <varlistentry>
316 <term><varname>DNSSEC=</varname></term>
317 <listitem>
318 <para>A boolean or
319 <literal>allow-downgrade</literal>. When true, enables
320 <ulink
321 url="https://tools.ietf.org/html/rfc4033">DNSSEC</ulink>
322 DNS validation support on the link. When set to
323 <literal>allow-downgrade</literal>, compatibility with
324 non-DNSSEC capable networks is increased, by automatically
325 turning off DNSEC in this case. This option defines a
326 per-interface setting for
327 <citerefentry><refentrytitle>resolved.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>'s
328 global <varname>DNSSEC=</varname> option. Defaults to
329 false. This setting is read by
330 <citerefentry><refentrytitle>systemd-resolved.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>.</para>
331 </listitem>
332 </varlistentry>
8a516214
LP
333 <varlistentry>
334 <term><varname>DNSSECNegativeTrustAnchors=</varname></term>
335 <listitem><para>A space-separated list of DNSSEC negative
336 trust anchor domains. If specified and DNSSEC is enabled,
337 look-ups done via the interface's DNS server will be subject
338 to the list of negative trust anchors, and not require
339 authentication for the specified domains, or anything below
340 it. Use this to disable DNSSEC authentication for specific
341 private domains, that cannot be proven valid using the
342 Internet DNS hierarchy. Defaults to the empty list. This
343 setting is read by
344 <citerefentry><refentrytitle>systemd-resolved.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>.</para>
345 </listitem>
346 </varlistentry>
798d3a52
ZJS
347 <varlistentry>
348 <term><varname>LLDP=</varname></term>
349 <listitem>
da6c766d
LP
350 <para>Controls support for Ethernet LLDP packet reception. LLDP is a link-layer protocol commonly
351 implemented on professional routers and bridges which announces which physical port a system is connected
352 to, as well as other related data. Accepts a boolean or the special value
34437b4f
LP
353 <literal>routers-only</literal>. When true, incoming LLDP packets are accepted and a database of all LLDP
354 neighbors maintained. If <literal>routers-only</literal> is set only LLDP data of various types of routers
355 is collected and LLDP data about other types of devices ignored (such as stations, telephones and
7cececb2 356 others). If false, LLDP reception is disabled. Defaults to <literal>routers-only</literal>. Use
34437b4f 357 <citerefentry><refentrytitle>networkctl</refentrytitle><manvolnum>1</manvolnum></citerefentry> to query the
da6c766d
LP
358 collected neighbor data. LLDP is only available on Ethernet links. See <varname>EmitLLDP=</varname> below
359 for enabling LLDP packet emission from the local system.
798d3a52
ZJS
360 </para>
361 </listitem>
362 </varlistentry>
da6c766d
LP
363 <varlistentry>
364 <term><varname>EmitLLDP=</varname></term>
365 <listitem>
366 <para>Controls support for Ethernet LLDP packet emission. Accepts a boolean parameter and defaults to
367 false. If enabled a short LLDP packet with information about the local system is sent out in regular
368 intervals on the link. The LLDP packet will contain information about the local host name, the local
369 machine ID (as stored in
370 <citerefentry><refentrytitle>machine-id</refentrytitle><manvolnum>5</manvolnum></citerefentry>) and the
371 local interface name, as well as the pretty hostname of the system (as set in
372 <citerefentry><refentrytitle>machine-info</refentrytitle><manvolnum>5</manvolnum></citerefentry>). LLDP
373 emission is only available on Ethernet links. Note that this setting passed data suitable for
374 identification of host to the network and should thus not be used on untrusted networks, where such
375 identification data should not be made available. Use this option to enable other systems to identify on
376 which interface they are connected to this system. See <varname>LLDP=</varname> above for an option to
377 enable LLDP reception.</para>
378 </listitem>
379 </varlistentry>
0d4ad91d
AR
380 <varlistentry>
381 <term><varname>BindCarrier=</varname></term>
382 <listitem>
2ae7505f
TG
383 <para>A link name or a list of link names. When set, controls the behavior of the current
384 link. When all links in the list are in an operational down state, the current link is brought
385 down. When at least one link has carrier, the current interface is brought up.
0d4ad91d
AR
386 </para>
387 </listitem>
388 </varlistentry>
798d3a52
ZJS
389 <varlistentry>
390 <term><varname>Address=</varname></term>
391 <listitem>
392 <para>A static IPv4 or IPv6 address and its prefix length,
393 separated by a <literal>/</literal> character. Specify
394 this key more than once to configure several addresses.
395 The format of the address must be as described in
3ba3a79d 396 <citerefentry project='man-pages'><refentrytitle>inet_pton</refentrytitle><manvolnum>3</manvolnum></citerefentry>.
798d3a52
ZJS
397 This is a short-hand for an [Address] section only
398 containing an Address key (see below). This option may be
399 specified more than once.
400 </para>
401
402 <para>If the specified address is 0.0.0.0 (for IPv4) or
403 [::] (for IPv6), a new address range of the requested size
404 is automatically allocated from a system-wide pool of
405 unused ranges. The allocated range is checked against all
406 current network interfaces and all known network
407 configuration files to avoid address range conflicts. The
408 default system-wide pool consists of 192.168.0.0/16,
409 172.16.0.0/12 and 10.0.0.0/8 for IPv4, and fc00::/7 for
410 IPv6. This functionality is useful to manage a large
411 number of dynamically created network interfaces with the
412 same network configuration and automatic address range
413 assignment.</para>
414
415 </listitem>
416 </varlistentry>
417 <varlistentry>
418 <term><varname>Gateway=</varname></term>
419 <listitem>
420 <para>The gateway address, which must be in the format
421 described in
3ba3a79d 422 <citerefentry project='man-pages'><refentrytitle>inet_pton</refentrytitle><manvolnum>3</manvolnum></citerefentry>.
798d3a52
ZJS
423 This is a short-hand for a [Route] section only containing
424 a Gateway key. This option may be specified more than
425 once.</para>
426 </listitem>
427 </varlistentry>
428 <varlistentry>
429 <term><varname>DNS=</varname></term>
430 <listitem>
431 <para>A DNS server address, which must be in the format
432 described in
3ba3a79d 433 <citerefentry project='man-pages'><refentrytitle>inet_pton</refentrytitle><manvolnum>3</manvolnum></citerefentry>.
f41b446a 434 This option may be specified more than once. This setting is read by
3df9bec5 435 <citerefentry><refentrytitle>systemd-resolved.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>.</para>
798d3a52
ZJS
436 </listitem>
437 </varlistentry>
438 <varlistentry>
439 <term><varname>Domains=</varname></term>
440 <listitem>
3df9bec5
LP
441 <para>The domains used for DNS host name resolution on this link. Takes a list of DNS domain names which
442 are used as search suffixes for extending single-label host names (host names containing no dots) to become
443 fully qualified domain names (FQDNs). If a single-label host name is resolved on this interface, each of
444 the specified search domains are appended to it in turn, converting it into a fully qualified domain name,
445 until one of them may be successfully resolved.</para>
446
447 <para>The specified domains are also used for routing of DNS queries: look-ups for host names ending in the
448 domains specified here are preferably routed to the DNS servers configured for this interface. If a domain
449 name is prefixed with <literal>~</literal>, the domain name becomes a pure "routing" domain, is used for
450 DNS query routing purposes only and is not used in the described domain search logic. By specifying a
07ff561c 451 routing domain of <literal>~.</literal> (the tilde indicating definition of a routing domain, the dot
3df9bec5
LP
452 referring to the DNS root domain which is the implied suffix of all valid DNS names) it is possible to
453 route all DNS traffic preferably to the DNS server specified for this interface. The route domain logic is
454 particularly useful on multi-homed hosts with DNS servers serving particular private DNS zones on each
455 interface.</para>
456
457 <para>This setting is read by
458 <citerefentry><refentrytitle>systemd-resolved.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>.</para>
798d3a52
ZJS
459 </listitem>
460 </varlistentry>
461 <varlistentry>
462 <term><varname>NTP=</varname></term>
463 <listitem>
f41b446a 464 <para>An NTP server address. This option may be specified more than once. This setting is read by
3df9bec5 465 <citerefentry><refentrytitle>systemd-timesyncd.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>.</para>
798d3a52
ZJS
466 </listitem>
467 </varlistentry>
468 <varlistentry>
469 <term><varname>IPForward=</varname></term>
765afd5c
LP
470 <listitem><para>Configures IP packet forwarding for the
471 system. If enabled, incoming packets on any network
472 interface will be forwarded to any other interfaces
473 according to the routing table. Takes either a boolean
474 argument, or the values <literal>ipv4</literal> or
475 <literal>ipv6</literal>, which only enable IP packet
476 forwarding for the specified address family. This controls
477 the <filename>net.ipv4.ip_forward</filename> and
478 <filename>net.ipv6.conf.all.forwarding</filename> sysctl
479 options of the network interface (see <ulink
4046d836
LP
480 url="https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt">ip-sysctl.txt</ulink>
481 for details about sysctl options). Defaults to
482 <literal>no</literal>.</para>
483
765afd5c
LP
484 <para>Note: this setting controls a global kernel option,
485 and does so one way only: if a network that has this setting
486 enabled is set up the global setting is turned on. However,
487 it is never turned off again, even after all networks with
488 this setting enabled are shut down again.</para>
489
490 <para>To allow IP packet forwarding only between specific
491 network interfaces use a firewall.</para>
4046d836 492 </listitem>
798d3a52
ZJS
493 </varlistentry>
494 <varlistentry>
495 <term><varname>IPMasquerade=</varname></term>
496 <listitem><para>Configures IP masquerading for the network
b938cb90 497 interface. If enabled, packets forwarded from the network
798d3a52
ZJS
498 interface will be appear as coming from the local host.
499 Takes a boolean argument. Implies
5c82dd13 500 <varname>IPForward=ipv4</varname>. Defaults to
4046d836 501 <literal>no</literal>.</para></listitem>
798d3a52 502 </varlistentry>
a46e37cb
SS
503 <varlistentry>
504 <term><varname>IPv6PrivacyExtensions=</varname></term>
1f0d9695
LP
505 <listitem><para>Configures use of stateless temporary
506 addresses that change over time (see <ulink
507 url="https://tools.ietf.org/html/rfc4941">RFC 4941</ulink>,
508 Privacy Extensions for Stateless Address Autoconfiguration
509 in IPv6). Takes a boolean or the special values
510 <literal>prefer-public</literal> and
b938cb90 511 <literal>kernel</literal>. When true, enables the privacy
1f0d9695 512 extensions and prefers temporary addresses over public
b938cb90 513 addresses. When <literal>prefer-public</literal>, enables the
1f0d9695
LP
514 privacy extensions, but prefers public addresses over
515 temporary addresses. When false, the privacy extensions
b938cb90 516 remain disabled. When <literal>kernel</literal>, the kernel's
1f0d9695 517 default setting will be left in place. Defaults to
a46e37cb
SS
518 <literal>no</literal>.</para></listitem>
519 </varlistentry>
941d0aa8
SS
520 <varlistentry>
521 <term><varname>IPv6AcceptRouterAdvertisements=</varname></term>
a8eaaee7 522 <listitem><para>Force the setting of the <filename>accept_ra</filename>
ebf98081
ZJS
523 (router advertisements) setting for the interface.
524 When unset, the kernel default is used, and router
525 advertisements are accepted only when local forwarding
526 is disabled for that interface.
f5a8c43f
TG
527 When router advertisements are accepted, they will
528 trigger the start of the DHCPv6 client if the relevant
529 flags are passed, or if no routers are found on the link.
ebf98081
ZJS
530 Takes a boolean. If true, router advertisements are
531 accepted, when false, router advertisements are ignored,
532 independently of the local forwarding state.</para>
533
534 <para>See
535 <ulink url="https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt">ip-sysctl.txt</ulink>
536 in the kernel documentation, but note that systemd's
537 setting of <constant>1</constant> corresponds to
538 kernel's setting of <constant>2</constant>.</para>
539 </listitem>
941d0aa8 540 </varlistentry>
44de7fb1
SS
541 <varlistentry>
542 <term><varname>IPv6DuplicateAddressDetection=</varname></term>
a8eaaee7
JE
543 <listitem><para>Configures the amount of IPv6 Duplicate
544 Address Detection (DAD) probes to send. Defaults to unset.
44de7fb1
SS
545 </para></listitem>
546 </varlistentry>
a86cba89
SS
547 <varlistentry>
548 <term><varname>IPv6HopLimit=</varname></term>
549 <listitem><para>Configures IPv6 Hop Limit. For each router that
550 forwards the packet, the hop limit is decremented by 1. When the
551 hop limit field reaches zero, the packet is discarded.
552 Defaults to unset.
553 </para></listitem>
554 </varlistentry>
23d8b221
SS
555 <varlistentry>
556 <term><varname>ProxyARP=</varname></term>
557 <listitem><para>A boolean. Configures proxy ARP. Proxy ARP is the technique in which one host,
558 usually a router, answers ARP requests intended for another machine. By "faking" its identity,
559 the router accepts responsibility for routing packets to the "real" destination. (see <ulink
560 url="https://tools.ietf.org/html/rfc1027">RFC 1027</ulink>.
561 Defaults to unset.
562 </para></listitem>
563 </varlistentry>
798d3a52
ZJS
564 <varlistentry>
565 <term><varname>Bridge=</varname></term>
566 <listitem>
567 <para>The name of the bridge to add the link to.</para>
568 </listitem>
569 </varlistentry>
570 <varlistentry>
571 <term><varname>Bond=</varname></term>
572 <listitem>
573 <para>The name of the bond to add the link to.</para>
574 </listitem>
575 </varlistentry>
576 <varlistentry>
577 <term><varname>VLAN=</varname></term>
578 <listitem>
579 <para>The name of a VLAN to create on the link. This
580 option may be specified more than once.</para>
581 </listitem>
582 </varlistentry>
583 <varlistentry>
584 <term><varname>MACVLAN=</varname></term>
585 <listitem>
586 <para>The name of a MACVLAN to create on the link. This
587 option may be specified more than once.</para>
588 </listitem>
589 </varlistentry>
590 <varlistentry>
591 <term><varname>VXLAN=</varname></term>
592 <listitem>
593 <para>The name of a VXLAN to create on the link. This
594 option may be specified more than once.</para>
595 </listitem>
596 </varlistentry>
597 <varlistentry>
598 <term><varname>Tunnel=</varname></term>
599 <listitem>
600 <para>The name of a Tunnel to create on the link. This
601 option may be specified more than once.</para>
602 </listitem>
603 </varlistentry>
604 </variablelist>
605
606 </refsect1>
607
608 <refsect1>
609 <title>[Address] Section Options</title>
610
611 <para>An <literal>[Address]</literal> section accepts the
612 following keys. Specify several <literal>[Address]</literal>
613 sections to configure several addresses.</para>
614
615 <variablelist class='network-directives'>
616 <varlistentry>
617 <term><varname>Address=</varname></term>
618 <listitem>
619 <para>As in the <literal>[Network]</literal> section. This
620 key is mandatory.</para>
621 </listitem>
622 </varlistentry>
623 <varlistentry>
624 <term><varname>Peer=</varname></term>
625 <listitem>
626 <para>The peer address in a point-to-point connection.
627 Accepts the same format as the <literal>Address</literal>
628 key.</para>
629 </listitem>
630 </varlistentry>
631 <varlistentry>
632 <term><varname>Broadcast=</varname></term>
633 <listitem>
634 <para>The broadcast address, which must be in the format
635 described in
3ba3a79d 636 <citerefentry project='man-pages'><refentrytitle>inet_pton</refentrytitle><manvolnum>3</manvolnum></citerefentry>.
798d3a52
ZJS
637 This key only applies to IPv4 addresses. If it is not
638 given, it is derived from the <literal>Address</literal>
639 key.</para>
640 </listitem>
641 </varlistentry>
642 <varlistentry>
643 <term><varname>Label=</varname></term>
644 <listitem>
645 <para>An address label.</para>
646 </listitem>
647 </varlistentry>
b5834a0b
SS
648 <varlistentry>
649 <term><varname>PreferredLifetime=</varname></term>
650 <listitem>
651 <para>Allows the default "preferred lifetime" of the address to be overridden.
652 Only three settings are accepted: <literal>forever</literal> or <literal>infinity</literal>
653 which is the default and means that the address never expires, and <literal>0</literal> which means
654 that the address is considered immediately "expired" and will not be used,
655 unless explicitly requested. A setting of PreferredLifetime=0 is useful for
656 addresses which are added to be used only by a specific application,
657 which is then configured to use them explicitly.</para>
658 </listitem>
659 </varlistentry>
798d3a52
ZJS
660 </variablelist>
661 </refsect1>
662
663 <refsect1>
664 <title>[Route] Section Options</title>
665 <para>The <literal>[Route]</literal> section accepts the
666 following keys. Specify several <literal>[Route]</literal>
667 sections to configure several routes.</para>
668
669 <variablelist class='network-directives'>
670 <varlistentry>
671 <term><varname>Gateway=</varname></term>
672 <listitem>
673 <para>As in the <literal>[Network]</literal> section.</para>
674 </listitem>
675 </varlistentry>
676 <varlistentry>
677 <term><varname>Destination=</varname></term>
678 <listitem>
679 <para>The destination prefix of the route. Possibly
b938cb90 680 followed by a slash and the prefix length. If omitted, a
798d3a52
ZJS
681 full-length host route is assumed.</para>
682 </listitem>
683 </varlistentry>
684 <varlistentry>
685 <term><varname>Source=</varname></term>
686 <listitem>
687 <para>The source prefix of the route. Possibly followed by
b938cb90 688 a slash and the prefix length. If omitted, a full-length
798d3a52
ZJS
689 host route is assumed.</para>
690 </listitem>
691 </varlistentry>
692 <varlistentry>
693 <term><varname>Metric=</varname></term>
694 <listitem>
b938cb90 695 <para>The metric of the route (an unsigned integer).</para>
798d3a52
ZJS
696 </listitem>
697 </varlistentry>
769b56a3
TG
698 <varlistentry>
699 <term><varname>Scope=</varname></term>
700 <listitem>
a8eaaee7 701 <para>The scope of the route, which can be <literal>global</literal>,
769b56a3
TG
702 <literal>link</literal> or <literal>host</literal>. Defaults to
703 <literal>global</literal>.</para>
704 </listitem>
0d07e595
JK
705 </varlistentry>
706 <varlistentry>
707 <term><varname>PreferredSource=</varname></term>
708 <listitem>
709 <para>The preferred source address of the route. The address
710 must be in the format described in
711 <citerefentry project='man-pages'><refentrytitle>inet_pton</refentrytitle><manvolnum>3</manvolnum></citerefentry>.</para>
712 </listitem>
769b56a3 713 </varlistentry>
c953b24c
SS
714 <varlistentry>
715 <term><varname>Table=<replaceable>num</replaceable></varname></term>
716 <listitem>
717 <para>The table identifier for the route (a number between 1 and 4294967295, or 0 to unset).
718 The table can be retrieved using <command>ip route show table <replaceable>num</replaceable></command>.
719 </para>
720 </listitem>
721 </varlistentry>
798d3a52
ZJS
722 </variablelist>
723 </refsect1>
724
725 <refsect1>
726 <title>[DHCP] Section Options</title>
ad943783
LP
727 <para>The <literal>[DHCP]</literal> section configures the
728 DHCPv4 and DHCP6 client, if it is enabled with the
729 <varname>DHCP=</varname> setting described above:</para>
798d3a52
ZJS
730
731 <variablelist class='network-directives'>
732 <varlistentry>
733 <term><varname>UseDNS=</varname></term>
734 <listitem>
735 <para>When true (the default), the DNS servers received
736 from the DHCP server will be used and take precedence over
737 any statically configured ones.</para>
e88d8021
ZJS
738
739 <para>This corresponds to the <option>nameserver</option>
ad943783
LP
740 option in <citerefentry
741 project='man-pages'><refentrytitle>resolv.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>.</para>
798d3a52
ZJS
742 </listitem>
743 </varlistentry>
301f4073
MM
744 <varlistentry>
745 <term><varname>UseNTP=</varname></term>
746 <listitem>
747 <para>When true (the default), the NTP servers received
748 from the DHCP server will be used by systemd-timesyncd
749 and take precedence over any statically configured ones.</para>
750 </listitem>
751 </varlistentry>
798d3a52
ZJS
752 <varlistentry>
753 <term><varname>UseMTU=</varname></term>
754 <listitem>
755 <para>When true, the interface maximum transmission unit
756 from the DHCP server will be used on the current link.
757 Defaults to false.</para>
758 </listitem>
759 </varlistentry>
760 <varlistentry>
761 <term><varname>SendHostname=</varname></term>
762 <listitem>
d59be2cf
ZJS
763 <para>When true (the default), the machine's hostname will
764 be sent to the DHCP server.</para>
798d3a52
ZJS
765 </listitem>
766 </varlistentry>
767 <varlistentry>
768 <term><varname>UseHostname=</varname></term>
769 <listitem>
770 <para>When true (the default), the hostname received from
ad943783 771 the DHCP server will be set as the transient hostname of the system
d59be2cf 772 </para>
798d3a52
ZJS
773 </listitem>
774 </varlistentry>
1adc5d0b
SS
775 <varlistentry>
776 <term><varname>Hostname=</varname></term>
777 <listitem>
d59be2cf
ZJS
778 <para>Use this value for the hostname which is sent to the
779 DHCP server, instead of machine's hostname.</para>
1adc5d0b
SS
780 </listitem>
781 </varlistentry>
798d3a52
ZJS
782 <varlistentry>
783 <term><varname>UseDomains=</varname></term>
784 <listitem>
07ff561c 785 <para>Takes a boolean argument, or the special value <literal>route</literal>. When true, the domain name
b2a81c0b
LP
786 received from the DHCP server will be used as DNS search domain over this link, similar to the effect of
787 the <option>Domains=</option> setting. If set to <literal>route</literal>, the domain name received from
788 the DHCP server will be used for routing DNS queries only, but not for searching, similar to the effect of
789 the <option>Domains=</option> setting when the argument is prefixed with <literal>~</literal>. Defaults to
790 false.</para>
791
792 <para>It is recommended to enable this option only on trusted networks, as setting this affects resolution
793 of all host names, in particular to single-label names. It is generally safer to use the supplied domain
794 only as routing domain, rather than as search domain, in order to not have it affect local resolution of
795 single-label names.</para>
796
797 <para>When set to true, this setting corresponds to the <option>domain</option> option in <citerefentry
798 project='man-pages'><refentrytitle>resolv.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>.</para>
798d3a52
ZJS
799 </listitem>
800 </varlistentry>
801 <varlistentry>
802 <term><varname>UseRoutes=</varname></term>
803 <listitem>
804 <para>When true (the default), the static routes will be
805 requested from the DHCP server and added to the routing
a8eaaee7 806 table with a metric of 1024.</para>
798d3a52
ZJS
807 </listitem>
808 </varlistentry>
ad943783
LP
809
810 <varlistentry>
811 <term><varname>UseTimezone=</varname></term>
812
813 <listitem><para>When true, the timezone received from the
7f3fdb7f 814 DHCP server will be set as timezone of the local
ad943783
LP
815 system. Defaults to <literal>no</literal>.</para></listitem>
816 </varlistentry>
817
798d3a52
ZJS
818 <varlistentry>
819 <term><varname>CriticalConnection=</varname></term>
820 <listitem>
821 <para>When true, the connection will never be torn down
822 even if the DHCP lease expires. This is contrary to the
823 DHCP specification, but may be the best choice if, say,
824 the root filesystem relies on this connection. Defaults to
825 false.</para>
826 </listitem>
827 </varlistentry>
e2e08e77 828
3e43b2cd
JJ
829 <varlistentry>
830 <term><varname>ClientIdentifier=</varname></term>
831 <listitem>
076ea6f6
LP
832 <para>The DHCPv4 client identifier to use. Either <literal>mac</literal> to use the MAC address of the link
833 or <literal>duid</literal> (the default, see below) to use a RFC4361-compliant Client ID.</para>
3e43b2cd
JJ
834 </listitem>
835 </varlistentry>
e2e08e77 836
798d3a52
ZJS
837 <varlistentry>
838 <term><varname>VendorClassIdentifier=</varname></term>
839 <listitem>
840 <para>The vendor class identifier used to identify vendor
841 type and configuration.</para>
842 </listitem>
843 </varlistentry>
076ea6f6 844
e2e08e77
ZJS
845 <varlistentry>
846 <term><varname>DUIDType=</varname></term>
847 <listitem>
848 <para>Override the global <varname>DUIDType</varname> setting for this network. See
849 <citerefentry><refentrytitle>networkd.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>
850 for a description of possible values.</para>
851 </listitem>
852 </varlistentry>
076ea6f6 853
e2e08e77
ZJS
854 <varlistentry>
855 <term><varname>DUIDRawData=</varname></term>
856 <listitem>
857 <para>Override the global <varname>DUIDRawData</varname> setting for this network. See
858 <citerefentry><refentrytitle>networkd.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>
859 for a description of possible values.</para>
076ea6f6
LP
860 </listitem>
861 </varlistentry>
e2e08e77 862
d05def16
LP
863 <varlistentry>
864 <term><varname>IAID=</varname></term>
865 <listitem>
866 <para>The DHCP Identity Association Identifier (IAID) for the interface, a 32-bit unsigned integer.</para>
867 </listitem>
868 </varlistentry>
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>