2 <!DOCTYPE refentry PUBLIC
"-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
4 <!-- SPDX-License-Identifier: LGPL-2.1+ -->
6 <refentry id=
"systemd.network" conditional='ENABLE_NETWORKD'
>
9 <title>systemd.network
</title>
10 <productname>systemd
</productname>
14 <refentrytitle>systemd.network
</refentrytitle>
15 <manvolnum>5</manvolnum>
19 <refname>systemd.network
</refname>
20 <refpurpose>Network configuration
</refpurpose>
24 <para><filename><replaceable>network
</replaceable>.network
</filename></para>
28 <title>Description
</title>
30 <para>Network setup is performed by
31 <citerefentry><refentrytitle>systemd-networkd
</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
34 <para>The main network file must have the extension
<filename>.network
</filename>; other
35 extensions are ignored. Networks are applied to links whenever the links appear.
</para>
37 <para>The
<filename>.network
</filename> files are read from the files located in the system network
38 directories
<filename>/usr/lib/systemd/network
</filename> and
39 <filename>/usr/local/lib/systemd/network
</filename>, the volatile runtime network directory
40 <filename>/run/systemd/network
</filename> and the local administration network directory
41 <filename>/etc/systemd/network
</filename>. All configuration files are collectively sorted and processed
42 in lexical order, regardless of the directories in which they live. However, files with identical
43 filenames replace each other. Files in
<filename>/etc
</filename> have the highest priority, files in
44 <filename>/run
</filename> take precedence over files with the same name under
45 <filename>/usr
</filename>. This can be used to override a system-supplied configuration file with a local
46 file if needed. As a special case, an empty file (file size
0) or symlink with the same name pointing to
47 <filename>/dev/null
</filename> disables the configuration file entirely (it is
"masked").
</para>
49 <para>Along with the network file
<filename>foo.network
</filename>, a
"drop-in" directory
50 <filename>foo.network.d/
</filename> may exist. All files with the suffix
51 <literal>.conf
</literal> from this directory will be parsed after the file itself is
52 parsed. This is useful to alter or add configuration settings, without having to modify the main
53 configuration file. Each drop-in file must have appropriate section headers.
</para>
55 <para>In addition to
<filename>/etc/systemd/network
</filename>, drop-in
<literal>.d
</literal>
56 directories can be placed in
<filename>/usr/lib/systemd/network
</filename> or
57 <filename>/run/systemd/network
</filename> directories. Drop-in files in
58 <filename>/etc
</filename> take precedence over those in
<filename>/run
</filename> which in turn
59 take precedence over those in
<filename>/usr/lib
</filename>. Drop-in files under any of these
60 directories take precedence over the main network file wherever located.
</para>
62 <para>Note that an interface without any static IPv6 addresses configured, and neither DHCPv6
63 nor IPv6LL enabled, shall be considered to have no IPv6 support. IPv6 will be automatically
64 disabled for that interface by writing
"1" to
65 <filename>/proc/sys/net/ipv6/conf/
<replaceable>ifname
</replaceable>/disable_ipv6
</filename>.
70 <title>[Match] Section Options
</title>
72 <para>The network file contains a
<literal>[Match]
</literal>
73 section, which determines if a given network file may be applied
74 to a given device; and a
<literal>[Network]
</literal> section
75 specifying how the device should be configured. The first (in
76 lexical order) of the network files that matches a given device
77 is applied, all later files are ignored, even if they match as
80 <para>A network file is said to match a network interface if all matches specified by the
81 <literal>[Match]
</literal> section are satisfied. When a network file does not contain valid
82 settings in
<literal>[Match]
</literal> section, then the file will match all interfaces and
83 <command>systemd-networkd
</command> warns about that. Hint: to avoid the warning and to make it
84 clear that all interfaces shall be matched, add the following:
85 <programlisting>Name=*
</programlisting>
86 The following keys are accepted:
</para>
88 <variablelist class='network-directives'
>
90 <term><varname>MACAddress=
</varname></term>
92 <para>A whitespace-separated list of hardware addresses. Use full colon-, hyphen- or dot-delimited hexadecimal. See the example below.
93 This option may appear more than once, in which case the lists are merged. If the empty string is assigned to this option, the list
94 of hardware addresses defined prior to this is reset.
</para>
97 <programlisting>MACAddress=
01:
23:
45:
67:
89:ab
00-
11-
22-
33-
44-
55 AABB.CCDD.EEFF
</programlisting></para>
101 <term><varname>Path=
</varname></term>
103 <para>A whitespace-separated list of shell-style globs
104 matching the persistent path, as exposed by the udev
105 property
<literal>ID_PATH
</literal>. If the list is
106 prefixed with a
"!", the test is inverted; i.e. it is
107 true when
<literal>ID_PATH
</literal> does not match any
108 item in the list.
</para>
112 <term><varname>Driver=
</varname></term>
114 <para>A whitespace-separated list of shell-style globs
115 matching the driver currently bound to the device, as
116 exposed by the udev property
<literal>ID_NET_DRIVER
</literal>
117 of its parent device, or if that is not set the driver
118 as exposed by
<literal>ethtool -i
</literal> of the
119 device itself. If the list is prefixed with a
"!", the
120 test is inverted.
</para>
124 <term><varname>Type=
</varname></term>
126 <para>A whitespace-separated list of shell-style globs
127 matching the device type, as exposed by the udev property
128 <literal>DEVTYPE
</literal>. If the list is prefixed with
129 a
"!", the test is inverted.
</para>
133 <term><varname>Name=
</varname></term>
135 <para>A whitespace-separated list of shell-style globs matching the device name, as exposed
136 by the udev property
<literal>INTERFACE
</literal>, or device's alternative names. If the
137 list is prefixed with a
"!", the test is inverted.
</para>
141 <term><varname>Property=
</varname></term>
143 <para>A whitespace-separated list of udev property name with its value after a equal
144 (
<literal>=
</literal>). If multiple properties are specified, the test results are ANDed.
145 If the list is prefixed with a
"!", the test is inverted. If a value contains white
146 spaces, then please quote whole key and value pair. If a value contains quotation, then
147 please escape the quotation with
<literal>\
</literal>.
</para>
149 <para>Example: if a .network file has the following:
150 <programlisting>Property=ID_MODEL_ID=
9999 "ID_VENDOR_FROM_DATABASE=vendor name" "KEY=with \"quotation\
""</programlisting>
151 then, the .network file matches only when an interface has all the above three properties.
156 <term><varname>WLANInterfaceType=
</varname></term>
158 <para>A whitespace-separated list of wireless network type. Supported values are
159 <literal>ad-hoc
</literal>,
<literal>station
</literal>,
<literal>ap
</literal>,
160 <literal>ap-vlan
</literal>,
<literal>wds
</literal>,
<literal>monitor
</literal>,
161 <literal>mesh-point
</literal>,
<literal>p2p-client
</literal>,
<literal>p2p-go
</literal>,
162 <literal>p2p-device
</literal>,
<literal>ocb
</literal>, and
<literal>nan
</literal>. If the
163 list is prefixed with a
"!", the test is inverted.
168 <term><varname>SSID=
</varname></term>
170 <para>A whitespace-separated list of shell-style globs matching the SSID of the currently
171 connected wireless LAN. If the list is prefixed with a
"!", the test is inverted.
176 <term><varname>BSSID=
</varname></term>
178 <para>A whitespace-separated list of hardware address of the currently connected wireless
179 LAN. Use full colon-, hyphen- or dot-delimited hexadecimal. See the example in
180 <varname>MACAddress=
</varname>. This option may appear more than one, in which case the
181 lists are merged. If the empty string is assigned to this option, the list of BSSID defined
182 prior to this is reset.
</para>
186 <term><varname>Host=
</varname></term>
188 <para>Matches against the hostname or machine ID of the host. See
189 <literal>ConditionHost=
</literal> in
190 <citerefentry><refentrytitle>systemd.unit
</refentrytitle><manvolnum>5</manvolnum></citerefentry>
191 for details. When prefixed with an exclamation mark (
<literal>!
</literal>), the result is negated.
192 If an empty string is assigned, then previously assigned value is cleared.
197 <term><varname>Virtualization=
</varname></term>
199 <para>Checks whether the system is executed in a virtualized environment and optionally test
200 whether it is a specific implementation. See
<literal>ConditionVirtualization=
</literal> in
201 <citerefentry><refentrytitle>systemd.unit
</refentrytitle><manvolnum>5</manvolnum></citerefentry>
202 for details. When prefixed with an exclamation mark (
<literal>!
</literal>), the result is negated.
203 If an empty string is assigned, then previously assigned value is cleared.
208 <term><varname>KernelCommandLine=
</varname></term>
210 <para>Checks whether a specific kernel command line option is set. See
211 <literal>ConditionKernelCommandLine=
</literal> in
212 <citerefentry><refentrytitle>systemd.unit
</refentrytitle><manvolnum>5</manvolnum></citerefentry>
213 for details. When prefixed with an exclamation mark (
<literal>!
</literal>), the result is negated.
214 If an empty string is assigned, then previously assigned value is cleared.
219 <term><varname>KernelVersion=
</varname></term>
221 <para>Checks whether the kernel version (as reported by
<command>uname -r
</command>) matches a
222 certain expression. See
<literal>ConditionKernelVersion=
</literal> in
223 <citerefentry><refentrytitle>systemd.unit
</refentrytitle><manvolnum>5</manvolnum></citerefentry>
224 for details. When prefixed with an exclamation mark (
<literal>!
</literal>), the result is negated.
225 If an empty string is assigned, then previously assigned value is cleared.
230 <term><varname>Architecture=
</varname></term>
232 <para>Checks whether the system is running on a specific architecture. See
233 <literal>ConditionArchitecture=
</literal> in
234 <citerefentry><refentrytitle>systemd.unit
</refentrytitle><manvolnum>5</manvolnum></citerefentry>
235 for details. When prefixed with an exclamation mark (
<literal>!
</literal>), the result is negated.
236 If an empty string is assigned, then previously assigned value is cleared.
245 <title>[Link] Section Options
</title>
247 <para> The
<literal>[Link]
</literal> section accepts the following keys:
</para>
249 <variablelist class='network-directives'
>
251 <term><varname>MACAddress=
</varname></term>
253 <para>The hardware address to set for the device.
</para>
257 <term><varname>MTUBytes=
</varname></term>
259 <para>The maximum transmission unit in bytes to set for the
260 device. The usual suffixes K, M, G, are supported and are
261 understood to the base of
1024.
</para>
262 <para>Note that if IPv6 is enabled on the interface, and the MTU is chosen
263 below
1280 (the minimum MTU for IPv6) it will automatically be increased to this value.
</para>
267 <term><varname>ARP=
</varname></term>
269 <para>Takes a boolean. If set to true, the ARP (low-level Address Resolution Protocol)
270 for this interface is enabled. When unset, the kernel's default will be used.
</para>
271 <para> For example, disabling ARP is useful when creating multiple MACVLAN or VLAN virtual
272 interfaces atop a single lower-level physical interface, which will then only serve as a
273 link/
"bridge" device aggregating traffic to the same physical link and not participate in
274 the network otherwise.
</para>
278 <term><varname>Multicast=
</varname></term>
280 <para>Takes a boolean. If set to true, the multicast flag on the device is enabled.
</para>
284 <term><varname>AllMulticast=
</varname></term>
286 <para>Takes a boolean. If set to true, the driver retrieves all multicast packets from the network.
287 This happens when multicast routing is enabled.
</para>
291 <term><varname>Unmanaged=
</varname></term>
293 <para>Takes a boolean. When
<literal>yes
</literal>, no attempts are
294 made to bring up or configure matching links, equivalent to
295 when there are no matching network files. Defaults to
296 <literal>no
</literal>.
</para>
297 <para>This is useful for preventing later matching network
298 files from interfering with certain interfaces that are fully
299 controlled by other applications.
</para>
303 <term><varname>RequiredForOnline=
</varname></term>
305 <para>Takes a boolean or operational state. Please see
306 <citerefentry><refentrytitle>networkctl
</refentrytitle><manvolnum>1</manvolnum></citerefentry>
307 for possible operational states. When
<literal>yes
</literal>, the network is deemed required when
308 determining whether the system is online when running
309 <command>systemd-networkd-wait-online
</command>. When
<literal>no
</literal>, the network is ignored
310 when checking for online state. When an operational state is set,
<literal>yes
</literal> is implied,
311 and this controls the operational state required for the network interface to be considered online.
312 Defaults to
<literal>yes
</literal>.
</para>
314 <para>The network will be brought up normally in all cases, but in
315 the event that there is no address being assigned by DHCP or the
316 cable is not plugged in, the link will simply remain offline and be
317 skipped automatically by
<command>systemd-networkd-wait-online
</command>
318 if
<literal>RequiredForOnline=no
</literal>.
</para>
325 <title>[Network] Section Options
</title>
327 <para>The
<literal>[Network]
</literal> section accepts the following keys:
</para>
329 <variablelist class='network-directives'
>
331 <term><varname>Description=
</varname></term>
333 <para>A description of the device. This is only used for
334 presentation purposes.
</para>
338 <term><varname>DHCP=
</varname></term>
340 <para>Enables DHCPv4 and/or DHCPv6 client support. Accepts
341 <literal>yes
</literal>,
<literal>no
</literal>,
342 <literal>ipv4
</literal>, or
<literal>ipv6
</literal>. Defaults
343 to
<literal>no
</literal>.
</para>
345 <para>Note that DHCPv6 will by default be triggered by Router
346 Advertisement, if that is enabled, regardless of this parameter.
347 By enabling DHCPv6 support explicitly, the DHCPv6 client will
348 be started regardless of the presence of routers on the link,
349 or what flags the routers pass. See
350 <literal>IPv6AcceptRA=
</literal>.
</para>
352 <para>Furthermore, note that by default the domain name
353 specified through DHCP is not used for name resolution.
354 See option
<option>UseDomains=
</option> below.
</para>
356 <para>See the
<literal>[DHCPv4]
</literal> or
<literal>[DHCPv6]
</literal> section below for
357 further configuration options for the DHCP client support.
</para>
361 <term><varname>DHCPServer=
</varname></term>
363 <para>Takes a boolean. If set to
<literal>yes
</literal>, DHCPv4 server will be started. Defaults
364 to
<literal>no
</literal>. Further settings for the DHCP
365 server may be set in the
<literal>[DHCPServer]
</literal>
366 section described below.
</para>
370 <term><varname>LinkLocalAddressing=
</varname></term>
372 <para>Enables link-local address autoconfiguration. Accepts
<literal>yes
</literal>,
373 <literal>no
</literal>,
<literal>ipv4
</literal>,
<literal>ipv6
</literal>,
374 <literal>fallback
</literal>, or
<literal>ipv4-fallback
</literal>. If
375 <literal>fallback
</literal> or
<literal>ipv4-fallback
</literal> is specified, then an IPv4
376 link-local address is configured only when DHCPv4 fails. If
<literal>fallback
</literal>,
377 an IPv6 link-local address is always configured, and if
<literal>ipv4-fallback
</literal>,
378 the address is not configured. Note that, the fallback mechanism works only when DHCPv4
379 client is enabled, that is, it requires
<literal>DHCP=yes
</literal> or
380 <literal>DHCP=ipv4
</literal>. If
<varname>Bridge=
</varname> is set, defaults to
381 <literal>no
</literal>, and if not, defaults to
<literal>ipv6
</literal>.
386 <term><varname>IPv4LLRoute=
</varname></term>
388 <para>Takes a boolean. If set to true, sets up the route needed for
389 non-IPv4LL hosts to communicate with IPv4LL-only hosts. Defaults
395 <term><varname>DefaultRouteOnDevice=
</varname></term>
397 <para>Takes a boolean. If set to true, sets up the default route bound to the interface.
398 Defaults to false. This is useful when creating routes on point-to-point interfaces.
399 This is equivalent to e.g. the following.
400 <programlisting>ip route add default dev veth99
</programlisting></para>
404 <term><varname>IPv6Token=
</varname></term>
406 <para>An IPv6 address with the top
64 bits unset. When set, indicates the
407 64-bit interface part of SLAAC IPv6 addresses for this link. Note that
408 the token is only ever used for SLAAC, and not for DHCPv6 addresses, even
409 in the case DHCP is requested by router advertisement. By default, the
410 token is autogenerated.
</para>
414 <term><varname>LLMNR=
</varname></term>
416 <para>Takes a boolean or
<literal>resolve
</literal>. When true,
418 url=
"https://tools.ietf.org/html/rfc4795">Link-Local
419 Multicast Name Resolution
</ulink> on the link. When set to
420 <literal>resolve
</literal>, only resolution is enabled,
421 but not host registration and announcement. Defaults to
422 true. This setting is read by
423 <citerefentry><refentrytitle>systemd-resolved.service
</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
</para>
427 <term><varname>MulticastDNS=
</varname></term>
429 <para>Takes a boolean or
<literal>resolve
</literal>. When true,
431 url=
"https://tools.ietf.org/html/rfc6762">Multicast
432 DNS
</ulink> support on the link. When set to
433 <literal>resolve
</literal>, only resolution is enabled,
434 but not host or service registration and
435 announcement. Defaults to false. This setting is read by
436 <citerefentry><refentrytitle>systemd-resolved.service
</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
</para>
440 <term><varname>DNSOverTLS=
</varname></term>
442 <para>Takes a boolean or
<literal>opportunistic
</literal>.
445 url=
"https://tools.ietf.org/html/rfc7858">DNS-over-TLS
</ulink>
447 When set to
<literal>opportunistic
</literal>, compatibility with
448 non-DNS-over-TLS servers is increased, by automatically
449 turning off DNS-over-TLS servers in this case.
450 This option defines a per-interface setting for
451 <citerefentry><refentrytitle>resolved.conf
</refentrytitle><manvolnum>5</manvolnum></citerefentry>'s
452 global
<varname>DNSOverTLS=
</varname> option. Defaults to
453 false. This setting is read by
454 <citerefentry><refentrytitle>systemd-resolved.service
</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
</para>
458 <term><varname>DNSSEC=
</varname></term>
460 <para>Takes a boolean. or
461 <literal>allow-downgrade
</literal>. When true, enables
463 url=
"https://tools.ietf.org/html/rfc4033">DNSSEC
</ulink>
464 DNS validation support on the link. When set to
465 <literal>allow-downgrade
</literal>, compatibility with
466 non-DNSSEC capable networks is increased, by automatically
467 turning off DNSSEC in this case. This option defines a
468 per-interface setting for
469 <citerefentry><refentrytitle>resolved.conf
</refentrytitle><manvolnum>5</manvolnum></citerefentry>'s
470 global
<varname>DNSSEC=
</varname> option. Defaults to
471 false. This setting is read by
472 <citerefentry><refentrytitle>systemd-resolved.service
</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
</para>
476 <term><varname>DNSSECNegativeTrustAnchors=
</varname></term>
477 <listitem><para>A space-separated list of DNSSEC negative
478 trust anchor domains. If specified and DNSSEC is enabled,
479 look-ups done via the interface's DNS server will be subject
480 to the list of negative trust anchors, and not require
481 authentication for the specified domains, or anything below
482 it. Use this to disable DNSSEC authentication for specific
483 private domains, that cannot be proven valid using the
484 Internet DNS hierarchy. Defaults to the empty list. This
486 <citerefentry><refentrytitle>systemd-resolved.service
</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
</para>
490 <term><varname>LLDP=
</varname></term>
492 <para>Controls support for Ethernet LLDP packet reception. LLDP is a link-layer protocol commonly
493 implemented on professional routers and bridges which announces which physical port a system is connected
494 to, as well as other related data. Accepts a boolean or the special value
495 <literal>routers-only
</literal>. When true, incoming LLDP packets are accepted and a database of all LLDP
496 neighbors maintained. If
<literal>routers-only
</literal> is set only LLDP data of various types of routers
497 is collected and LLDP data about other types of devices ignored (such as stations, telephones and
498 others). If false, LLDP reception is disabled. Defaults to
<literal>routers-only
</literal>. Use
499 <citerefentry><refentrytitle>networkctl
</refentrytitle><manvolnum>1</manvolnum></citerefentry> to query the
500 collected neighbor data. LLDP is only available on Ethernet links. See
<varname>EmitLLDP=
</varname> below
501 for enabling LLDP packet emission from the local system.
506 <term><varname>EmitLLDP=
</varname></term>
508 <para>Controls support for Ethernet LLDP packet emission. Accepts a boolean parameter or the special values
509 <literal>nearest-bridge
</literal>,
<literal>non-tpmr-bridge
</literal> and
510 <literal>customer-bridge
</literal>. Defaults to false, which turns off LLDP packet emission. If not false,
511 a short LLDP packet with information about the local system is sent out in regular intervals on the
512 link. The LLDP packet will contain information about the local host name, the local machine ID (as stored
513 in
<citerefentry><refentrytitle>machine-id
</refentrytitle><manvolnum>5</manvolnum></citerefentry>) and the
514 local interface name, as well as the pretty hostname of the system (as set in
515 <citerefentry><refentrytitle>machine-info
</refentrytitle><manvolnum>5</manvolnum></citerefentry>). LLDP
516 emission is only available on Ethernet links. Note that this setting passes data suitable for
517 identification of host to the network and should thus not be enabled on untrusted networks, where such
518 identification data should not be made available. Use this option to permit other systems to identify on
519 which interfaces they are connected to this system. The three special values control propagation of the
520 LLDP packets. The
<literal>nearest-bridge
</literal> setting permits propagation only to the nearest
521 connected bridge,
<literal>non-tpmr-bridge
</literal> permits propagation across Two-Port MAC Relays, but
522 not any other bridges, and
<literal>customer-bridge
</literal> permits propagation until a customer bridge
523 is reached. For details about these concepts, see
<ulink
524 url=
"https://standards.ieee.org/findstds/standard/802.1AB-2016.html">IEEE
802.1AB-
2016</ulink>. Note that
525 configuring this setting to true is equivalent to
<literal>nearest-bridge
</literal>, the recommended and
526 most restricted level of propagation. See
<varname>LLDP=
</varname> above for an option to enable LLDP
531 <term><varname>BindCarrier=
</varname></term>
533 <para>A link name or a list of link names. When set, controls the behavior of the current
534 link. When all links in the list are in an operational down state, the current link is brought
535 down. When at least one link has carrier, the current interface is brought up.
540 <term><varname>Address=
</varname></term>
542 <para>A static IPv4 or IPv6 address and its prefix length,
543 separated by a
<literal>/
</literal> character. Specify
544 this key more than once to configure several addresses.
545 The format of the address must be as described in
546 <citerefentry project='man-pages'
><refentrytitle>inet_pton
</refentrytitle><manvolnum>3</manvolnum></citerefentry>.
547 This is a short-hand for an [Address] section only
548 containing an Address key (see below). This option may be
549 specified more than once.
552 <para>If the specified address is
<literal>0.0.0.0</literal> (for IPv4) or
<literal>::
</literal>
553 (for IPv6), a new address range of the requested size is automatically allocated from a
554 system-wide pool of unused ranges. Note that the prefix length must be equal or larger than
8 for
555 IPv4, and
64 for IPv6. The allocated range is checked against all current network interfaces and
556 all known network configuration files to avoid address range conflicts. The default system-wide
557 pool consists of
192.168.0.0/
16,
172.16.0.0/
12 and
10.0.0.0/
8 for IPv4, and fd00::/
8 for IPv6.
558 This functionality is useful to manage a large number of dynamically created network interfaces
559 with the same network configuration and automatic address range assignment.
</para>
564 <term><varname>Gateway=
</varname></term>
566 <para>The gateway address, which must be in the format
568 <citerefentry project='man-pages'
><refentrytitle>inet_pton
</refentrytitle><manvolnum>3</manvolnum></citerefentry>.
569 This is a short-hand for a [Route] section only containing
570 a Gateway key. This option may be specified more than
575 <term><varname>DNS=
</varname></term>
577 <para>A DNS server address, which must be in the format
579 <citerefentry project='man-pages'
><refentrytitle>inet_pton
</refentrytitle><manvolnum>3</manvolnum></citerefentry>.
580 This option may be specified more than once. This setting is read by
581 <citerefentry><refentrytitle>systemd-resolved.service
</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
</para>
585 <term><varname>Domains=
</varname></term>
587 <para>A list of domains which should be resolved using the DNS servers on this link. Each item in the list
588 should be a domain name, optionally prefixed with a tilde (
<literal>~
</literal>). The domains with the
589 prefix are called
"routing-only domains". The domains without the prefix are called
"search domains" and
590 are first used as search suffixes for extending single-label host names (host names containing no dots) to
591 become fully qualified domain names (FQDNs). If a single-label host name is resolved on this interface,
592 each of the specified search domains are appended to it in turn, converting it into a fully qualified
593 domain name, until one of them may be successfully resolved.
</para>
595 <para>Both
"search" and
"routing-only" domains are used for routing of DNS queries: look-ups for host names
596 ending in those domains (hence also single label names, if any
"search domains" are listed), are routed to
597 the DNS servers configured for this interface. The domain routing logic is particularly useful on
598 multi-homed hosts with DNS servers serving particular private DNS zones on each interface.
</para>
600 <para>The
"routing-only" domain
<literal>~.
</literal> (the tilde indicating definition of a routing domain,
601 the dot referring to the DNS root domain which is the implied suffix of all valid DNS names) has special
602 effect. It causes all DNS traffic which does not match another configured domain routing entry to be routed
603 to DNS servers specified for this interface. This setting is useful to prefer a certain set of DNS servers
604 if a link on which they are connected is available.
</para>
606 <para>This setting is read by
607 <citerefentry><refentrytitle>systemd-resolved.service
</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
608 "Search domains" correspond to the
<varname>domain
</varname> and
<varname>search
</varname> entries in
609 <citerefentry project='man-pages'
><refentrytitle>resolv.conf
</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
610 Domain name routing has no equivalent in the traditional glibc API, which has no concept of domain
611 name servers limited to a specific link.
</para>
615 <term><varname>DNSDefaultRoute=
</varname></term>
617 <para>Takes a boolean argument. If true, this link's configured DNS servers are used for resolving domain
618 names that do not match any link's configured
<varname>Domains=
</varname> setting. If false, this link's
619 configured DNS servers are never used for such domains, and are exclusively used for resolving names that
620 match at least one of the domains configured on this link. If not specified defaults to an automatic mode:
621 queries not matching any link's configured domains will be routed to this link if it has no routing-only
622 domains configured.
</para>
626 <term><varname>NTP=
</varname></term>
628 <para>An NTP server address. This option may be specified more than once. This setting is read by
629 <citerefentry><refentrytitle>systemd-timesyncd.service
</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
</para>
633 <term><varname>IPForward=
</varname></term>
634 <listitem><para>Configures IP packet forwarding for the
635 system. If enabled, incoming packets on any network
636 interface will be forwarded to any other interfaces
637 according to the routing table. Takes a boolean,
638 or the values
<literal>ipv4
</literal> or
639 <literal>ipv6
</literal>, which only enable IP packet
640 forwarding for the specified address family. This controls
641 the
<filename>net.ipv4.ip_forward
</filename> and
642 <filename>net.ipv6.conf.all.forwarding
</filename> sysctl
643 options of the network interface (see
<ulink
644 url=
"https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt">ip-sysctl.txt
</ulink>
645 for details about sysctl options). Defaults to
646 <literal>no
</literal>.
</para>
648 <para>Note: this setting controls a global kernel option,
649 and does so one way only: if a network that has this setting
650 enabled is set up the global setting is turned on. However,
651 it is never turned off again, even after all networks with
652 this setting enabled are shut down again.
</para>
654 <para>To allow IP packet forwarding only between specific
655 network interfaces use a firewall.
</para>
659 <term><varname>IPMasquerade=
</varname></term>
660 <listitem><para>Configures IP masquerading for the network
661 interface. If enabled, packets forwarded from the network
662 interface will be appear as coming from the local host.
663 Takes a boolean argument. Implies
664 <varname>IPForward=ipv4
</varname>. Defaults to
665 <literal>no
</literal>.
</para></listitem>
668 <term><varname>IPv6PrivacyExtensions=
</varname></term>
669 <listitem><para>Configures use of stateless temporary
670 addresses that change over time (see
<ulink
671 url=
"https://tools.ietf.org/html/rfc4941">RFC
4941</ulink>,
672 Privacy Extensions for Stateless Address Autoconfiguration
673 in IPv6). Takes a boolean or the special values
674 <literal>prefer-public
</literal> and
675 <literal>kernel
</literal>. When true, enables the privacy
676 extensions and prefers temporary addresses over public
677 addresses. When
<literal>prefer-public
</literal>, enables the
678 privacy extensions, but prefers public addresses over
679 temporary addresses. When false, the privacy extensions
680 remain disabled. When
<literal>kernel
</literal>, the kernel's
681 default setting will be left in place. Defaults to
682 <literal>no
</literal>.
</para></listitem>
685 <term><varname>IPv6AcceptRA=
</varname></term>
686 <listitem><para>Takes a boolean. Controls IPv6 Router Advertisement (RA) reception support
687 for the interface. If true, RAs are accepted; if false, RAs are ignored, independently of the
688 local forwarding state. When RAs are accepted, they may trigger the start of the DHCPv6
689 client if the relevant flags are set in the RA data, or if no routers are found on the link.
</para>
691 <para>Further settings for the IPv6 RA support may be configured in the
692 <literal>[IPv6AcceptRA]
</literal> section, see below.
</para>
694 <para>Also see
<ulink
695 url=
"https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt">ip-sysctl.txt
</ulink> in the kernel
696 documentation regarding
<literal>accept_ra
</literal>, but note that systemd's setting of
697 <constant>1</constant> (i.e. true) corresponds to kernel's setting of
<constant>2</constant>.
</para>
699 <para>Note that kernel's implementation of the IPv6 RA protocol is always disabled,
700 regardless of this setting. If this option is enabled, a userspace implementation of the IPv6
701 RA protocol is used, and the kernel's own implementation remains disabled, since
702 <command>systemd-networkd
</command> needs to know all details supplied in the advertisements,
703 and these are not available from the kernel if the kernel's own implementation is used.
</para>
707 <term><varname>IPv6DuplicateAddressDetection=
</varname></term>
708 <listitem><para>Configures the amount of IPv6 Duplicate
709 Address Detection (DAD) probes to send. When unset, the kernel's default will be used.
713 <term><varname>IPv6HopLimit=
</varname></term>
714 <listitem><para>Configures IPv6 Hop Limit. For each router that
715 forwards the packet, the hop limit is decremented by
1. When the
716 hop limit field reaches zero, the packet is discarded.
717 When unset, the kernel's default will be used.
721 <term><varname>IPv4ProxyARP=
</varname></term>
722 <listitem><para>Takes a boolean. Configures proxy ARP for IPv4. Proxy ARP is the technique in which one host,
723 usually a router, answers ARP requests intended for another machine. By
"faking" its identity,
724 the router accepts responsibility for routing packets to the
"real" destination. (see
<ulink
725 url=
"https://tools.ietf.org/html/rfc1027">RFC
1027</ulink>.
726 When unset, the kernel's default will be used.
730 <term><varname>IPv6ProxyNDP=
</varname></term>
731 <listitem><para>Takes a boolean. Configures proxy NDP for IPv6. Proxy NDP (Neighbor Discovery
732 Protocol) is a technique for IPv6 to allow routing of addresses to a different
733 destination when peers expect them to be present on a certain physical link.
734 In this case a router answers Neighbour Advertisement messages intended for
735 another machine by offering its own MAC address as destination.
736 Unlike proxy ARP for IPv4, it is not enabled globally, but will only send Neighbour
737 Advertisement messages for addresses in the IPv6 neighbor proxy table,
738 which can also be shown by
<command>ip -
6 neighbour show proxy
</command>.
739 systemd-networkd will control the per-interface `proxy_ndp` switch for each configured
740 interface depending on this option.
741 When unset, the kernel's default will be used.
745 <term><varname>IPv6ProxyNDPAddress=
</varname></term>
746 <listitem><para>An IPv6 address, for which Neighbour Advertisement messages will be
747 proxied. This option may be specified more than once. systemd-networkd will add the
748 <option>IPv6ProxyNDPAddress=
</option> entries to the kernel's IPv6 neighbor proxy table.
749 This option implies
<option>IPv6ProxyNDP=yes
</option> but has no effect if
750 <option>IPv6ProxyNDP
</option> has been set to false. When unset, the kernel's default will be used.
754 <term><varname>IPv6PrefixDelegation=
</varname></term>
755 <listitem><para>Whether to enable or disable Router Advertisement sending on a link.
756 Allowed values are
<literal>static
</literal> which distributes prefixes as defined in
757 the
<literal>[IPv6PrefixDelegation]
</literal> and any
<literal>[IPv6Prefix]
</literal>
758 sections,
<literal>dhcpv6
</literal> which requests prefixes using a DHCPv6 client
759 configured for another link and any values configured in the
760 <literal>[IPv6PrefixDelegation]
</literal> section while ignoring all static prefix
761 configuration sections,
<literal>yes
</literal> which uses both static configuration
762 and DHCPv6, and
<literal>false
</literal> which turns off IPv6 prefix delegation
763 altogether. Defaults to
<literal>false
</literal>. See the
764 <literal>[IPv6PrefixDelegation]
</literal> and the
<literal>[IPv6Prefix]
</literal>
765 sections for more configuration options.
769 <term><varname>IPv6MTUBytes=
</varname></term>
770 <listitem><para>Configures IPv6 maximum transmission unit (MTU).
771 An integer greater than or equal to
1280 bytes. When unset, the kernel's default will be used.
775 <term><varname>Bridge=
</varname></term>
777 <para>The name of the bridge to add the link to. See
778 <citerefentry><refentrytitle>systemd.netdev
</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
783 <term><varname>Bond=
</varname></term>
785 <para>The name of the bond to add the link to. See
786 <citerefentry><refentrytitle>systemd.netdev
</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
791 <term><varname>VRF=
</varname></term>
793 <para>The name of the VRF to add the link to. See
794 <citerefentry><refentrytitle>systemd.netdev
</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
799 <term><varname>VLAN=
</varname></term>
801 <para>The name of a VLAN to create on the link. See
802 <citerefentry><refentrytitle>systemd.netdev
</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
803 This option may be specified more than once.
</para>
807 <term><varname>IPVLAN=
</varname></term>
809 <para>The name of a IPVLAN to create on the link. See
810 <citerefentry><refentrytitle>systemd.netdev
</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
811 This option may be specified more than once.
</para>
815 <term><varname>MACVLAN=
</varname></term>
817 <para>The name of a MACVLAN to create on the link. See
818 <citerefentry><refentrytitle>systemd.netdev
</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
819 This option may be specified more than once.
</para>
823 <term><varname>VXLAN=
</varname></term>
825 <para>The name of a VXLAN to create on the link. See
826 <citerefentry><refentrytitle>systemd.netdev
</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
827 This option may be specified more than once.
</para>
831 <term><varname>Tunnel=
</varname></term>
833 <para>The name of a Tunnel to create on the link. See
834 <citerefentry><refentrytitle>systemd.netdev
</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
835 This option may be specified more than once.
</para>
839 <term><varname>MACsec=
</varname></term>
841 <para>The name of a MACsec device to create on the link. See
842 <citerefentry><refentrytitle>systemd.netdev
</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
843 This option may be specified more than once.
</para>
847 <term><varname>ActiveSlave=
</varname></term>
849 <para>Takes a boolean. Specifies the new active slave. The
<literal>ActiveSlave=
</literal>
850 option is only valid for following modes:
851 <literal>active-backup
</literal>,
852 <literal>balance-alb
</literal> and
853 <literal>balance-tlb
</literal>. Defaults to false.
858 <term><varname>PrimarySlave=
</varname></term>
860 <para>Takes a boolean. Specifies which slave is the primary device. The specified
861 device will always be the active slave while it is available. Only when the
862 primary is off-line will alternate devices be used. This is useful when
863 one slave is preferred over another, e.g. when one slave has higher throughput
864 than another. The
<literal>PrimarySlave=
</literal> option is only valid for
866 <literal>active-backup
</literal>,
867 <literal>balance-alb
</literal> and
868 <literal>balance-tlb
</literal>. Defaults to false.
873 <term><varname>ConfigureWithoutCarrier=
</varname></term>
875 <para>Takes a boolean. Allows networkd to configure a specific link even if it has no carrier.
881 <term><varname>IgnoreCarrierLoss=
</varname></term>
883 <para>A boolean. Allows networkd to retain both the static and dynamic configuration of the
884 interface even if its carrier is lost. Defaults to false.
889 <term><varname>Xfrm=
</varname></term>
891 <para>The name of the xfrm to create on the link. See
892 <citerefentry><refentrytitle>systemd.netdev
</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
893 This option may be specified more than once.
</para>
897 <term><varname>KeepConfiguration=
</varname></term>
899 <para>Takes a boolean or one of
<literal>static
</literal>,
<literal>dhcp-on-stop
</literal>,
900 <literal>dhcp
</literal>. When
<literal>static
</literal>,
<command>systemd-networkd
</command>
901 will not drop static addresses and routes on starting up process. When set to
902 <literal>dhcp-on-stop
</literal>,
<command>systemd-networkd
</command> will not drop addresses
903 and routes on stopping the daemon. When
<literal>dhcp
</literal>,
904 the addresses and routes provided by a DHCP server will never be dropped even if the DHCP
905 lease expires. This is contrary to the DHCP specification, but may be the best choice if,
906 e.g., the root filesystem relies on this connection. The setting
<literal>dhcp
</literal>
907 implies
<literal>dhcp-on-stop
</literal>, and
<literal>yes
</literal> implies
908 <literal>dhcp
</literal> and
<literal>static
</literal>. Defaults to
<literal>no
</literal>.
918 <title>[Address] Section Options
</title>
920 <para>An
<literal>[Address]
</literal> section accepts the
921 following keys. Specify several
<literal>[Address]
</literal>
922 sections to configure several addresses.
</para>
924 <variablelist class='network-directives'
>
926 <term><varname>Address=
</varname></term>
928 <para>As in the
<literal>[Network]
</literal> section. This key is mandatory. Each
929 <literal>[Address]
</literal> section can contain one
<varname>Address=
</varname> setting.
</para>
933 <term><varname>Peer=
</varname></term>
935 <para>The peer address in a point-to-point connection.
936 Accepts the same format as the
<varname>Address=
</varname>
941 <term><varname>Broadcast=
</varname></term>
943 <para>The broadcast address, which must be in the format
945 <citerefentry project='man-pages'
><refentrytitle>inet_pton
</refentrytitle><manvolnum>3</manvolnum></citerefentry>.
946 This key only applies to IPv4 addresses. If it is not
947 given, it is derived from the
<varname>Address=
</varname>
952 <term><varname>Label=
</varname></term>
954 <para>An address label.
</para>
958 <term><varname>PreferredLifetime=
</varname></term>
960 <para>Allows the default
"preferred lifetime" of the address to be overridden.
961 Only three settings are accepted:
<literal>forever
</literal> or
<literal>infinity
</literal>
962 which is the default and means that the address never expires, and
<literal>0</literal> which means
963 that the address is considered immediately
"expired" and will not be used,
964 unless explicitly requested. A setting of PreferredLifetime=
0 is useful for
965 addresses which are added to be used only by a specific application,
966 which is then configured to use them explicitly.
</para>
970 <term><varname>Scope=
</varname></term>
972 <para>The scope of the address, which can be
<literal>global
</literal>,
973 <literal>link
</literal> or
<literal>host
</literal> or an unsigned integer ranges
0 to
255.
974 Defaults to
<literal>global
</literal>.
</para>
978 <term><varname>HomeAddress=
</varname></term>
980 <para>Takes a boolean. Designates this address the
"home address" as defined in
981 <ulink url=
"https://tools.ietf.org/html/rfc6275">RFC
6275</ulink>.
982 Supported only on IPv6. Defaults to false.
</para>
986 <term><varname>DuplicateAddressDetection=
</varname></term>
988 <para>Takes one of
<literal>ipv4
</literal>,
<literal>ipv6
</literal>,
989 <literal>both
</literal>,
<literal>none
</literal>. When
<literal>ipv4
</literal>,
990 performs IPv4 Duplicate Address Detection. See
991 <ulink url=
"https://tools.ietf.org/html/rfc5227">RFC
5224</ulink>.
992 When
<literal>ipv6
</literal>, performs IPv6 Duplicate Address Detection. See
993 <ulink url=
"https://tools.ietf.org/html/rfc4862">RFC
4862</ulink>.
994 Defaults to
<literal>ipv6
</literal>.
</para>
998 <term><varname>ManageTemporaryAddress=
</varname></term>
1000 <para>Takes a boolean. If true the kernel manage temporary addresses created
1001 from this one as template on behalf of Privacy Extensions
1002 <ulink url=
"https://tools.ietf.org/html/rfc3041">RFC
3041</ulink>. For this to become
1003 active, the use_tempaddr sysctl setting has to be set to a value greater than zero.
1004 The given address needs to have a prefix length of
64. This flag allows to use privacy
1005 extensions in a manually configured network, just like if stateless auto-configuration
1006 was active. Defaults to false.
</para>
1010 <term><varname>PrefixRoute=
</varname></term>
1012 <para>Takes a boolean. When adding or modifying an IPv6 address, the userspace
1013 application needs a way to suppress adding a prefix route. This is for example relevant
1014 together with IFA_F_MANAGERTEMPADDR, where userspace creates autoconf generated addresses,
1015 but depending on on-link, no route for the prefix should be added. Defaults to false.
</para>
1019 <term><varname>AutoJoin=
</varname></term>
1021 <para>Takes a boolean. Joining multicast group on ethernet level via
1022 <command>ip maddr
</command> command would not work if we have an Ethernet switch that does
1023 IGMP snooping since the switch would not replicate multicast packets on ports that did not
1024 have IGMP reports for the multicast addresses. Linux vxlan interfaces created via
1025 <command>ip link add vxlan
</command> or networkd's netdev kind vxlan have the group option
1026 that enables then to do the required join. By extending ip address command with option
1027 <literal>autojoin
</literal> we can get similar functionality for openvswitch (OVS) vxlan
1028 interfaces as well as other tunneling mechanisms that need to receive multicast traffic.
1029 Defaults to
<literal>no
</literal>.
</para>
1036 <title>[Neighbor] Section Options
</title>
1037 <para>A
<literal>[Neighbor]
</literal> section accepts the
1038 following keys. The neighbor section adds a permanent, static
1039 entry to the neighbor table (IPv6) or ARP table (IPv4) for
1040 the given hardware address on the links matched for the network.
1041 Specify several
<literal>[Neighbor]
</literal> sections to configure
1042 several static neighbors.
</para>
1044 <variablelist class='network-directives'
>
1046 <term><varname>Address=
</varname></term>
1048 <para>The IP address of the neighbor.
</para>
1052 <term><varname>LinkLayerAddress=
</varname></term>
1054 <para>The link layer address (MAC address or IP address) of the neighbor.
</para>
1061 <title>[IPv6AddressLabel] Section Options
</title>
1063 <para>An
<literal>[IPv6AddressLabel]
</literal> section accepts the
1064 following keys. Specify several
<literal>[IPv6AddressLabel]
</literal>
1065 sections to configure several address labels. IPv6 address labels are
1066 used for address selection. See
<ulink url=
"https://tools.ietf.org/html/rfc3484">RFC
3484</ulink>.
1067 Precedence is managed by userspace, and only the label itself is stored in the kernel
</para>
1069 <variablelist class='network-directives'
>
1071 <term><varname>Label=
</varname></term>
1073 <para> The label for the prefix (an unsigned integer) ranges
0 to
4294967294.
1074 0xffffffff is reserved. This key is mandatory.
</para>
1078 <term><varname>Prefix=
</varname></term>
1080 <para>IPv6 prefix is an address with a prefix length, separated by a slash
<literal>/
</literal> character.
1081 This key is mandatory.
</para>
1088 <title>[RoutingPolicyRule] Section Options
</title>
1090 <para>An
<literal>[RoutingPolicyRule]
</literal> section accepts the
1091 following keys. Specify several
<literal>[RoutingPolicyRule]
</literal>
1092 sections to configure several rules.
</para>
1094 <variablelist class='network-directives'
>
1096 <term><varname>TypeOfService=
</varname></term>
1098 <para>Specifies the type of service to match a number between
0 to
255.
</para>
1102 <term><varname>From=
</varname></term>
1104 <para>Specifies the source address prefix to match. Possibly followed by a slash and the prefix length.
</para>
1108 <term><varname>To=
</varname></term>
1110 <para>Specifies the destination address prefix to match. Possibly followed by a slash and the prefix length.
</para>
1114 <term><varname>FirewallMark=
</varname></term>
1116 <para>Specifies the iptables firewall mark value to match (a number between
1 and
4294967295).
</para>
1120 <term><varname>Table=
</varname></term>
1122 <para>Specifies the routing table identifier to lookup if the rule selector matches. Takes
1123 one of
<literal>default
</literal>,
<literal>main
</literal>, and
<literal>local
</literal>,
1124 or a number between
1 and
4294967295. Defaults to
<literal>main
</literal>.
</para>
1128 <term><varname>Priority=
</varname></term>
1130 <para>Specifies the priority of this rule.
<varname>Priority=
</varname> is an unsigned
1131 integer. Higher number means lower priority, and rules get processed in order of increasing number.
</para>
1135 <term><varname>IncomingInterface=
</varname></term>
1137 <para>Specifies incoming device to match. If the interface is loopback, the rule only matches packets originating from this host.
</para>
1141 <term><varname>OutgoingInterface=
</varname></term>
1143 <para>Specifies the outgoing device to match. The outgoing interface is only available for packets originating from local sockets that are bound to a device.
</para>
1147 <term><varname>SourcePort=
</varname></term>
1149 <para>Specifies the source IP port or IP port range match in forwarding information base (FIB) rules.
1150 A port range is specified by the lower and upper port separated by a dash. Defaults to unset.
</para>
1154 <term><varname>DestinationPort=
</varname></term>
1156 <para>Specifies the destination IP port or IP port range match in forwarding information base (FIB) rules.
1157 A port range is specified by the lower and upper port separated by a dash. Defaults to unset.
</para>
1161 <term><varname>IPProtocol=
</varname></term>
1163 <para>Specifies the IP protocol to match in forwarding information base (FIB) rules. Takes IP protocol name such as
<literal>tcp
</literal>,
1164 <literal>udp
</literal> or
<literal>sctp
</literal>, or IP protocol number such as
<literal>6</literal> for
<literal>tcp
</literal> or
1165 <literal>17</literal> for
<literal>udp
</literal>.
1166 Defaults to unset.
</para>
1170 <term><varname>InvertRule=
</varname></term>
1172 <para>A boolean. Specifies whether the rule to be inverted. Defaults to false.
</para>
1176 <term><varname>Family=
</varname></term>
1178 <para>Takes a special value
<literal>ipv4
</literal>,
<literal>ipv6
</literal>, or
1179 <literal>both
</literal>. By default, the address family is determined by the address
1180 specified in
<varname>To=
</varname> or
<varname>From=
</varname>. If neither
1181 <varname>To=
</varname> nor
<varname>From=
</varname> are specified, then defaults to
1182 <literal>ipv4
</literal>.
</para>
1189 <title>[NextHop] Section Options
</title>
1190 <para>The
<literal>[NextHop]
</literal> section accepts the
1191 following keys. Specify several
<literal>[NextHop]
</literal>
1192 sections to configure several nexthop. Nexthop is used to manipulate entries in the kernel's nexthop
1195 <variablelist class='network-directives'
>
1197 <term><varname>Gateway=
</varname></term>
1199 <para>As in the
<literal>[Network]
</literal> section. This is mandatory.
</para>
1203 <term><varname>Id=
</varname></term>
1205 <para>The id of the nexthop (an unsigned integer). If unspecified or '
0' then automatically chosen by kernel.
</para>
1212 <title>[Route] Section Options
</title>
1213 <para>The
<literal>[Route]
</literal> section accepts the
1214 following keys. Specify several
<literal>[Route]
</literal>
1215 sections to configure several routes.
</para>
1217 <variablelist class='network-directives'
>
1219 <term><varname>Gateway=
</varname></term>
1221 <para>As in the
<literal>[Network]
</literal> section.
</para>
1225 <term><varname>GatewayOnLink=
</varname></term>
1227 <para>Takes a boolean. If set to true, the kernel does not have
1228 to check if the gateway is reachable directly by the current machine (i.e., the kernel does
1229 not need to check if the gateway is attached to the local network), so that we can insert the
1230 route in the kernel table without it being complained about. Defaults to
<literal>no
</literal>.
1235 <term><varname>Destination=
</varname></term>
1237 <para>The destination prefix of the route. Possibly
1238 followed by a slash and the prefix length. If omitted, a
1239 full-length host route is assumed.
</para>
1243 <term><varname>Source=
</varname></term>
1245 <para>The source prefix of the route. Possibly followed by
1246 a slash and the prefix length. If omitted, a full-length
1247 host route is assumed.
</para>
1251 <term><varname>Metric=
</varname></term>
1253 <para>The metric of the route (an unsigned integer).
</para>
1257 <term><varname>IPv6Preference=
</varname></term>
1259 <para>Specifies the route preference as defined in
<ulink
1260 url=
"https://tools.ietf.org/html/rfc4191">RFC4191
</ulink> for Router Discovery messages.
1261 Which can be one of
<literal>low
</literal> the route has a lowest priority,
1262 <literal>medium
</literal> the route has a default priority or
1263 <literal>high
</literal> the route has a highest priority.
</para>
1267 <term><varname>Scope=
</varname></term>
1269 <para>The scope of the route, which can be
<literal>global
</literal>,
<literal>site
</literal>,
1270 <literal>link
</literal>,
<literal>host
</literal>, or
<literal>nowhere
</literal>. For IPv4 route,
1271 defaults to
<literal>host
</literal> if
<varname>Type=
</varname> is
<literal>local
</literal>
1272 or
<literal>nat
</literal>, and
<literal>link
</literal> if
<varname>Type=
</varname> is
1273 <literal>broadcast
</literal>,
<literal>multicast
</literal>, or
<literal>anycast
</literal>.
1274 In other cases, defaults to
<literal>global
</literal>.
</para>
1278 <term><varname>PreferredSource=
</varname></term>
1280 <para>The preferred source address of the route. The address
1281 must be in the format described in
1282 <citerefentry project='man-pages'
><refentrytitle>inet_pton
</refentrytitle><manvolnum>3</manvolnum></citerefentry>.
</para>
1286 <term><varname>Table=
</varname></term>
1288 <para>The table identifier for the route. Takes
<literal>default
</literal>,
1289 <literal>main
</literal>,
<literal>local
</literal> or a number between
1 and
4294967295.
1290 The table can be retrieved using
<command>ip route show table
<replaceable>num
</replaceable></command>.
1291 If unset and
<varname>Type=
</varname> is
<literal>local
</literal>,
<literal>broadcast
</literal>,
1292 <literal>anycast
</literal>, or
<literal>nat
</literal>, then
<literal>local
</literal> is used.
1293 In other cases, defaults to
<literal>main
</literal>.
1298 <term><varname>Protocol=
</varname></term>
1300 <para>The protocol identifier for the route. Takes a number between
0 and
255 or the special values
1301 <literal>kernel
</literal>,
<literal>boot
</literal>,
<literal>static
</literal>,
1302 <literal>ra
</literal> and
<literal>dhcp
</literal>. Defaults to
<literal>static
</literal>.
1307 <term><varname>Type=
</varname></term>
1309 <para>Specifies the type for the route. Takes one of
<literal>unicast
</literal>,
1310 <literal>local
</literal>,
<literal>broadcast
</literal>,
<literal>anycast
</literal>,
1311 <literal>multicast
</literal>,
<literal>blackhole
</literal>,
<literal>unreachable
</literal>,
1312 <literal>prohibit
</literal>,
<literal>throw
</literal>,
<literal>nat
</literal>, and
1313 <literal>xresolve
</literal>. If
<literal>unicast
</literal>, a regular route is defined, i.e. a
1314 route indicating the path to take to a destination network address. If
<literal>blackhole
</literal>, packets
1315 to the defined route are discarded silently. If
<literal>unreachable
</literal>, packets to the defined route
1316 are discarded and the ICMP message
"Host Unreachable" is generated. If
<literal>prohibit
</literal>, packets
1317 to the defined route are discarded and the ICMP message
"Communication Administratively Prohibited" is
1318 generated. If
<literal>throw
</literal>, route lookup in the current routing table will fail and the route
1319 selection process will return to Routing Policy Database (RPDB). Defaults to
<literal>unicast
</literal>.
1324 <term><varname>InitialCongestionWindow=
</varname></term>
1326 <para>The TCP initial congestion window is used during the start of a TCP connection. During the start of a TCP
1327 session, when a client requests a resource, the server's initial congestion window determines how many data bytes
1328 will be sent during the initial burst of data. Takes a size in bytes between
1 and
4294967295 (
2^
32 -
1). The usual
1329 suffixes K, M, G are supported and are understood to the base of
1024. When unset, the kernel's default will be used.
1334 <term><varname>InitialAdvertisedReceiveWindow=
</varname></term>
1336 <para>The TCP initial advertised receive window is the amount of receive data (in bytes) that can initially be buffered at one time
1337 on a connection. The sending host can send only that amount of data before waiting for an acknowledgment and window update
1338 from the receiving host. Takes a size in bytes between
1 and
4294967295 (
2^
32 -
1). The usual suffixes K, M, G are supported
1339 and are understood to the base of
1024. When unset, the kernel's default will be used.
1344 <term><varname>QuickAck=
</varname></term>
1346 <para>Takes a boolean. When true enables TCP quick ack mode for the route. When unset, the kernel's default will be used.
1351 <term><varname>FastOpenNoCookie=
</varname></term>
1353 <para>Takes a boolean. When true enables TCP fastopen without a cookie on a per-route basis.
1354 When unset, the kernel's default will be used.
1359 <term><varname>TTLPropagate=
</varname></term>
1361 <para>Takes a boolean. When true enables TTL propagation at Label Switched Path (LSP) egress.
1362 When unset, the kernel's default will be used.
1367 <term><varname>MTUBytes=
</varname></term>
1369 <para>The maximum transmission unit in bytes to set for the
1370 route. The usual suffixes K, M, G, are supported and are
1371 understood to the base of
1024.
</para>
1372 <para>Note that if IPv6 is enabled on the interface, and the MTU is chosen
1373 below
1280 (the minimum MTU for IPv6) it will automatically be increased to this value.
</para>
1377 <term><varname>IPServiceType=
</varname></term>
1379 <para>Takes string;
<literal>CS6
</literal> or
<literal>CS4
</literal>. Used to set IP
1380 service type to CS6 (network control) or CS4 (Realtime). Defaults to CS6.
</para>
1387 <title>[DHCPv4] Section Options
</title>
1388 <para>The
<literal>[DHCPv4]
</literal> section configures the
1389 DHCPv4 client, if it is enabled with the
1390 <varname>DHCP=
</varname> setting described above:
</para>
1392 <variablelist class='network-directives'
>
1394 <term><varname>UseDNS=
</varname></term>
1396 <para>When true (the default), the DNS servers received
1397 from the DHCP server will be used and take precedence over
1398 any statically configured ones.
</para>
1400 <para>This corresponds to the
<option>nameserver
</option>
1401 option in
<citerefentry
1402 project='man-pages'
><refentrytitle>resolv.conf
</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
</para>
1406 <term><varname>RoutesToDNS=
</varname></term>
1408 <para>When true, the routes to the DNS servers received from the DHCP server will be
1409 configured. When
<varname>UseDNS=
</varname> is disabled, this setting is ignored.
1410 Defaults to false.
</para>
1414 <term><varname>UseNTP=
</varname></term>
1416 <para>When true (the default), the NTP servers received
1417 from the DHCP server will be used by systemd-timesyncd
1418 and take precedence over any statically configured ones.
</para>
1422 <term><varname>UseSIP=
</varname></term>
1424 <para>When true (the default), the SIP servers received
1425 from the DHCP server will be saved at the state files and can be
1426 read via
<function>sd_network_link_get_sip_servers()
</function> function.
</para>
1430 <term><varname>UseMTU=
</varname></term>
1432 <para>When true, the interface maximum transmission unit
1433 from the DHCP server will be used on the current link.
1434 If
<varname>MTUBytes=
</varname> is set, then this setting is ignored.
1435 Defaults to false.
</para>
1439 <term><varname>Anonymize=
</varname></term>
1441 <para>Takes a boolean. When true, the options sent to the DHCP server will
1442 follow the
<ulink url=
"https://tools.ietf.org/html/rfc7844">RFC
7844</ulink>
1443 (Anonymity Profiles for DHCP Clients) to minimize disclosure of identifying information.
1444 Defaults to false.
</para>
1446 <para>This option should only be set to true when
1447 <varname>MACAddressPolicy=
</varname> is set to
<literal>random
</literal>
1449 project='man-pages'
><refentrytitle>systemd.link
</refentrytitle><manvolnum>5</manvolnum></citerefentry>).
</para>
1451 <para>Note that this configuration will overwrite others.
1452 In concrete, the following variables will be ignored:
1453 <varname>SendHostname=
</varname>,
<varname>ClientIdentifier=
</varname>,
1454 <varname>UseRoutes=
</varname>,
<varname>SendHostname=
</varname>,
1455 <varname>UseMTU=
</varname>,
<varname>VendorClassIdentifier=
</varname>,
1456 <varname>UseTimezone=
</varname>.
</para>
1458 <para>With this option enabled DHCP requests will mimic those generated by Microsoft Windows, in
1459 order to reduce the ability to fingerprint and recognize installations. This means DHCP request
1460 sizes will grow and lease data will be more comprehensive than normally, though most of the
1461 requested data is not actually used.
</para>
1465 <term><varname>SendHostname=
</varname></term>
1467 <para>When true (the default), the machine's hostname will be sent to the DHCP server.
1468 Note that the machine's hostname must consist only of
7-bit ASCII lower-case characters and
1469 no spaces or dots, and be formatted as a valid DNS domain name. Otherwise, the hostname is not
1470 sent even if this is set to true.
</para>
1474 <term><varname>UseHostname=
</varname></term>
1476 <para>When true (the default), the hostname received from
1477 the DHCP server will be set as the transient hostname of the system.
1482 <term><varname>Hostname=
</varname></term>
1484 <para>Use this value for the hostname which is sent to the DHCP server, instead of machine's hostname.
1485 Note that the specified hostname must consist only of
7-bit ASCII lower-case characters and
1486 no spaces or dots, and be formatted as a valid DNS domain name.
</para>
1490 <term><varname>UseDomains=
</varname></term>
1492 <para>Takes a boolean, or the special value
<literal>route
</literal>. When true, the domain name
1493 received from the DHCP server will be used as DNS search domain over this link, similar to the effect of
1494 the
<option>Domains=
</option> setting. If set to
<literal>route
</literal>, the domain name received from
1495 the DHCP server will be used for routing DNS queries only, but not for searching, similar to the effect of
1496 the
<option>Domains=
</option> setting when the argument is prefixed with
<literal>~
</literal>. Defaults to
1499 <para>It is recommended to enable this option only on trusted networks, as setting this affects resolution
1500 of all host names, in particular of single-label names. It is generally safer to use the supplied domain
1501 only as routing domain, rather than as search domain, in order to not have it affect local resolution of
1502 single-label names.
</para>
1504 <para>When set to true, this setting corresponds to the
<option>domain
</option> option in
<citerefentry
1505 project='man-pages'
><refentrytitle>resolv.conf
</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
</para>
1509 <term><varname>UseRoutes=
</varname></term>
1511 <para>When true (the default), the static routes will be requested from the DHCP server and added to the
1512 routing table with a metric of
1024, and a scope of
"global",
"link" or
"host", depending on the route's
1513 destination and gateway. If the destination is on the local host, e.g.,
127.x.x.x, or the same as the
1514 link's own address, the scope will be set to
"host". Otherwise if the gateway is null (a direct route), a
1515 "link" scope will be used. For anything else, scope defaults to
"global".
</para>
1520 <term><varname>UseTimezone=
</varname></term>
1522 <listitem><para>When true, the timezone received from the
1523 DHCP server will be set as timezone of the local
1524 system. Defaults to
<literal>no
</literal>.
</para></listitem>
1528 <term><varname>ClientIdentifier=
</varname></term>
1530 <para>The DHCPv4 client identifier to use. Takes one of
<literal>mac
</literal>,
<literal>duid
</literal> or
<literal>duid-only
</literal>.
1531 If set to
<literal>mac
</literal>, the MAC address of the link is used.
1532 If set to
<literal>duid
</literal>, an RFC4361-compliant Client ID, which is the combination of IAID and DUID (see below), is used.
1533 If set to
<literal>duid-only
</literal>, only DUID is used, this may not be RFC compliant, but some setups may require to use this.
1534 Defaults to
<literal>duid
</literal>.
</para>
1539 <term><varname>VendorClassIdentifier=
</varname></term>
1541 <para>The vendor class identifier used to identify vendor
1542 type and configuration.
</para>
1547 <term><varname>UserClass=
</varname></term>
1549 <para>A DHCPv4 client can use UserClass option to identify the type or category of user or applications
1550 it represents. The information contained in this option is a string that represents the user class of which
1551 the client is a member. Each class sets an identifying string of information to be used by the DHCP
1552 service to classify clients. Takes a whitespace-separated list of strings.
</para>
1557 <term><varname>MaxAttempts=
</varname></term>
1559 <para>Specifies how many times the DHCPv4 client configuration should be attempted. Takes a
1560 number or
<literal>infinity
</literal>. Defaults to
<literal>infinity
</literal>.
1561 Note that the time between retries is increased exponentially, so the network will not be
1562 overloaded even if this number is high.
</para>
1567 <term><varname>DUIDType=
</varname></term>
1569 <para>Override the global
<varname>DUIDType
</varname> setting for this network. See
1570 <citerefentry><refentrytitle>networkd.conf
</refentrytitle><manvolnum>5</manvolnum></citerefentry>
1571 for a description of possible values.
</para>
1576 <term><varname>DUIDRawData=
</varname></term>
1578 <para>Override the global
<varname>DUIDRawData
</varname> setting for this network. See
1579 <citerefentry><refentrytitle>networkd.conf
</refentrytitle><manvolnum>5</manvolnum></citerefentry>
1580 for a description of possible values.
</para>
1585 <term><varname>IAID=
</varname></term>
1587 <para>The DHCP Identity Association Identifier (IAID) for the interface, a
32-bit unsigned integer.
</para>
1592 <term><varname>RequestBroadcast=
</varname></term>
1594 <para>Request the server to use broadcast messages before
1595 the IP address has been configured. This is necessary for
1596 devices that cannot receive RAW packets, or that cannot
1597 receive packets at all before an IP address has been
1598 configured. On the other hand, this must not be enabled on
1599 networks where broadcasts are filtered out.
</para>
1604 <term><varname>RouteMetric=
</varname></term>
1606 <para>Set the routing metric for routes specified by the
1612 <term><varname>RouteTable=
<replaceable>num
</replaceable></varname></term>
1614 <para>The table identifier for DHCP routes (a number between
1 and
4294967295, or
0 to unset).
1615 The table can be retrieved using
<command>ip route show table
<replaceable>num
</replaceable></command>.
1617 <para>When used in combination with
<varname>VRF=
</varname> the
1618 VRF's routing table is used unless this parameter is specified.
1624 <term><varname>ListenPort=
</varname></term>
1626 <para>Allow setting custom port for the DHCP client to listen on.
</para>
1631 <term><varname>SendRelease=
</varname></term>
1633 <para>When true, the DHCPv4 client sends a DHCP release packet when it stops.
1634 Defaults to true.
</para>
1639 <term><varname>BlackList=
</varname></term>
1641 <para>A whitespace-separated list of IPv4 addresses. DHCP offers from servers in the list are rejected.
</para>
1646 <term><varname>RequestOptions=
</varname></term>
1648 <para>A whitespace-separated list of integers in the range
1–
254.
</para>
1653 <term><varname>SendOption=
</varname></term>
1655 <para>Send an arbitrary option in the DHCPv4 request. Takes a DHCP option number, data type
1656 and data separated with a colon
1657 (
<literal><replaceable>option
</replaceable>:
<replaceable>type
</replaceable>:
<replaceable>value
</replaceable></literal>).
1658 The option number must be an interger in the range
1.
.254. The type takes one of
<literal>uint8
</literal>,
1659 <literal>uint16
</literal>,
<literal>uint32
</literal>,
<literal>ipv4address
</literal>, or
1660 <literal>string
</literal>. Special characters in the data string may be escaped using
1661 <ulink url=
"https://en.wikipedia.org/wiki/Escape_sequences_in_C#Table_of_escape_sequences">C-style
1662 escapes
</ulink>. This setting can be specified multiple times. If an empty string is specified,
1663 then all options specified earlier are cleared. Defaults to unset.
</para>
1670 <title>[DHCPv6] Section Options
</title>
1671 <para>The
<literal>[DHCPv6]
</literal> section configures the DHCPv6 client, if it is enabled with the
1672 <varname>DHCP=
</varname> setting described above, or invoked by the IPv6 Router Advertisement:
</para>
1674 <variablelist class='network-directives'
>
1676 <term><varname>UseDNS=
</varname></term>
1677 <term><varname>UseNTP=
</varname></term>
1679 <para>As in the
<literal>[DHCPv4]
</literal> section.
</para>
1684 <term><varname>RapidCommit=
</varname></term>
1686 <para>Takes a boolean. The DHCPv6 client can obtain configuration parameters from a DHCPv6 server through
1687 a rapid two-message exchange (solicit and reply). When the rapid commit option is enabled by both
1688 the DHCPv6 client and the DHCPv6 server, the two-message exchange is used, rather than the default
1689 four-method exchange (solicit, advertise, request, and reply). The two-message exchange provides
1690 faster client configuration and is beneficial in environments in which networks are under a heavy load.
1691 See
<ulink url=
"https://tools.ietf.org/html/rfc3315#section-17.2.1">RFC
3315</ulink> for details.
1692 Defaults to true.
</para>
1697 <term><varname>ForceDHCPv6PDOtherInformation=
</varname></term>
1699 <para>Takes a boolean that enforces DHCPv6 stateful mode when the 'Other information' bit is set in
1700 Router Advertisement messages. By default setting only the 'O' bit in Router Advertisements
1701 makes DHCPv6 request network information in a stateless manner using a two-message Information
1702 Request and Information Reply message exchange.
1703 <ulink url=
"https://tools.ietf.org/html/rfc7084">RFC
7084</ulink>, requirement WPD-
4, updates
1704 this behavior for a Customer Edge router so that stateful DHCPv6 Prefix Delegation is also
1705 requested when only the 'O' bit is set in Router Advertisements. This option enables such a CE
1706 behavior as it is impossible to automatically distinguish the intention of the 'O' bit otherwise.
1707 By default this option is set to 'false', enable it if no prefixes are delegated when the device
1708 should be acting as a CE router.
</para>
1713 <term><varname>PrefixDelegationHint=
</varname></term>
1715 <para>Takes an IPv6 address with prefix length as
<varname>Address=
</varname> in
1716 the
"[Network]" section. Specifies the DHCPv6 client for the requesting router to include
1717 a prefix-hint in the DHCPv6 solicitation. Prefix ranges
1-
128. Defaults to unset.
</para>
1724 <title>[IPv6AcceptRA] Section Options
</title>
1725 <para>The
<literal>[IPv6AcceptRA]
</literal> section configures the IPv6 Router Advertisement
1726 (RA) client, if it is enabled with the
<varname>IPv6AcceptRA=
</varname> setting described
1729 <variablelist class='network-directives'
>
1731 <term><varname>UseDNS=
</varname></term>
1733 <para>When true (the default), the DNS servers received in the Router Advertisement will be used and take
1734 precedence over any statically configured ones.
</para>
1736 <para>This corresponds to the
<option>nameserver
</option> option in
<citerefentry
1737 project='man-pages'
><refentrytitle>resolv.conf
</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
</para>
1742 <term><varname>UseDomains=
</varname></term>
1744 <para>Takes a boolean, or the special value
<literal>route
</literal>. When true, the domain name
1745 received via IPv6 Router Advertisement (RA) will be used as DNS search domain over this link, similar to
1746 the effect of the
<option>Domains=
</option> setting. If set to
<literal>route
</literal>, the domain name
1747 received via IPv6 RA will be used for routing DNS queries only, but not for searching, similar to the
1748 effect of the
<option>Domains=
</option> setting when the argument is prefixed with
1749 <literal>~
</literal>. Defaults to false.
</para>
1751 <para>It is recommended to enable this option only on trusted networks, as setting this affects resolution
1752 of all host names, in particular of single-label names. It is generally safer to use the supplied domain
1753 only as routing domain, rather than as search domain, in order to not have it affect local resolution of
1754 single-label names.
</para>
1756 <para>When set to true, this setting corresponds to the
<option>domain
</option> option in
<citerefentry
1757 project='man-pages'
><refentrytitle>resolv.conf
</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
</para>
1762 <term><varname>RouteTable=
<replaceable>num
</replaceable></varname></term>
1764 <para>The table identifier for the routes received in the Router Advertisement
1765 (a number between
1 and
4294967295, or
0 to unset).
1766 The table can be retrieved using
<command>ip route show table
<replaceable>num
</replaceable></command>.
1772 <term><varname>UseAutonomousPrefix=
</varname></term>
1774 <para>When true (the default), the autonomous prefix received in the Router Advertisement will be used and take
1775 precedence over any statically configured ones.
</para>
1780 <term><varname>UseOnLinkPrefix=
</varname></term>
1782 <para>When true (the default), the onlink prefix received in the Router Advertisement will be used and take
1783 precedence over any statically configured ones.
</para>
1788 <term><varname>BlackList=
</varname></term>
1790 <para>A whitespace-separated list of IPv6 prefixes. IPv6 prefixes supplied via router advertisements in the list are ignored.
</para>
1798 <title>[DHCPServer] Section Options
</title>
1799 <para>The
<literal>[DHCPServer]
</literal> section contains
1800 settings for the DHCP server, if enabled via the
1801 <varname>DHCPServer=
</varname> option described above:
</para>
1803 <variablelist class='network-directives'
>
1806 <term><varname>PoolOffset=
</varname></term>
1807 <term><varname>PoolSize=
</varname></term>
1809 <listitem><para>Configures the pool of addresses to hand out. The pool
1810 is a contiguous sequence of IP addresses in the subnet configured for
1811 the server address, which does not include the subnet nor the broadcast
1812 address.
<varname>PoolOffset=
</varname> takes the offset of the pool
1813 from the start of subnet, or zero to use the default value.
1814 <varname>PoolSize=
</varname> takes the number of IP addresses in the
1815 pool or zero to use the default value. By default, the pool starts at
1816 the first address after the subnet address and takes up the rest of
1817 the subnet, excluding the broadcast address. If the pool includes
1818 the server address (the default), this is reserved and not handed
1819 out to clients.
</para></listitem>
1823 <term><varname>DefaultLeaseTimeSec=
</varname></term>
1824 <term><varname>MaxLeaseTimeSec=
</varname></term>
1826 <listitem><para>Control the default and maximum DHCP lease
1827 time to pass to clients. These settings take time values in seconds or
1828 another common time unit, depending on the suffix. The default
1829 lease time is used for clients that did not ask for a specific
1830 lease time. If a client asks for a lease time longer than the
1831 maximum lease time, it is automatically shortened to the
1832 specified time. The default lease time defaults to
1h, the
1833 maximum lease time to
12h. Shorter lease times are beneficial
1834 if the configuration data in DHCP leases changes frequently
1835 and clients shall learn the new settings with shorter
1836 latencies. Longer lease times reduce the generated DHCP
1837 network traffic.
</para></listitem>
1841 <term><varname>EmitDNS=
</varname></term>
1842 <term><varname>DNS=
</varname></term>
1844 <listitem><para>Takes a boolean. Configures whether the DHCP leases handed out
1845 to clients shall contain DNS server information. Defaults to
<literal>yes
</literal>.
1846 The DNS servers to pass to clients may be configured with the
1847 <varname>DNS=
</varname> option, which takes a list of IPv4
1848 addresses. If the
<varname>EmitDNS=
</varname> option is
1849 enabled but no servers configured, the servers are
1850 automatically propagated from an
"uplink" interface that has
1851 appropriate servers set. The
"uplink" interface is determined
1852 by the default route of the system with the highest
1853 priority. Note that this information is acquired at the time
1854 the lease is handed out, and does not take uplink interfaces
1855 into account that acquire DNS or NTP server information at a
1856 later point. DNS server propagation does not take
1857 <filename>/etc/resolv.conf
</filename> into account. Also, note
1858 that the leases are not refreshed if the uplink network
1859 configuration changes. To ensure clients regularly acquire the
1860 most current uplink DNS server information, it is thus
1861 advisable to shorten the DHCP lease time via
1862 <varname>MaxLeaseTimeSec=
</varname> described
1863 above.
</para></listitem>
1867 <term><varname>EmitNTP=
</varname></term>
1868 <term><varname>NTP=
</varname></term>
1870 <listitem><para>Similar to the
<varname>EmitDNS=
</varname> and
1871 <varname>DNS=
</varname> settings described above, these
1872 settings configure whether and what NTP server information
1873 shall be emitted as part of the DHCP lease. The same syntax,
1874 propagation semantics and defaults apply as for
1875 <varname>EmitDNS=
</varname> and
1876 <varname>DNS=
</varname>.
</para></listitem>
1880 <term><varname>EmitSIP=
</varname></term>
1881 <term><varname>SIP=
</varname></term>
1883 <listitem><para>Similar to the
<varname>EmitDNS=
</varname> and
1884 <varname>DNS=
</varname> settings described above, these
1885 settings configure whether and what SIP server information
1886 shall be emitted as part of the DHCP lease. The same syntax,
1887 propagation semantics and defaults apply as for
1888 <varname>EmitDNS=
</varname> and
1889 <varname>DNS=
</varname>.
</para></listitem>
1893 <term><varname>EmitRouter=
</varname></term>
1895 <listitem><para>Similar to the
<varname>EmitDNS=
</varname>
1896 setting described above, this setting configures whether the
1897 DHCP lease should contain the router option. The same syntax,
1898 propagation semantics and defaults apply as for
1899 <varname>EmitDNS=
</varname>.
</para></listitem>
1903 <term><varname>EmitTimezone=
</varname></term>
1904 <term><varname>Timezone=
</varname></term>
1906 <listitem><para>Takes a boolean. Configures whether the DHCP leases handed out
1907 to clients shall contain timezone information. Defaults to
<literal>yes
</literal>. The
1908 <varname>Timezone=
</varname> setting takes a timezone string
1909 (such as
<literal>Europe/Berlin
</literal> or
1910 <literal>UTC
</literal>) to pass to clients. If no explicit
1911 timezone is set, the system timezone of the local host is
1912 propagated, as determined by the
1913 <filename>/etc/localtime
</filename> symlink.
</para></listitem>
1917 <term><varname>SendOption=
</varname></term>
1919 <para>Send a raw option with value via DHCPv4 server. Takes a DHCP option number, data type
1920 and data (
<literal><replaceable>option
</replaceable>:
<replaceable>type
</replaceable>:
<replaceable>value
</replaceable></literal>).
1921 The option number is an integer in the range
1.
.254. The type takes one of
<literal>uint8
</literal>,
1922 <literal>uint16
</literal>,
<literal>uint32
</literal>,
<literal>ipv4address
</literal>, or
1923 <literal>string
</literal>. Special characters in the data string may be escaped using
1924 <ulink url=
"https://en.wikipedia.org/wiki/Escape_sequences_in_C#Table_of_escape_sequences">C-style
1925 escapes
</ulink>. This setting can be specified multiple times. If an empty string is specified,
1926 then all options specified earlier are cleared. Defaults to unset.
</para>
1934 <title>[IPv6PrefixDelegation] Section Options
</title>
1935 <para>The
<literal>[IPv6PrefixDelegation]
</literal> section contains
1936 settings for sending IPv6 Router Advertisements and whether to act as
1937 a router, if enabled via the
<varname>IPv6PrefixDelegation=
</varname>
1938 option described above. IPv6 network prefixes are defined with one or
1939 more
<literal>[IPv6Prefix]
</literal> sections.
</para>
1941 <variablelist class='network-directives'
>
1944 <term><varname>Managed=
</varname></term>
1945 <term><varname>OtherInformation=
</varname></term>
1947 <listitem><para>Takes a boolean. Controls whether a DHCPv6 server is used to acquire IPv6
1948 addresses on the network link when
<varname>Managed=
</varname>
1949 is set to
<literal>true
</literal> or if only additional network
1950 information can be obtained via DHCPv6 for the network link when
1951 <varname>OtherInformation=
</varname> is set to
1952 <literal>true
</literal>. Both settings default to
1953 <literal>false
</literal>, which means that a DHCPv6 server is not being
1954 used.
</para></listitem>
1958 <term><varname>RouterLifetimeSec=
</varname></term>
1960 <listitem><para>Takes a timespan. Configures the IPv6 router lifetime in seconds. If set,
1961 this host also announces itself in Router Advertisements as an IPv6
1962 router for the network link. When unset, the host is not acting as a router.
</para>
1967 <term><varname>RouterPreference=
</varname></term>
1969 <listitem><para>Configures IPv6 router preference if
1970 <varname>RouterLifetimeSec=
</varname> is non-zero. Valid values are
1971 <literal>high
</literal>,
<literal>medium
</literal> and
1972 <literal>low
</literal>, with
<literal>normal
</literal> and
1973 <literal>default
</literal> added as synonyms for
1974 <literal>medium
</literal> just to make configuration easier. See
1975 <ulink url=
"https://tools.ietf.org/html/rfc4191">RFC
4191</ulink>
1976 for details. Defaults to
<literal>medium
</literal>.
</para></listitem>
1980 <term><varname>EmitDNS=
</varname></term>
1981 <term><varname>DNS=
</varname></term>
1983 <listitem><para><varname>DNS=
</varname> specifies a list of recursive
1984 DNS server IPv6 addresses that distributed via Router Advertisement
1985 messages when
<varname>EmitDNS=
</varname> is true. If
<varname>DNS=
1986 </varname> is empty, DNS servers are read from the
1987 <literal>[Network]
</literal> section. If the
1988 <literal>[Network]
</literal> section does not contain any DNS servers
1989 either, DNS servers from the uplink with the highest priority default
1990 route are used. When
<varname>EmitDNS=
</varname> is false, no DNS server
1991 information is sent in Router Advertisement messages.
1992 <varname>EmitDNS=
</varname> defaults to true.
1997 <term><varname>EmitDomains=
</varname></term>
1998 <term><varname>Domains=
</varname></term>
2000 <listitem><para>A list of DNS search domains distributed via Router
2001 Advertisement messages when
<varname>EmitDomains=
</varname> is true. If
2002 <varname>Domains=
</varname> is empty, DNS search domains are read from the
2003 <literal>[Network]
</literal> section. If the
<literal>[Network]
</literal>
2004 section does not contain any DNS search domains either, DNS search
2005 domains from the uplink with the highest priority default route are
2006 used. When
<varname>EmitDomains=
</varname> is false, no DNS search domain
2007 information is sent in Router Advertisement messages.
2008 <varname>EmitDomains=
</varname> defaults to true.
2013 <term><varname>DNSLifetimeSec=
</varname></term>
2015 <listitem><para>Lifetime in seconds for the DNS server addresses listed
2016 in
<varname>DNS=
</varname> and search domains listed in
2017 <varname>Domains=
</varname>.
</para></listitem>
2024 <title>[IPv6Prefix] Section Options
</title>
2025 <para>One or more
<literal>[IPv6Prefix]
</literal> sections contain the IPv6
2026 prefixes that are announced via Router Advertisements. See
2027 <ulink url=
"https://tools.ietf.org/html/rfc4861">RFC
4861</ulink>
2028 for further details.
</para>
2030 <variablelist class='network-directives'
>
2033 <term><varname>AddressAutoconfiguration=
</varname></term>
2034 <term><varname>OnLink=
</varname></term>
2036 <listitem><para>Takes a boolean to specify whether IPv6 addresses can be
2037 autoconfigured with this prefix and whether the prefix can be used for
2038 onlink determination. Both settings default to
<literal>true
</literal>
2039 in order to ease configuration.
2044 <term><varname>Prefix=
</varname></term>
2046 <listitem><para>The IPv6 prefix that is to be distributed to hosts.
2047 Similarly to configuring static IPv6 addresses, the setting is
2048 configured as an IPv6 prefix and its prefix length, separated by a
2049 <literal>/
</literal> character. Use multiple
2050 <literal>[IPv6Prefix]
</literal> sections to configure multiple IPv6
2051 prefixes since prefix lifetimes, address autoconfiguration and onlink
2052 status may differ from one prefix to another.
</para></listitem>
2056 <term><varname>PreferredLifetimeSec=
</varname></term>
2057 <term><varname>ValidLifetimeSec=
</varname></term>
2059 <listitem><para>Preferred and valid lifetimes for the prefix measured in
2060 seconds.
<varname>PreferredLifetimeSec=
</varname> defaults to
604800
2061 seconds (one week) and
<varname>ValidLifetimeSec=
</varname> defaults
2062 to
2592000 seconds (
30 days).
</para></listitem>
2069 <title>[IPv6RoutePrefix] Section Options
</title>
2070 <para>One or more
<literal>[IPv6RoutePrefix]
</literal> sections contain the IPv6
2071 prefix routes that are announced via Router Advertisements. See
2072 <ulink url=
"https://tools.ietf.org/html/rfc4191">RFC
4191</ulink>
2073 for further details.
</para>
2075 <variablelist class='network-directives'
>
2078 <term><varname>Route=
</varname></term>
2080 <listitem><para>The IPv6 route that is to be distributed to hosts.
2081 Similarly to configuring static IPv6 routes, the setting is
2082 configured as an IPv6 prefix routes and its prefix route length,
2083 separated by a
<literal>/
</literal> character. Use multiple
2084 <literal>[IPv6PrefixRoutes]
</literal> sections to configure multiple IPv6
2085 prefix routes.
</para></listitem>
2089 <term><varname>LifetimeSec=
</varname></term>
2091 <listitem><para>Lifetime for the route prefix measured in
2092 seconds.
<varname>LifetimeSec=
</varname> defaults to
604800 seconds (one week).
2100 <title>[Bridge] Section Options
</title>
2101 <para>The
<literal>[Bridge]
</literal> section accepts the
2102 following keys.
</para>
2103 <variablelist class='network-directives'
>
2105 <term><varname>UnicastFlood=
</varname></term>
2107 <para>Takes a boolean. Controls whether the bridge should flood
2108 traffic for which an FDB entry is missing and the destination
2109 is unknown through this port. When unset, the kernel's default will be used.
2114 <term><varname>MulticastFlood=
</varname></term>
2116 <para>Takes a boolean. Controls whether the bridge should flood
2117 traffic for which an MDB entry is missing and the destination
2118 is unknown through this port. When unset, the kernel's default will be used.
2123 <term><varname>MulticastToUnicast=
</varname></term>
2125 <para>Takes a boolean. Multicast to unicast works on top of the multicast snooping feature of
2126 the bridge. Which means unicast copies are only delivered to hosts which are interested in it.
2127 When unset, the kernel's default will be used.
2132 <term><varname>NeighborSuppression=
</varname></term>
2134 <para>Takes a boolean. Configures whether ARP and ND neighbor suppression is enabled for
2135 this port. When unset, the kernel's default will be used.
2140 <term><varname>Learning=
</varname></term>
2142 <para>Takes a boolean. Configures whether MAC address learning is enabled for
2143 this port. When unset, the kernel's default will be used.
2148 <term><varname>HairPin=
</varname></term>
2150 <para>Takes a boolean. Configures whether traffic may be sent back
2151 out of the port on which it was received. When this flag is false, and the bridge
2152 will not forward traffic back out of the receiving port.
2153 When unset, the kernel's default will be used.
</para>
2157 <term><varname>UseBPDU=
</varname></term>
2159 <para>Takes a boolean. Configures whether STP Bridge Protocol Data Units will be
2160 processed by the bridge port. When unset, the kernel's default will be used.
</para>
2164 <term><varname>FastLeave=
</varname></term>
2166 <para>Takes a boolean. This flag allows the bridge to immediately stop multicast
2167 traffic on a port that receives an IGMP Leave message. It is only used with
2168 IGMP snooping if enabled on the bridge. When unset, the kernel's default will be used.
</para>
2172 <term><varname>AllowPortToBeRoot=
</varname></term>
2174 <para>Takes a boolean. Configures whether a given port is allowed to
2175 become a root port. Only used when STP is enabled on the bridge.
2176 When unset, the kernel's default will be used.
</para>
2180 <term><varname>ProxyARP=
</varname></term>
2182 <para>Takes a boolean. Configures whether proxy ARP to be enabled on this port.
2183 When unset, the kernel's default will be used.
</para>
2187 <term><varname>ProxyARPWiFi=
</varname></term>
2189 <para>Takes a boolean. Configures whether proxy ARP to be enabled on this port
2190 which meets extended requirements by IEEE
802.11 and Hotspot
2.0 specifications.
2191 When unset, the kernel's default will be used.
</para>
2195 <term><varname>MulticastRouter=
</varname></term>
2197 <para>Configures this port for having multicast routers attached. A port with a multicast
2198 router will receive all multicast traffic. Takes one of
<literal>no
</literal>
2199 to disable multicast routers on this port,
<literal>query
</literal> to let the system detect
2200 the presence of routers,
<literal>permanent
</literal> to permanently enable multicast traffic
2201 forwarding on this port, or
<literal>temporary
</literal> to enable multicast routers temporarily
2202 on this port, not depending on incoming queries. When unset, the kernel's default will be used.
</para>
2206 <term><varname>Cost=
</varname></term>
2208 <para>Sets the
"cost" of sending packets of this interface.
2209 Each port in a bridge may have a different speed and the cost
2210 is used to decide which link to use. Faster interfaces
2211 should have lower costs. It is an integer value between
1 and
2216 <term><varname>Priority=
</varname></term>
2218 <para>Sets the
"priority" of sending packets on this interface.
2219 Each port in a bridge may have a different priority which is used
2220 to decide which link to use. Lower value means higher priority.
2221 It is an integer value between
0 to
63. Networkd does not set any
2222 default, meaning the kernel default value of
32 is used.
</para>
2228 <title>[BridgeFDB] Section Options
</title>
2229 <para>The
<literal>[BridgeFDB]
</literal> section manages the
2230 forwarding database table of a port and accepts the following
2231 keys. Specify several
<literal>[BridgeFDB]
</literal> sections to
2232 configure several static MAC table entries.
</para>
2234 <variablelist class='network-directives'
>
2236 <term><varname>MACAddress=
</varname></term>
2238 <para>As in the
<literal>[Network]
</literal> section. This
2239 key is mandatory.
</para>
2243 <term><varname>Destination=
</varname></term>
2245 <para>Takes an IP address of the destination VXLAN tunnel endpoint.
</para>
2249 <term><varname>VLANId=
</varname></term>
2251 <para>The VLAN ID for the new static MAC table entry. If
2252 omitted, no VLAN ID information is appended to the new static MAC
2257 <term><varname>VNI=
</varname></term>
2259 <para>The VXLAN Network Identifier (or VXLAN Segment ID) to use to connect to
2260 the remote VXLAN tunnel endpoint. Takes a number in the range
1-
16777215.
2261 Defaults to unset.
</para>
2265 <term><varname>AssociatedWith=
</varname></term>
2267 <para>Specifies where the address is associated with. Takes one of
<literal>use
</literal>,
2268 <literal>self
</literal>,
<literal>master
</literal> or
<literal>router
</literal>.
2269 <literal>use
</literal> means the address is in use. User space can use this option to
2270 indicate to the kernel that the fdb entry is in use.
<literal>self
</literal> means
2271 the address is associated with the port drivers fdb. Usually hardware.
<literal>master
</literal>
2272 means the address is associated with master devices fdb.
<literal>router
</literal> means
2273 the destination address is associated with a router. Note that it's valid if the referenced
2274 device is a VXLAN type device and has route shortcircuit enabled. Defaults to
<literal>self
</literal>.
</para>
2281 <title>[CAN] Section Options
</title>
2282 <para>The
<literal>[CAN]
</literal> section manages the Controller Area Network (CAN bus) and accepts the
2283 following keys.
</para>
2284 <variablelist class='network-directives'
>
2286 <term><varname>BitRate=
</varname></term>
2288 <para>The bitrate of CAN device in bits per second. The usual SI prefixes (K, M) with the base of
1000 can
2289 be used here.
</para>
2293 <term><varname>SamplePoint=
</varname></term>
2295 <para>Optional sample point in percent with one decimal (e.g.
<literal>75%
</literal>,
2296 <literal>87.5%
</literal>) or permille (e.g.
<literal>875‰
</literal>).
</para>
2300 <term><varname>RestartSec=
</varname></term>
2302 <para>Automatic restart delay time. If set to a non-zero value, a restart of the CAN controller will be
2303 triggered automatically in case of a bus-off condition after the specified delay time. Subsecond delays can
2304 be specified using decimals (e.g.
<literal>0.1s
</literal>) or a
<literal>ms
</literal> or
2305 <literal>us
</literal> postfix. Using
<literal>infinity
</literal> or
<literal>0</literal> will turn the
2306 automatic restart off. By default automatic restart is disabled.
</para>
2310 <term><varname>TripleSampling=
</varname></term>
2312 <para>Takes a boolean. When
<literal>yes
</literal>, three samples (instead of one) are used to determine
2313 the value of a received bit by majority rule. When unset, the kernel's default will be used.
</para>
2320 <title>[TrafficControlQueueingDiscipline] Section Options
</title>
2321 <para>The
<literal>[TrafficControlQueueingDiscipline]
</literal> section manages the Traffic control. It can be used
2322 to configure the kernel packet scheduler and simulate packet delay and loss for UDP or TCP applications,
2323 or limit the bandwidth usage of a particular service to simulate internet connections.
</para>
2325 <variablelist class='network-directives'
>
2327 <term><varname>Parent=
</varname></term>
2329 <para>Specifies the parent Queueing Discipline (qdisc). Takes one of
<literal>root
</literal>,
2330 <literal>clsact
</literal> or
<literal>ingress
</literal>. Defaults to
<literal>root
</literal>.
</para>
2335 <term><varname>NetworkEmulatorDelaySec=
</varname></term>
2337 <para>Specifies the fixed amount of delay to be added to all packets going out of the
2338 interface. Defaults to unset.
</para>
2343 <term><varname>NetworkEmulatorDelayJitterSec=
</varname></term>
2345 <para>Specifies the chosen delay to be added to the packets outgoing to the network
2346 interface. Defaults to unset.
</para>
2351 <term><varname>NetworkEmulatorPacketLimit=
</varname></term>
2353 <para>Specifies the maximum number of packets the qdisc may hold queued at a time.
2354 An unsigned integer ranges
0 to
4294967294. Defaults to
1000.
</para>
2359 <term><varname>NetworkEmulatorLossRate=
</varname></term>
2361 <para>Specifies an independent loss probability to be added to the packets outgoing from the
2362 network interface. Takes a percentage value, suffixed with
"%". Defaults to unset.
</para>
2367 <term><varname>NetworkEmulatorDuplicateRate=
</varname></term>
2369 <para>Specifies that the chosen percent of packets is duplicated before queuing them.
2370 Takes a percentage value, suffixed with
"%". Defaults to unset.
</para>
2375 <term><varname>TokenBufferFilterLatencySec=
</varname></term>
2377 <para>Specifies the latency parameter, which specifies the maximum amount of time a
2378 packet can sit in the Token Buffer Filter (TBF). Defaults to unset.
</para>
2383 <term><varname>TokenBufferFilterLimitSize=
</varname></term>
2385 <para>Takes the number of bytes that can be queued waiting for tokens to become available.
2386 When the size is suffixed with K, M, or G, it is parsed as Kilobytes, Megabytes, or Gigabytes,
2387 respectively, to the base of
1000. Defaults to unset.
</para>
2392 <term><varname>TokenBufferFilterBurst=
</varname></term>
2394 <para>Specifies the size of the bucket. This is the maximum amount of bytes that tokens
2395 can be available for instantaneous transfer. When the size is suffixed with K, M, or G, it is
2396 parsed as Kilobytes, Megabytes, or Gigabytes, respectively, to the base of
1000. Defaults to
2402 <term><varname>TokenBufferFilterRate=
</varname></term>
2404 <para>Specifies the device specific bandwidth. When suffixed with K, M, or G, the specified
2405 bandwidth is parsed as Kilobytes, Megabytes, or Gigabytes, respectively, to the base of
1000.
2406 Defaults to unset.
</para>
2411 <term><varname>TokenBufferFilterMPUBytes=
</varname></term>
2413 <para>The Minimum Packet Unit (MPU) determines the minimal token usage (specified in bytes)
2414 for a packet. When suffixed with K, M, or G, the specified size is parsed as Kilobytes,
2415 Megabytes, or Gigabytes, respectively, to the base of
1000. Defaults to zero.
</para>
2420 <term><varname>TokenBufferFilterPeakRate=
</varname></term>
2422 <para>Takes the maximum depletion rate of the bucket. When suffixed with K, M, or G, the
2423 specified size is parsed as Kilobytes, Megabytes, or Gigabytes, respectively, to the base of
2424 1000. Defaults to unset.
</para>
2429 <term><varname>TokenBufferFilterMTUBytes=
</varname></term>
2431 <para>Specifies the size of the peakrate bucket. When suffixed with K, M, or G, the specified
2432 size is parsed as Kilobytes, Megabytes, or Gigabytes, respectively, to the base of
1000.
2433 Defaults to unset.
</para>
2438 <term><varname>StochasticFairnessQueueingPerturbPeriodSec=
</varname></term>
2440 <para>Specifies the interval in seconds for queue algorithm perturbation. Defaults to unset.
</para>
2445 <term><varname>FairQueuingControlledDelayPacketLimit=
</varname></term>
2447 <para>Specifies the hard limit on the real queue size. When this limit is reached, incoming packets are
2448 dropped. Defaults to unset and kernel's default is used.
</para>
2453 <term><varname>FairQueuingControlledDelayMemoryLimit=
</varname></term>
2455 <para>Specifies the limit on the total number of bytes that can be queued in this FQ-CoDel instance.
2456 When suffixed with K, M, or G, the specified size is parsed as Kilobytes, Megabytes, or Gigabytes,
2457 respectively, to the base of
1024. Defaults to unset and kernel's default is used.
</para>
2462 <term><varname>FairQueuingControlledDelayFlows=
</varname></term>
2464 <para>Specifies the number of flows into which the incoming packets are classified.
2465 Defaults to unset and kernel's default is used.
</para>
2470 <term><varname>FairQueuingControlledDelayTargetSec=
</varname></term>
2472 <para>Takes a timespan. Specifies the acceptable minimum standing/persistent queue delay.
2473 Defaults to unset and kernel's default is used.
</para>
2478 <term><varname>FairQueuingControlledDelayIntervalSec=
</varname></term>
2480 <para>Takes a timespan. This is used to ensure that the measured minimum delay does not
2481 become too stale. Defaults to unset and kernel's default is used.
</para>
2486 <term><varname>FairQueuingControlledDelayQuantum=
</varname></term>
2488 <para>Specifies the number of bytes used as 'deficit' in the fair queuing algorithmtimespan.
2489 When suffixed with K, M, or G, the specified size is parsed as Kilobytes, Megabytes, or Gigabytes,
2490 respectively, to the base of
1024. Defaults to unset and kernel's default is used.
</para>
2495 <term><varname>FairQueuingControlledDelayECN=
</varname></term>
2497 <para>Takes a boolean. This can be used to mark packets instead of dropping them. Defaults to
2498 unset and kernel's default is used.
</para>
2503 <term><varname>FairQueuingControlledDelayCEThresholdSec=
</varname></term>
2505 <para>Takes a timespan. This sets a threshold above which all packets are marked with ECN
2506 Congestion Experienced (CE). Defaults to unset and kernel's default is used.
</para>
2511 <term><varname>FairQueueTrafficPolicingPacketLimit=
</varname></term>
2513 <para>Specifies the hard limit on the real queue size. When this limit is reached, incoming packets are
2514 dropped. Defaults to unset and kernel's default is used.
</para>
2519 <term><varname>FairQueueTrafficPolicingFlowLimit=
</varname></term>
2521 <para>Specifies the hard limit on the maximum number of packets queued per flow. Defaults to
2522 unset and kernel's default is used.
</para>
2527 <term><varname>FairQueueTrafficPolicingQuantum=
</varname></term>
2529 <para>Specifies the credit per dequeue RR round, i.e. the amount of bytes a flow is allowed
2530 to dequeue at once. When suffixed with K, M, or G, the specified size is parsed as Kilobytes,
2531 Megabytes, or Gigabytes, respectively, to the base of
1024. Defaults to unset and kernel's
2532 default is used.
</para>
2537 <term><varname>FairQueueTrafficPolicingInitialQuantum=
</varname></term>
2539 <para>Specifies the initial sending rate credit, i.e. the amount of bytes a new flow is
2540 allowed to dequeue initially. When suffixed with K, M, or G, the specified size is parsed as
2541 Kilobytes, Megabytes, or Gigabytes, respectively, to the base of
1024. Defaults to unset and
2542 kernel's default is used.
</para>
2547 <term><varname>FairQueueTrafficPolicingMaximumRate=
</varname></term>
2549 <para>Specifies the maximum sending rate of a flow. When suffixed with K, M, or G, the
2550 specified size is parsed as Kilobytes, Megabytes, or Gigabytes, respectively, to the base of
2551 1000. Defaults to unset and kernel's default is used.
</para>
2556 <term><varname>FairQueueTrafficPolicingBuckets=
</varname></term>
2558 <para>Specifies the size of the hash table used for flow lookups. Defaults to unset and
2559 kernel's default is used.
</para>
2564 <term><varname>FairQueueTrafficPolicingOrphanMask=
</varname></term>
2566 <para>Takes an unsigned integer. For packets not owned by a socket, fq is able to mask a part
2567 of hash and reduce number of buckets associated with the traffic. Defaults to unset and
2568 kernel's default is used.
</para>
2573 <term><varname>FairQueueTrafficPolicingPacing=
</varname></term>
2575 <para>Takes a boolean, and enables or disables flow pacing. Defaults to unset and kernel's
2576 default is used.
</para>
2581 <term><varname>FairQueueTrafficPolicingCEThresholdSec=
</varname></term>
2583 <para>Takes a timespan. This sets a threshold above which all packets are marked with ECN
2584 Congestion Experienced (CE). Defaults to unset and kernel's default is used.
</para>
2592 <title>[BridgeVLAN] Section Options
</title>
2593 <para>The
<literal>[BridgeVLAN]
</literal> section manages the VLAN ID configuration of a bridge port and accepts
2594 the following keys. Specify several
<literal>[BridgeVLAN]
</literal> sections to configure several VLAN entries.
2595 The
<varname>VLANFiltering=
</varname> option has to be enabled, see
<literal>[Bridge]
</literal> section in
2596 <citerefentry><refentrytitle>systemd.netdev
</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
</para>
2598 <variablelist class='network-directives'
>
2600 <term><varname>VLAN=
</varname></term>
2602 <para>The VLAN ID allowed on the port. This can be either a single ID or a range M-N. VLAN IDs are valid
2603 from
1 to
4094.
</para>
2607 <term><varname>EgressUntagged=
</varname></term>
2609 <para>The VLAN ID specified here will be used to untag frames on egress. Configuring
2610 <varname>EgressUntagged=
</varname> implicates the use of
<varname>VLAN=
</varname> above and will enable the
2611 VLAN ID for ingress as well. This can be either a single ID or a range M-N.
</para>
2615 <term><varname>PVID=
</varname></term>
2617 <para>The Port VLAN ID specified here is assigned to all untagged frames at ingress.
2618 <varname>PVID=
</varname> can be used only once. Configuring
<varname>PVID=
</varname> implicates the use of
2619 <varname>VLAN=
</varname> above and will enable the VLAN ID for ingress as well.
</para>
2626 <title>Examples
</title>
2628 <title>Static network configuration
</title>
2630 <programlisting># /etc/systemd/network/
50-static.network
2635 Address=
192.168.0.15/
24
2636 Gateway=
192.168.0.1</programlisting>
2638 <para>This brings interface
<literal>enp2s0
</literal> up with a static address. The
2639 specified gateway will be used for a default route.
</para>
2643 <title>DHCP on ethernet links
</title>
2645 <programlisting># /etc/systemd/network/
80-dhcp.network
2650 DHCP=yes
</programlisting>
2652 <para>This will enable DHCPv4 and DHCPv6 on all interfaces with names starting with
2653 <literal>en
</literal> (i.e. ethernet interfaces).
</para>
2657 <title>IPv6 Prefix Delegation
</title>
2659 <programlisting># /etc/systemd/network/
55-ipv6-pd-upstream.network
2664 DHCP=ipv6
</programlisting>
2666 <programlisting># /etc/systemd/network/
56-ipv6-pd-downstream.network
2671 IPv6PrefixDelegation=dhcpv6
</programlisting>
2673 <para>This will enable IPv6 PD on the interface enp1s0 as an upstream interface where the
2674 DHCPv6 client is running and enp2s0 as a downstream interface where the prefix is delegated to.
</para>
2678 <title>A bridge with two enslaved links
</title>
2680 <programlisting># /etc/systemd/network/
25-bridge-static.network
2685 Address=
192.168.0.15/
24
2687 DNS=
192.168.0.1</programlisting>
2689 <programlisting># /etc/systemd/network/
25-bridge-slave-interface-
1.network
2694 Bridge=bridge0
</programlisting>
2696 <programlisting># /etc/systemd/network/
25-bridge-slave-interface-
2.network
2701 Bridge=bridge0
</programlisting>
2703 <para>This creates a bridge and attaches devices
<literal>enp2s0
</literal> and
2704 <literal>wlp3s0
</literal> to it. The bridge will have the specified static address
2705 and network assigned, and a default route via the specified gateway will be
2706 added. The specified DNS server will be added to the global list of DNS resolvers.
2714 # /etc/systemd/network/
20-bridge-slave-interface-vlan.network
2730 EgressUntagged=
300-
400</programlisting>
2732 <para>This overrides the configuration specified in the previous example for the
2733 interface
<literal>enp2s0
</literal>, and enables VLAN on that bridge port. VLAN IDs
2734 1-
32,
42,
100-
400 will be allowed. Packets tagged with VLAN IDs
42,
300-
400 will be
2735 untagged when they leave on this interface. Untagged packets which arrive on this
2736 interface will be assigned VLAN ID
42.
</para>
2740 <title>Various tunnels
</title>
2742 <programlisting>/etc/systemd/network/
25-tunnels.network
2753 <programlisting>/etc/systemd/network/
25-tunnel-ipip.netdev
2759 <programlisting>/etc/systemd/network/
25-tunnel-sit.netdev
2765 <programlisting>/etc/systemd/network/
25-tunnel-gre.netdev
2771 <programlisting>/etc/systemd/network/
25-tunnel-vti.netdev
2777 <para>This will bring interface
<literal>ens1
</literal> up and create an IPIP tunnel,
2778 a SIT tunnel, a GRE tunnel, and a VTI tunnel using it.
</para>
2782 <title>A bond device
</title>
2784 <programlisting># /etc/systemd/network/
30-bond1.network
2792 <programlisting># /etc/systemd/network/
30-bond1.netdev
2798 <programlisting># /etc/systemd/network/
30-bond1-dev1.network
2800 MACAddress=
52:
54:
00:e9:
64:
41
2806 <programlisting># /etc/systemd/network/
30-bond1-dev2.network
2808 MACAddress=
52:
54:
00:e9:
64:
42
2814 <para>This will create a bond device
<literal>bond1
</literal> and enslave the two
2815 devices with MAC addresses
52:
54:
00:e9:
64:
41 and
52:
54:
00:e9:
64:
42 to it. IPv6 DHCP
2816 will be used to acquire an address.
</para>
2820 <title>Virtual Routing and Forwarding (VRF)
</title>
2821 <para>Add the
<literal>bond1
</literal> interface to the VRF master interface
2822 <literal>vrf1
</literal>. This will redirect routes generated on this interface to be
2823 within the routing table defined during VRF creation. For kernels before
4.8 traffic
2824 won't be redirected towards the VRFs routing table unless specific ip-rules are added.
2826 <programlisting># /etc/systemd/network/
25-vrf.network
2836 <title>MacVTap
</title>
2837 <para>This brings up a network interface
<literal>macvtap-test
</literal>
2838 and attaches it to
<literal>enp0s25
</literal>.
</para>
2839 <programlisting># /usr/lib/systemd/network/
25-macvtap.network
2844 MACVTAP=macvtap-test
2849 <title>A Xfrm interface with physical underlying device.
</title>
2851 <programlisting># /etc/systemd/network/
27-xfrm.netdev
2856 InterfaceId=
7</programlisting>
2858 <programlisting># /etc/systemd/network/
27-eth0.network
2863 Xfrm=xfrm0
</programlisting>
2865 <para>This creates a
<literal>xfrm0
</literal> interface and binds it to the
<literal>eth0
</literal> device.
2866 This allows hardware based ipsec offloading to the
<literal>eth0
</literal> nic.
2867 If offloading is not needed, xfrm interfaces can be assigned to the
<literal>lo
</literal> device.
2873 <title>See Also
</title>
2875 <citerefentry><refentrytitle>systemd
</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
2876 <citerefentry><refentrytitle>systemd-networkd.service
</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
2877 <citerefentry><refentrytitle>systemd.link
</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
2878 <citerefentry><refentrytitle>systemd.netdev
</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
2879 <citerefentry><refentrytitle>systemd-resolved.service
</refentrytitle><manvolnum>8</manvolnum></citerefentry>