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'
7 xmlns:
xi=
"http://www.w3.org/2001/XInclude">
10 <title>systemd.network
</title>
11 <productname>systemd
</productname>
15 <refentrytitle>systemd.network
</refentrytitle>
16 <manvolnum>5</manvolnum>
20 <refname>systemd.network
</refname>
21 <refpurpose>Network configuration
</refpurpose>
25 <para><filename><replaceable>network
</replaceable>.network
</filename></para>
29 <title>Description
</title>
31 <para>A plain ini-style text file that encodes network configuration for matching network interfaces,
33 <citerefentry><refentrytitle>systemd-networkd
</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
34 See
<citerefentry><refentrytitle>systemd.syntax
</refentrytitle><manvolnum>5</manvolnum></citerefentry>
35 for a general description of the syntax.
</para>
37 <para>The main network file must have the extension
<filename>.network
</filename>; other
38 extensions are ignored. Networks are applied to links whenever the links appear.
</para>
40 <para>The
<filename>.network
</filename> files are read from the files located in the system network
41 directories
<filename>/usr/lib/systemd/network
</filename> and
42 <filename>/usr/local/lib/systemd/network
</filename>, the volatile runtime network directory
43 <filename>/run/systemd/network
</filename> and the local administration network directory
44 <filename>/etc/systemd/network
</filename>. All configuration files are collectively sorted and processed
45 in lexical order, regardless of the directories in which they live. However, files with identical
46 filenames replace each other. Files in
<filename>/etc
</filename> have the highest priority, files in
47 <filename>/run
</filename> take precedence over files with the same name under
48 <filename>/usr
</filename>. This can be used to override a system-supplied configuration file with a local
49 file if needed. As a special case, an empty file (file size
0) or symlink with the same name pointing to
50 <filename>/dev/null
</filename> disables the configuration file entirely (it is
"masked").
</para>
52 <para>Along with the network file
<filename>foo.network
</filename>, a
"drop-in" directory
53 <filename>foo.network.d/
</filename> may exist. All files with the suffix
54 <literal>.conf
</literal> from this directory will be parsed after the file itself is
55 parsed. This is useful to alter or add configuration settings, without having to modify the main
56 configuration file. Each drop-in file must have appropriate section headers.
</para>
58 <para>In addition to
<filename>/etc/systemd/network
</filename>, drop-in
<literal>.d
</literal>
59 directories can be placed in
<filename>/usr/lib/systemd/network
</filename> or
60 <filename>/run/systemd/network
</filename> directories. Drop-in files in
61 <filename>/etc
</filename> take precedence over those in
<filename>/run
</filename> which in turn
62 take precedence over those in
<filename>/usr/lib
</filename>. Drop-in files under any of these
63 directories take precedence over the main network file wherever located.
</para>
65 <para>Note that an interface without any static IPv6 addresses configured, and neither DHCPv6
66 nor IPv6LL enabled, shall be considered to have no IPv6 support. IPv6 will be automatically
67 disabled for that interface by writing
"1" to
68 <filename>/proc/sys/net/ipv6/conf/
<replaceable>ifname
</replaceable>/disable_ipv6
</filename>.
73 <title>[Match] Section Options
</title>
75 <para>The network file contains a
<literal>[Match]
</literal>
76 section, which determines if a given network file may be applied
77 to a given device; and a
<literal>[Network]
</literal> section
78 specifying how the device should be configured. The first (in
79 lexical order) of the network files that matches a given device
80 is applied, all later files are ignored, even if they match as
83 <para>A network file is said to match a network interface if all matches specified by the
84 <literal>[Match]
</literal> section are satisfied. When a network file does not contain valid
85 settings in
<literal>[Match]
</literal> section, then the file will match all interfaces and
86 <command>systemd-networkd
</command> warns about that. Hint: to avoid the warning and to make it
87 clear that all interfaces shall be matched, add the following:
88 <programlisting>Name=*
</programlisting>
89 The following keys are accepted:
</para>
91 <variablelist class='network-directives'
>
92 <xi:include href=
"systemd.link.xml" xpointer=
"mac-address" />
93 <xi:include href=
"systemd.link.xml" xpointer=
"permanent-mac-address" />
94 <xi:include href=
"systemd.link.xml" xpointer=
"path" />
95 <xi:include href=
"systemd.link.xml" xpointer=
"driver" />
96 <xi:include href=
"systemd.link.xml" xpointer=
"type" />
97 <xi:include href=
"systemd.link.xml" xpointer=
"property" />
100 <term><varname>Name=
</varname></term>
102 <para>A whitespace-separated list of shell-style globs matching the device name, as exposed
103 by the udev property
<literal>INTERFACE
</literal>, or device's alternative names. If the
104 list is prefixed with a
"!", the test is inverted.
</para>
109 <term><varname>WLANInterfaceType=
</varname></term>
111 <para>A whitespace-separated list of wireless network type. Supported values are
112 <literal>ad-hoc
</literal>,
<literal>station
</literal>,
<literal>ap
</literal>,
113 <literal>ap-vlan
</literal>,
<literal>wds
</literal>,
<literal>monitor
</literal>,
114 <literal>mesh-point
</literal>,
<literal>p2p-client
</literal>,
<literal>p2p-go
</literal>,
115 <literal>p2p-device
</literal>,
<literal>ocb
</literal>, and
<literal>nan
</literal>. If the
116 list is prefixed with a
"!", the test is inverted.
122 <term><varname>SSID=
</varname></term>
124 <para>A whitespace-separated list of shell-style globs matching the SSID of the currently
125 connected wireless LAN. If the list is prefixed with a
"!", the test is inverted.
131 <term><varname>BSSID=
</varname></term>
133 <para>A whitespace-separated list of hardware address of the currently connected wireless
134 LAN. Use full colon-, hyphen- or dot-delimited hexadecimal. See the example in
135 <varname>MACAddress=
</varname>. This option may appear more than one, in which case the
136 lists are merged. If the empty string is assigned to this option, the list of BSSID defined
137 prior to this is reset.
</para>
141 <xi:include href=
"systemd.link.xml" xpointer=
"host" />
142 <xi:include href=
"systemd.link.xml" xpointer=
"virtualization" />
143 <xi:include href=
"systemd.link.xml" xpointer=
"kernel-command-line" />
144 <xi:include href=
"systemd.link.xml" xpointer=
"kernel-version" />
145 <xi:include href=
"systemd.link.xml" xpointer=
"architecture" />
151 <title>[Link] Section Options
</title>
153 <para> The
<literal>[Link]
</literal> section accepts the following keys:
</para>
155 <variablelist class='network-directives'
>
157 <term><varname>MACAddress=
</varname></term>
159 <para>The hardware address to set for the device.
</para>
163 <term><varname>MTUBytes=
</varname></term>
165 <para>The maximum transmission unit in bytes to set for the
166 device. The usual suffixes K, M, G, are supported and are
167 understood to the base of
1024.
</para>
168 <para>Note that if IPv6 is enabled on the interface, and the MTU is chosen
169 below
1280 (the minimum MTU for IPv6) it will automatically be increased to this value.
</para>
173 <term><varname>ARP=
</varname></term>
175 <para>Takes a boolean. If set to true, the ARP (low-level Address Resolution Protocol)
176 for this interface is enabled. When unset, the kernel's default will be used.
</para>
177 <para> For example, disabling ARP is useful when creating multiple MACVLAN or VLAN virtual
178 interfaces atop a single lower-level physical interface, which will then only serve as a
179 link/
"bridge" device aggregating traffic to the same physical link and not participate in
180 the network otherwise.
</para>
184 <term><varname>Multicast=
</varname></term>
186 <para>Takes a boolean. If set to true, the multicast flag on the device is enabled.
</para>
190 <term><varname>AllMulticast=
</varname></term>
192 <para>Takes a boolean. If set to true, the driver retrieves all multicast packets from the network.
193 This happens when multicast routing is enabled.
</para>
197 <term><varname>IPv6LinkLocalAddressGenerationMode=
</varname></term>
199 <para>Specifies how IPv6 link local address is generated. Takes one of
<literal>eui64
</literal>,
200 <literal>none
</literal>,
<literal>stable-privacy
</literal> and
<literal>random
</literal>.
201 When unset, the kernel's default will be used. Note that if
<varname>LinkLocalAdressing=
</varname>
202 not configured as
<literal>ipv6
</literal> then
<varname>IPv6LinkLocalAddressGenerationMode=
</varname>
207 <term><varname>Unmanaged=
</varname></term>
209 <para>Takes a boolean. When
<literal>yes
</literal>, no attempts are
210 made to bring up or configure matching links, equivalent to
211 when there are no matching network files. Defaults to
212 <literal>no
</literal>.
</para>
213 <para>This is useful for preventing later matching network
214 files from interfering with certain interfaces that are fully
215 controlled by other applications.
</para>
219 <term><varname>Group=
</varname></term>
221 <para>Link groups are similar to port ranges found in managed switches.
222 When network interfaces are added to a numbered group, operations on
223 all the interfaces from that group can be performed at once. An unsigned
224 integer ranges
0 to
4294967294. Default to unset.
</para>
228 <term><varname>RequiredForOnline=
</varname></term>
230 <para>Takes a boolean or a minimum operational state and an optional maximum operational state.
231 Please see
<citerefentry><refentrytitle>networkctl
</refentrytitle><manvolnum>1</manvolnum></citerefentry>
232 for possible operational states. When
<literal>yes
</literal>, the network is deemed required when
233 determining whether the system is online when running
234 <command>systemd-networkd-wait-online
</command>. When
<literal>no
</literal>, the network is ignored
235 when checking for online state. When a minimum operational state and an optional maximum operational
236 state are set,
<literal>yes
</literal> is implied, and this controls the minimum and maximum
237 operational state required for the network interface to be considered online.
238 Defaults to
<literal>yes
</literal>.
</para>
240 <para>The network will be brought up normally in all cases, but in
241 the event that there is no address being assigned by DHCP or the
242 cable is not plugged in, the link will simply remain offline and be
243 skipped automatically by
<command>systemd-networkd-wait-online
</command>
244 if
<literal>RequiredForOnline=no
</literal>.
</para>
251 <title>[Network] Section Options
</title>
253 <para>The
<literal>[Network]
</literal> section accepts the following keys:
</para>
255 <variablelist class='network-directives'
>
257 <term><varname>Description=
</varname></term>
259 <para>A description of the device. This is only used for
260 presentation purposes.
</para>
264 <term><varname>DHCP=
</varname></term>
266 <para>Enables DHCPv4 and/or DHCPv6 client support. Accepts
267 <literal>yes
</literal>,
<literal>no
</literal>,
268 <literal>ipv4
</literal>, or
<literal>ipv6
</literal>. Defaults
269 to
<literal>no
</literal>.
</para>
271 <para>Note that DHCPv6 will by default be triggered by Router
272 Advertisement, if that is enabled, regardless of this parameter.
273 By enabling DHCPv6 support explicitly, the DHCPv6 client will
274 be started regardless of the presence of routers on the link,
275 or what flags the routers pass. See
276 <literal>IPv6AcceptRA=
</literal>.
</para>
278 <para>Furthermore, note that by default the domain name
279 specified through DHCP is not used for name resolution.
280 See option
<option>UseDomains=
</option> below.
</para>
282 <para>See the
<literal>[DHCPv4]
</literal> or
<literal>[DHCPv6]
</literal> section below for
283 further configuration options for the DHCP client support.
</para>
287 <term><varname>DHCPServer=
</varname></term>
289 <para>Takes a boolean. If set to
<literal>yes
</literal>, DHCPv4 server will be started. Defaults
290 to
<literal>no
</literal>. Further settings for the DHCP
291 server may be set in the
<literal>[DHCPServer]
</literal>
292 section described below.
</para>
296 <term><varname>LinkLocalAddressing=
</varname></term>
298 <para>Enables link-local address autoconfiguration. Accepts
<literal>yes
</literal>,
299 <literal>no
</literal>,
<literal>ipv4
</literal>,
<literal>ipv6
</literal>,
300 <literal>fallback
</literal>, or
<literal>ipv4-fallback
</literal>. If
301 <literal>fallback
</literal> or
<literal>ipv4-fallback
</literal> is specified, then an IPv4
302 link-local address is configured only when DHCPv4 fails. If
<literal>fallback
</literal>,
303 an IPv6 link-local address is always configured, and if
<literal>ipv4-fallback
</literal>,
304 the address is not configured. Note that, the fallback mechanism works only when DHCPv4
305 client is enabled, that is, it requires
<literal>DHCP=yes
</literal> or
306 <literal>DHCP=ipv4
</literal>. If
<varname>Bridge=
</varname> is set, defaults to
307 <literal>no
</literal>, and if not, defaults to
<literal>ipv6
</literal>.
312 <term><varname>IPv4LLRoute=
</varname></term>
314 <para>Takes a boolean. If set to true, sets up the route needed for
315 non-IPv4LL hosts to communicate with IPv4LL-only hosts. Defaults
321 <term><varname>DefaultRouteOnDevice=
</varname></term>
323 <para>Takes a boolean. If set to true, sets up the default route bound to the interface.
324 Defaults to false. This is useful when creating routes on point-to-point interfaces.
325 This is equivalent to e.g. the following.
326 <programlisting>ip route add default dev veth99
</programlisting></para>
330 <term><varname>IPv6Token=
</varname></term>
332 <para>Specifies an optional address generation mode and a required IPv6 address. If
333 the mode is present, the two parts must be separated with a colon
334 <literal><replaceable>mode
</replaceable>:
<replaceable>address
</replaceable></literal>. The
335 address generation mode may be either
<constant>prefixstable
</constant> or
336 <constant>static
</constant>. If not specified,
<constant>static
</constant> is assumed.
338 <para>When the mode is set to
<constant>static
</constant>, or unspecified, the lower bits of
339 the supplied address are combined with the upper bits of a prefix received in a Router Advertisement
340 message to form a complete address. Note that if multiple prefixes are received in an RA message, or in
341 multiple RA messages, addresses will be formed from each of them using the supplied address. This
342 mode implements SLAAC but uses a static interface identifier instead of an identifier generated
343 using the EUI-
64 algorithm. Because the interface identifier is static, if Duplicate Address Detection
344 detects that the computed address is a duplicate (in use by another node on the link), then this
345 mode will fail to provide an address for that prefix.
347 <para>When the mode is set to
<literal>prefixstable
</literal> the RFC
7217 algorithm for generating
348 interface identifiers will be used, but only when a prefix received in an RA message matches the supplied address.
349 See
<ulink url=
"https://tools.ietf.org/html/rfc7217">RFC
7217</ulink>. Prefix matching will be attempted
350 against each
<constant>prefixstable
</constant> IPv6Token variable provided in the configuration; if a received
351 prefix does not match any of the provided addresses, then the EUI-
64 algorithm will be used to form
352 an interface identifier for that prefix. This mode is also SLAAC, but with a potentially stable interface
353 identifier which does not directly map to the interface's hardware address.
355 Note that the
<constant>prefixstable
</constant> algorithm includes both the interface's name and
356 MAC address in the hash used to compute the interface identifier, so if either of those are changed the resulting
357 interface identifier (and address) will change, even if the prefix received in the RA message has not changed.
359 Note that if multiple
<constant>prefixstable
</constant> IPv6Token variables are supplied with addresses that
360 match a prefix received in an RA message, only the first one will be used to generate addresses.
365 <term><varname>LLMNR=
</varname></term>
367 <para>Takes a boolean or
<literal>resolve
</literal>. When true,
369 url=
"https://tools.ietf.org/html/rfc4795">Link-Local
370 Multicast Name Resolution
</ulink> on the link. When set to
371 <literal>resolve
</literal>, only resolution is enabled,
372 but not host registration and announcement. Defaults to
373 true. This setting is read by
374 <citerefentry><refentrytitle>systemd-resolved.service
</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
</para>
378 <term><varname>MulticastDNS=
</varname></term>
380 <para>Takes a boolean or
<literal>resolve
</literal>. When true,
382 url=
"https://tools.ietf.org/html/rfc6762">Multicast
383 DNS
</ulink> support on the link. When set to
384 <literal>resolve
</literal>, only resolution is enabled,
385 but not host or service registration and
386 announcement. Defaults to false. This setting is read by
387 <citerefentry><refentrytitle>systemd-resolved.service
</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
</para>
391 <term><varname>DNSOverTLS=
</varname></term>
393 <para>Takes a boolean or
<literal>opportunistic
</literal>.
396 url=
"https://tools.ietf.org/html/rfc7858">DNS-over-TLS
</ulink>
398 When set to
<literal>opportunistic
</literal>, compatibility with
399 non-DNS-over-TLS servers is increased, by automatically
400 turning off DNS-over-TLS servers in this case.
401 This option defines a per-interface setting for
402 <citerefentry><refentrytitle>resolved.conf
</refentrytitle><manvolnum>5</manvolnum></citerefentry>'s
403 global
<varname>DNSOverTLS=
</varname> option. Defaults to
404 false. This setting is read by
405 <citerefentry><refentrytitle>systemd-resolved.service
</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
</para>
409 <term><varname>DNSSEC=
</varname></term>
411 <para>Takes a boolean. or
412 <literal>allow-downgrade
</literal>. When true, enables
414 url=
"https://tools.ietf.org/html/rfc4033">DNSSEC
</ulink>
415 DNS validation support on the link. When set to
416 <literal>allow-downgrade
</literal>, compatibility with
417 non-DNSSEC capable networks is increased, by automatically
418 turning off DNSSEC in this case. This option defines a
419 per-interface setting for
420 <citerefentry><refentrytitle>resolved.conf
</refentrytitle><manvolnum>5</manvolnum></citerefentry>'s
421 global
<varname>DNSSEC=
</varname> option. Defaults to
422 false. This setting is read by
423 <citerefentry><refentrytitle>systemd-resolved.service
</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
</para>
427 <term><varname>DNSSECNegativeTrustAnchors=
</varname></term>
428 <listitem><para>A space-separated list of DNSSEC negative
429 trust anchor domains. If specified and DNSSEC is enabled,
430 look-ups done via the interface's DNS server will be subject
431 to the list of negative trust anchors, and not require
432 authentication for the specified domains, or anything below
433 it. Use this to disable DNSSEC authentication for specific
434 private domains, that cannot be proven valid using the
435 Internet DNS hierarchy. Defaults to the empty list. This
437 <citerefentry><refentrytitle>systemd-resolved.service
</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
</para>
441 <term><varname>LLDP=
</varname></term>
443 <para>Controls support for Ethernet LLDP packet reception. LLDP is a link-layer protocol commonly
444 implemented on professional routers and bridges which announces which physical port a system is connected
445 to, as well as other related data. Accepts a boolean or the special value
446 <literal>routers-only
</literal>. When true, incoming LLDP packets are accepted and a database of all LLDP
447 neighbors maintained. If
<literal>routers-only
</literal> is set only LLDP data of various types of routers
448 is collected and LLDP data about other types of devices ignored (such as stations, telephones and
449 others). If false, LLDP reception is disabled. Defaults to
<literal>routers-only
</literal>. Use
450 <citerefentry><refentrytitle>networkctl
</refentrytitle><manvolnum>1</manvolnum></citerefentry> to query the
451 collected neighbor data. LLDP is only available on Ethernet links. See
<varname>EmitLLDP=
</varname> below
452 for enabling LLDP packet emission from the local system.
457 <term><varname>EmitLLDP=
</varname></term>
459 <para>Controls support for Ethernet LLDP packet emission. Accepts a boolean parameter or the special values
460 <literal>nearest-bridge
</literal>,
<literal>non-tpmr-bridge
</literal> and
461 <literal>customer-bridge
</literal>. Defaults to false, which turns off LLDP packet emission. If not false,
462 a short LLDP packet with information about the local system is sent out in regular intervals on the
463 link. The LLDP packet will contain information about the local hostname, the local machine ID (as stored
464 in
<citerefentry><refentrytitle>machine-id
</refentrytitle><manvolnum>5</manvolnum></citerefentry>) and the
465 local interface name, as well as the pretty hostname of the system (as set in
466 <citerefentry><refentrytitle>machine-info
</refentrytitle><manvolnum>5</manvolnum></citerefentry>). LLDP
467 emission is only available on Ethernet links. Note that this setting passes data suitable for
468 identification of host to the network and should thus not be enabled on untrusted networks, where such
469 identification data should not be made available. Use this option to permit other systems to identify on
470 which interfaces they are connected to this system. The three special values control propagation of the
471 LLDP packets. The
<literal>nearest-bridge
</literal> setting permits propagation only to the nearest
472 connected bridge,
<literal>non-tpmr-bridge
</literal> permits propagation across Two-Port MAC Relays, but
473 not any other bridges, and
<literal>customer-bridge
</literal> permits propagation until a customer bridge
474 is reached. For details about these concepts, see
<ulink
475 url=
"https://standards.ieee.org/findstds/standard/802.1AB-2016.html">IEEE
802.1AB-
2016</ulink>. Note that
476 configuring this setting to true is equivalent to
<literal>nearest-bridge
</literal>, the recommended and
477 most restricted level of propagation. See
<varname>LLDP=
</varname> above for an option to enable LLDP
483 <term><varname>BindCarrier=
</varname></term>
485 <para>A link name or a list of link names. When set, controls the behavior of the current
486 link. When all links in the list are in an operational down state, the current link is brought
487 down. When at least one link has carrier, the current interface is brought up.
492 <term><varname>Address=
</varname></term>
494 <para>A static IPv4 or IPv6 address and its prefix length,
495 separated by a
<literal>/
</literal> character. Specify
496 this key more than once to configure several addresses.
497 The format of the address must be as described in
498 <citerefentry project='man-pages'
><refentrytitle>inet_pton
</refentrytitle><manvolnum>3</manvolnum></citerefentry>.
499 This is a short-hand for an [Address] section only
500 containing an Address key (see below). This option may be
501 specified more than once.
504 <para>If the specified address is
<literal>0.0.0.0</literal> (for IPv4) or
<literal>::
</literal>
505 (for IPv6), a new address range of the requested size is automatically allocated from a
506 system-wide pool of unused ranges. Note that the prefix length must be equal or larger than
8 for
507 IPv4, and
64 for IPv6. The allocated range is checked against all current network interfaces and
508 all known network configuration files to avoid address range conflicts. The default system-wide
509 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.
510 This functionality is useful to manage a large number of dynamically created network interfaces
511 with the same network configuration and automatic address range assignment.
</para>
516 <term><varname>Gateway=
</varname></term>
518 <para>The gateway address, which must be in the format
520 <citerefentry project='man-pages'
><refentrytitle>inet_pton
</refentrytitle><manvolnum>3</manvolnum></citerefentry>.
521 This is a short-hand for a [Route] section only containing
522 a Gateway key. This option may be specified more than
527 <term><varname>DNS=
</varname></term>
529 <para>A DNS server address, which must be in the format
531 <citerefentry project='man-pages'
><refentrytitle>inet_pton
</refentrytitle><manvolnum>3</manvolnum></citerefentry>.
532 This option may be specified more than once. This setting is read by
533 <citerefentry><refentrytitle>systemd-resolved.service
</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
</para>
537 <term><varname>Domains=
</varname></term>
539 <para>A whitespace-separated list of domains which should be resolved using the DNS servers on
540 this link. Each item in the list should be a domain name, optionally prefixed with a tilde
541 (
<literal>~
</literal>). The domains with the prefix are called
"routing-only domains". The
542 domains without the prefix are called
"search domains" and are first used as search suffixes for
543 extending single-label hostnames (hostnames containing no dots) to become fully qualified
544 domain names (FQDNs). If a single-label hostname is resolved on this interface, each of the
545 specified search domains are appended to it in turn, converting it into a fully qualified domain
546 name, until one of them may be successfully resolved.
</para>
548 <para>Both
"search" and
"routing-only" domains are used for routing of DNS queries: look-ups for hostnames
549 ending in those domains (hence also single label names, if any
"search domains" are listed), are routed to
550 the DNS servers configured for this interface. The domain routing logic is particularly useful on
551 multi-homed hosts with DNS servers serving particular private DNS zones on each interface.
</para>
553 <para>The
"routing-only" domain
<literal>~.
</literal> (the tilde indicating definition of a routing domain,
554 the dot referring to the DNS root domain which is the implied suffix of all valid DNS names) has special
555 effect. It causes all DNS traffic which does not match another configured domain routing entry to be routed
556 to DNS servers specified for this interface. This setting is useful to prefer a certain set of DNS servers
557 if a link on which they are connected is available.
</para>
559 <para>This setting is read by
560 <citerefentry><refentrytitle>systemd-resolved.service
</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
561 "Search domains" correspond to the
<varname>domain
</varname> and
<varname>search
</varname> entries in
562 <citerefentry project='man-pages'
><refentrytitle>resolv.conf
</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
563 Domain name routing has no equivalent in the traditional glibc API, which has no concept of domain
564 name servers limited to a specific link.
</para>
568 <term><varname>DNSDefaultRoute=
</varname></term>
570 <para>Takes a boolean argument. If true, this link's configured DNS servers are used for resolving domain
571 names that do not match any link's configured
<varname>Domains=
</varname> setting. If false, this link's
572 configured DNS servers are never used for such domains, and are exclusively used for resolving names that
573 match at least one of the domains configured on this link. If not specified defaults to an automatic mode:
574 queries not matching any link's configured domains will be routed to this link if it has no routing-only
575 domains configured.
</para>
579 <term><varname>NTP=
</varname></term>
581 <para>An NTP server address (either an IP address, or a hostname). This option may be specified more than once. This setting is read by
582 <citerefentry><refentrytitle>systemd-timesyncd.service
</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
</para>
586 <term><varname>IPForward=
</varname></term>
587 <listitem><para>Configures IP packet forwarding for the
588 system. If enabled, incoming packets on any network
589 interface will be forwarded to any other interfaces
590 according to the routing table. Takes a boolean,
591 or the values
<literal>ipv4
</literal> or
592 <literal>ipv6
</literal>, which only enable IP packet
593 forwarding for the specified address family. This controls
594 the
<filename>net.ipv4.ip_forward
</filename> and
595 <filename>net.ipv6.conf.all.forwarding
</filename> sysctl
596 options of the network interface (see
<ulink
597 url=
"https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt">ip-sysctl.txt
</ulink>
598 for details about sysctl options). Defaults to
599 <literal>no
</literal>.
</para>
601 <para>Note: this setting controls a global kernel option,
602 and does so one way only: if a network that has this setting
603 enabled is set up the global setting is turned on. However,
604 it is never turned off again, even after all networks with
605 this setting enabled are shut down again.
</para>
607 <para>To allow IP packet forwarding only between specific
608 network interfaces use a firewall.
</para>
612 <term><varname>IPMasquerade=
</varname></term>
613 <listitem><para>Configures IP masquerading for the network
614 interface. If enabled, packets forwarded from the network
615 interface will be appear as coming from the local host.
616 Takes a boolean argument. Implies
617 <varname>IPForward=ipv4
</varname>. Defaults to
618 <literal>no
</literal>.
</para></listitem>
621 <term><varname>IPv6PrivacyExtensions=
</varname></term>
622 <listitem><para>Configures use of stateless temporary
623 addresses that change over time (see
<ulink
624 url=
"https://tools.ietf.org/html/rfc4941">RFC
4941</ulink>,
625 Privacy Extensions for Stateless Address Autoconfiguration
626 in IPv6). Takes a boolean or the special values
627 <literal>prefer-public
</literal> and
628 <literal>kernel
</literal>. When true, enables the privacy
629 extensions and prefers temporary addresses over public
630 addresses. When
<literal>prefer-public
</literal>, enables the
631 privacy extensions, but prefers public addresses over
632 temporary addresses. When false, the privacy extensions
633 remain disabled. When
<literal>kernel
</literal>, the kernel's
634 default setting will be left in place. Defaults to
635 <literal>no
</literal>.
</para></listitem>
638 <term><varname>IPv6AcceptRA=
</varname></term>
639 <listitem><para>Takes a boolean. Controls IPv6 Router Advertisement (RA) reception support for the
640 interface. If true, RAs are accepted; if false, RAs are ignored. When RAs are accepted, they may
641 trigger the start of the DHCPv6 client if the relevant flags are set in the RA data, or if no
642 routers are found on the link. The default is to disable RA reception for bridge devices or when IP
643 forwarding is enabled, and to enable it otherwise. Cannot be enabled on bond devices and when link
644 local addressing is disabled.
</para>
646 <para>Further settings for the IPv6 RA support may be configured in the
647 <literal>[IPv6AcceptRA]
</literal> section, see below.
</para>
649 <para>Also see
<ulink
650 url=
"https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt">ip-sysctl.txt
</ulink> in the kernel
651 documentation regarding
<literal>accept_ra
</literal>, but note that systemd's setting of
652 <constant>1</constant> (i.e. true) corresponds to kernel's setting of
<constant>2</constant>.
</para>
654 <para>Note that kernel's implementation of the IPv6 RA protocol is always disabled,
655 regardless of this setting. If this option is enabled, a userspace implementation of the IPv6
656 RA protocol is used, and the kernel's own implementation remains disabled, since
657 <command>systemd-networkd
</command> needs to know all details supplied in the advertisements,
658 and these are not available from the kernel if the kernel's own implementation is used.
</para>
662 <term><varname>IPv6DuplicateAddressDetection=
</varname></term>
663 <listitem><para>Configures the amount of IPv6 Duplicate
664 Address Detection (DAD) probes to send. When unset, the kernel's default will be used.
668 <term><varname>IPv6HopLimit=
</varname></term>
669 <listitem><para>Configures IPv6 Hop Limit. For each router that
670 forwards the packet, the hop limit is decremented by
1. When the
671 hop limit field reaches zero, the packet is discarded.
672 When unset, the kernel's default will be used.
676 <term><varname>IPv4AcceptLocal=
</varname></term>
677 <listitem><para>Takes a boolean. Accept packets with local source addresses. In combination
678 with suitable routing, this can be used to direct packets between two local interfaces over
679 the wire and have them accepted properly. When unset, the kernel's default will be used.
683 <term><varname>IPv4ProxyARP=
</varname></term>
684 <listitem><para>Takes a boolean. Configures proxy ARP for IPv4. Proxy ARP is the technique in which one host,
685 usually a router, answers ARP requests intended for another machine. By
"faking" its identity,
686 the router accepts responsibility for routing packets to the
"real" destination. (see
<ulink
687 url=
"https://tools.ietf.org/html/rfc1027">RFC
1027</ulink>.
688 When unset, the kernel's default will be used.
692 <term><varname>IPv6ProxyNDP=
</varname></term>
693 <listitem><para>Takes a boolean. Configures proxy NDP for IPv6. Proxy NDP (Neighbor Discovery
694 Protocol) is a technique for IPv6 to allow routing of addresses to a different
695 destination when peers expect them to be present on a certain physical link.
696 In this case a router answers Neighbour Advertisement messages intended for
697 another machine by offering its own MAC address as destination.
698 Unlike proxy ARP for IPv4, it is not enabled globally, but will only send Neighbour
699 Advertisement messages for addresses in the IPv6 neighbor proxy table,
700 which can also be shown by
<command>ip -
6 neighbour show proxy
</command>.
701 systemd-networkd will control the per-interface `proxy_ndp` switch for each configured
702 interface depending on this option.
703 When unset, the kernel's default will be used.
707 <term><varname>IPv6ProxyNDPAddress=
</varname></term>
708 <listitem><para>An IPv6 address, for which Neighbour Advertisement messages will be
709 proxied. This option may be specified more than once. systemd-networkd will add the
710 <option>IPv6ProxyNDPAddress=
</option> entries to the kernel's IPv6 neighbor proxy table.
711 This option implies
<option>IPv6ProxyNDP=yes
</option> but has no effect if
712 <option>IPv6ProxyNDP
</option> has been set to false. When unset, the kernel's default will be used.
716 <term><varname>IPv6PrefixDelegation=
</varname></term>
717 <listitem><para>Whether to enable or disable Router Advertisement sending on a link.
718 Allowed values are
<literal>static
</literal> which distributes prefixes as defined in
719 the
<literal>[IPv6PrefixDelegation]
</literal> and any
<literal>[IPv6Prefix]
</literal>
720 sections,
<literal>dhcpv6
</literal> which requests prefixes using a DHCPv6 client
721 configured for another link and any values configured in the
722 <literal>[IPv6PrefixDelegation]
</literal> section while ignoring all static prefix
723 configuration sections,
<literal>yes
</literal> which uses both static configuration
724 and DHCPv6, and
<literal>false
</literal> which turns off IPv6 prefix delegation
725 altogether. Defaults to
<literal>false
</literal>. See the
726 <literal>[IPv6PrefixDelegation]
</literal> and the
<literal>[IPv6Prefix]
</literal>
727 sections for more configuration options.
731 <term><varname>IPv6PDSubnetId=
</varname></term>
732 <listitem><para>Configure a specific subnet ID on the interface from a (previously) received prefix delegation.
733 You can either set
"auto" (the default) or a specific subnet ID
734 (as defined in
<ulink url=
"https://tools.ietf.org/html/rfc4291#section-2.5.4">RFC
4291</ulink>, section
2.5.4),
735 in which case the allowed value is hexadecimal, from
0 to
0x7fffffffffffffff inclusive.
736 This option is only effective when used together with
<varname>IPv6PrefixDelegation=
</varname>
737 and the corresponding configuration on the upstream interface.
741 <term><varname>IPv6MTUBytes=
</varname></term>
742 <listitem><para>Configures IPv6 maximum transmission unit (MTU).
743 An integer greater than or equal to
1280 bytes. When unset, the kernel's default will be used.
747 <term><varname>Bridge=
</varname></term>
749 <para>The name of the bridge to add the link to. See
750 <citerefentry><refentrytitle>systemd.netdev
</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
755 <term><varname>Bond=
</varname></term>
757 <para>The name of the bond to add the link to. See
758 <citerefentry><refentrytitle>systemd.netdev
</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
763 <term><varname>VRF=
</varname></term>
765 <para>The name of the VRF to add the link to. See
766 <citerefentry><refentrytitle>systemd.netdev
</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
771 <term><varname>VLAN=
</varname></term>
773 <para>The name of a VLAN to create on the link. See
774 <citerefentry><refentrytitle>systemd.netdev
</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
775 This option may be specified more than once.
</para>
779 <term><varname>IPVLAN=
</varname></term>
781 <para>The name of a IPVLAN to create on the link. See
782 <citerefentry><refentrytitle>systemd.netdev
</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
783 This option may be specified more than once.
</para>
787 <term><varname>MACVLAN=
</varname></term>
789 <para>The name of a MACVLAN to create on the link. See
790 <citerefentry><refentrytitle>systemd.netdev
</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
791 This option may be specified more than once.
</para>
795 <term><varname>VXLAN=
</varname></term>
797 <para>The name of a VXLAN to create on the link. See
798 <citerefentry><refentrytitle>systemd.netdev
</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
799 This option may be specified more than once.
</para>
803 <term><varname>Tunnel=
</varname></term>
805 <para>The name of a Tunnel to create on the link. See
806 <citerefentry><refentrytitle>systemd.netdev
</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
807 This option may be specified more than once.
</para>
811 <term><varname>MACsec=
</varname></term>
813 <para>The name of a MACsec device to create on the link. See
814 <citerefentry><refentrytitle>systemd.netdev
</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
815 This option may be specified more than once.
</para>
819 <term><varname>ActiveSlave=
</varname></term>
821 <para>Takes a boolean. Specifies the new active slave. The
<literal>ActiveSlave=
</literal>
822 option is only valid for following modes:
823 <literal>active-backup
</literal>,
824 <literal>balance-alb
</literal> and
825 <literal>balance-tlb
</literal>. Defaults to false.
830 <term><varname>PrimarySlave=
</varname></term>
832 <para>Takes a boolean. Specifies which slave is the primary device. The specified
833 device will always be the active slave while it is available. Only when the
834 primary is off-line will alternate devices be used. This is useful when
835 one slave is preferred over another, e.g. when one slave has higher throughput
836 than another. The
<literal>PrimarySlave=
</literal> option is only valid for
838 <literal>active-backup
</literal>,
839 <literal>balance-alb
</literal> and
840 <literal>balance-tlb
</literal>. Defaults to false.
845 <term><varname>ConfigureWithoutCarrier=
</varname></term>
847 <para>Takes a boolean. Allows networkd to configure a specific link even if it has no carrier.
848 Defaults to false. If
<option>IgnoreCarrierLoss=
</option> is not explicitly set, it will
849 default to this value.
854 <term><varname>IgnoreCarrierLoss=
</varname></term>
856 <para>Takes a boolean. Allows networkd to retain both the static and dynamic configuration
857 of the interface even if its carrier is lost. When unset, the value specified with
858 <option>ConfigureWithoutCarrier=
</option> is used.
863 <term><varname>Xfrm=
</varname></term>
865 <para>The name of the xfrm to create on the link. See
866 <citerefentry><refentrytitle>systemd.netdev
</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
867 This option may be specified more than once.
</para>
871 <term><varname>KeepConfiguration=
</varname></term>
873 <para>Takes a boolean or one of
<literal>static
</literal>,
<literal>dhcp-on-stop
</literal>,
874 <literal>dhcp
</literal>. When
<literal>static
</literal>,
<command>systemd-networkd
</command>
875 will not drop static addresses and routes on starting up process. When set to
876 <literal>dhcp-on-stop
</literal>,
<command>systemd-networkd
</command> will not drop addresses
877 and routes on stopping the daemon. When
<literal>dhcp
</literal>,
878 the addresses and routes provided by a DHCP server will never be dropped even if the DHCP
879 lease expires. This is contrary to the DHCP specification, but may be the best choice if,
880 e.g., the root filesystem relies on this connection. The setting
<literal>dhcp
</literal>
881 implies
<literal>dhcp-on-stop
</literal>, and
<literal>yes
</literal> implies
882 <literal>dhcp
</literal> and
<literal>static
</literal>. Defaults to
<literal>no
</literal>.
892 <title>[Address] Section Options
</title>
894 <para>An
<literal>[Address]
</literal> section accepts the
895 following keys. Specify several
<literal>[Address]
</literal>
896 sections to configure several addresses.
</para>
898 <variablelist class='network-directives'
>
900 <term><varname>Address=
</varname></term>
902 <para>As in the
<literal>[Network]
</literal> section. This key is mandatory. Each
903 <literal>[Address]
</literal> section can contain one
<varname>Address=
</varname> setting.
</para>
907 <term><varname>Peer=
</varname></term>
909 <para>The peer address in a point-to-point connection.
910 Accepts the same format as the
<varname>Address=
</varname>
915 <term><varname>Broadcast=
</varname></term>
917 <para>The broadcast address, which must be in the format
919 <citerefentry project='man-pages'
><refentrytitle>inet_pton
</refentrytitle><manvolnum>3</manvolnum></citerefentry>.
920 This key only applies to IPv4 addresses. If it is not
921 given, it is derived from the
<varname>Address=
</varname>
926 <term><varname>Label=
</varname></term>
928 <para>An address label.
</para>
932 <term><varname>PreferredLifetime=
</varname></term>
934 <para>Allows the default
"preferred lifetime" of the address to be overridden.
935 Only three settings are accepted:
<literal>forever
</literal> or
<literal>infinity
</literal>
936 which is the default and means that the address never expires, and
<literal>0</literal> which means
937 that the address is considered immediately
"expired" and will not be used,
938 unless explicitly requested. A setting of PreferredLifetime=
0 is useful for
939 addresses which are added to be used only by a specific application,
940 which is then configured to use them explicitly.
</para>
944 <term><varname>Scope=
</varname></term>
946 <para>The scope of the address, which can be
<literal>global
</literal>,
947 <literal>link
</literal> or
<literal>host
</literal> or an unsigned integer ranges
0 to
255.
948 Defaults to
<literal>global
</literal>.
</para>
952 <term><varname>HomeAddress=
</varname></term>
954 <para>Takes a boolean. Designates this address the
"home address" as defined in
955 <ulink url=
"https://tools.ietf.org/html/rfc6275">RFC
6275</ulink>.
956 Supported only on IPv6. Defaults to false.
</para>
960 <term><varname>DuplicateAddressDetection=
</varname></term>
962 <para>Takes one of
<literal>ipv4
</literal>,
<literal>ipv6
</literal>,
963 <literal>both
</literal>,
<literal>none
</literal>. When
<literal>ipv4
</literal>,
964 performs IPv4 Duplicate Address Detection. See
965 <ulink url=
"https://tools.ietf.org/html/rfc5227">RFC
5224</ulink>.
966 When
<literal>ipv6
</literal>, performs IPv6 Duplicate Address Detection. See
967 <ulink url=
"https://tools.ietf.org/html/rfc4862">RFC
4862</ulink>.
968 Defaults to
<literal>ipv6
</literal>.
</para>
972 <term><varname>ManageTemporaryAddress=
</varname></term>
974 <para>Takes a boolean. If true the kernel manage temporary addresses created
975 from this one as template on behalf of Privacy Extensions
976 <ulink url=
"https://tools.ietf.org/html/rfc3041">RFC
3041</ulink>. For this to become
977 active, the use_tempaddr sysctl setting has to be set to a value greater than zero.
978 The given address needs to have a prefix length of
64. This flag allows using privacy
979 extensions in a manually configured network, just like if stateless auto-configuration
980 was active. Defaults to false.
</para>
984 <term><varname>AddPrefixRoute=
</varname></term>
986 <para>Takes a boolean. When true, the prefix route for the address is automatically added.
987 Defaults to true.
</para>
991 <term><varname>AutoJoin=
</varname></term>
993 <para>Takes a boolean. Joining multicast group on ethernet level via
994 <command>ip maddr
</command> command would not work if we have an Ethernet switch that does
995 IGMP snooping since the switch would not replicate multicast packets on ports that did not
996 have IGMP reports for the multicast addresses. Linux vxlan interfaces created via
997 <command>ip link add vxlan
</command> or networkd's netdev kind vxlan have the group option
998 that enables then to do the required join. By extending ip address command with option
999 <literal>autojoin
</literal> we can get similar functionality for openvswitch (OVS) vxlan
1000 interfaces as well as other tunneling mechanisms that need to receive multicast traffic.
1001 Defaults to
<literal>no
</literal>.
</para>
1008 <title>[Neighbor] Section Options
</title>
1009 <para>A
<literal>[Neighbor]
</literal> section accepts the
1010 following keys. The neighbor section adds a permanent, static
1011 entry to the neighbor table (IPv6) or ARP table (IPv4) for
1012 the given hardware address on the links matched for the network.
1013 Specify several
<literal>[Neighbor]
</literal> sections to configure
1014 several static neighbors.
</para>
1016 <variablelist class='network-directives'
>
1018 <term><varname>Address=
</varname></term>
1020 <para>The IP address of the neighbor.
</para>
1024 <term><varname>LinkLayerAddress=
</varname></term>
1026 <para>The link layer address (MAC address or IP address) of the neighbor.
</para>
1033 <title>[IPv6AddressLabel] Section Options
</title>
1035 <para>An
<literal>[IPv6AddressLabel]
</literal> section accepts the
1036 following keys. Specify several
<literal>[IPv6AddressLabel]
</literal>
1037 sections to configure several address labels. IPv6 address labels are
1038 used for address selection. See
<ulink url=
"https://tools.ietf.org/html/rfc3484">RFC
3484</ulink>.
1039 Precedence is managed by userspace, and only the label itself is stored in the kernel
</para>
1041 <variablelist class='network-directives'
>
1043 <term><varname>Label=
</varname></term>
1045 <para> The label for the prefix (an unsigned integer) ranges
0 to
4294967294.
1046 0xffffffff is reserved. This key is mandatory.
</para>
1050 <term><varname>Prefix=
</varname></term>
1052 <para>IPv6 prefix is an address with a prefix length, separated by a slash
<literal>/
</literal> character.
1053 This key is mandatory.
</para>
1060 <title>[RoutingPolicyRule] Section Options
</title>
1062 <para>An
<literal>[RoutingPolicyRule]
</literal> section accepts the
1063 following keys. Specify several
<literal>[RoutingPolicyRule]
</literal>
1064 sections to configure several rules.
</para>
1066 <variablelist class='network-directives'
>
1068 <term><varname>TypeOfService=
</varname></term>
1070 <para>Specifies the type of service to match a number between
0 to
255.
</para>
1074 <term><varname>From=
</varname></term>
1076 <para>Specifies the source address prefix to match. Possibly followed by a slash and the prefix length.
</para>
1080 <term><varname>To=
</varname></term>
1082 <para>Specifies the destination address prefix to match. Possibly followed by a slash and the prefix length.
</para>
1086 <term><varname>FirewallMark=
</varname></term>
1088 <para>Specifies the iptables firewall mark value to match (a number between
1 and
4294967295).
</para>
1092 <term><varname>Table=
</varname></term>
1094 <para>Specifies the routing table identifier to lookup if the rule selector matches. Takes
1095 one of
<literal>default
</literal>,
<literal>main
</literal>, and
<literal>local
</literal>,
1096 or a number between
1 and
4294967295. Defaults to
<literal>main
</literal>.
</para>
1100 <term><varname>Priority=
</varname></term>
1102 <para>Specifies the priority of this rule.
<varname>Priority=
</varname> is an unsigned
1103 integer. Higher number means lower priority, and rules get processed in order of increasing number.
</para>
1107 <term><varname>IncomingInterface=
</varname></term>
1109 <para>Specifies incoming device to match. If the interface is loopback, the rule only matches packets originating from this host.
</para>
1113 <term><varname>OutgoingInterface=
</varname></term>
1115 <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>
1119 <term><varname>SourcePort=
</varname></term>
1121 <para>Specifies the source IP port or IP port range match in forwarding information base (FIB) rules.
1122 A port range is specified by the lower and upper port separated by a dash. Defaults to unset.
</para>
1126 <term><varname>DestinationPort=
</varname></term>
1128 <para>Specifies the destination IP port or IP port range match in forwarding information base (FIB) rules.
1129 A port range is specified by the lower and upper port separated by a dash. Defaults to unset.
</para>
1133 <term><varname>IPProtocol=
</varname></term>
1135 <para>Specifies the IP protocol to match in forwarding information base (FIB) rules. Takes IP protocol name such as
<literal>tcp
</literal>,
1136 <literal>udp
</literal> or
<literal>sctp
</literal>, or IP protocol number such as
<literal>6</literal> for
<literal>tcp
</literal> or
1137 <literal>17</literal> for
<literal>udp
</literal>.
1138 Defaults to unset.
</para>
1142 <term><varname>InvertRule=
</varname></term>
1144 <para>A boolean. Specifies whether the rule is to be inverted. Defaults to false.
</para>
1148 <term><varname>Family=
</varname></term>
1150 <para>Takes a special value
<literal>ipv4
</literal>,
<literal>ipv6
</literal>, or
1151 <literal>both
</literal>. By default, the address family is determined by the address
1152 specified in
<varname>To=
</varname> or
<varname>From=
</varname>. If neither
1153 <varname>To=
</varname> nor
<varname>From=
</varname> are specified, then defaults to
1154 <literal>ipv4
</literal>.
</para>
1158 <term><varname>User=
</varname></term>
1160 <para>Takes a username, a user ID, or a range of user IDs separated by a dash. Defaults to
1165 <term><varname>SuppressPrefixLength=
</varname></term>
1167 <para>Takes a number
<replaceable>N
</replaceable> in the range
0-
128 and rejects routing
1168 decisions that have a prefix length of
<replaceable>N
</replaceable> or less. Defaults to
1176 <title>[NextHop] Section Options
</title>
1177 <para>The
<literal>[NextHop]
</literal> section accepts the
1178 following keys. Specify several
<literal>[NextHop]
</literal>
1179 sections to configure several nexthop. Nexthop is used to manipulate entries in the kernel's nexthop
1182 <variablelist class='network-directives'
>
1184 <term><varname>Gateway=
</varname></term>
1186 <para>As in the
<literal>[Network]
</literal> section. This is mandatory.
</para>
1190 <term><varname>Id=
</varname></term>
1192 <para>The id of the nexthop (an unsigned integer). If unspecified or '
0' then automatically chosen by kernel.
</para>
1199 <title>[Route] Section Options
</title>
1200 <para>The
<literal>[Route]
</literal> section accepts the
1201 following keys. Specify several
<literal>[Route]
</literal>
1202 sections to configure several routes.
</para>
1204 <variablelist class='network-directives'
>
1206 <term><varname>Gateway=
</varname></term>
1208 <para>Takes the gateway address or special value
<literal>_dhcp
</literal>. If
1209 <literal>_dhcp
</literal>, then the gateway address provided by DHCP (or in the IPv6 case,
1210 provided by IPv6 RA) is used.
</para>
1214 <term><varname>GatewayOnLink=
</varname></term>
1216 <para>Takes a boolean. If set to true, the kernel does not have
1217 to check if the gateway is reachable directly by the current machine (i.e., the kernel does
1218 not need to check if the gateway is attached to the local network), so that we can insert the
1219 route in the kernel table without it being complained about. Defaults to
<literal>no
</literal>.
1224 <term><varname>Destination=
</varname></term>
1226 <para>The destination prefix of the route. Possibly
1227 followed by a slash and the prefix length. If omitted, a
1228 full-length host route is assumed.
</para>
1232 <term><varname>Source=
</varname></term>
1234 <para>The source prefix of the route. Possibly followed by
1235 a slash and the prefix length. If omitted, a full-length
1236 host route is assumed.
</para>
1240 <term><varname>Metric=
</varname></term>
1242 <para>The metric of the route (an unsigned integer).
</para>
1246 <term><varname>IPv6Preference=
</varname></term>
1248 <para>Specifies the route preference as defined in
<ulink
1249 url=
"https://tools.ietf.org/html/rfc4191">RFC4191
</ulink> for Router Discovery messages.
1250 Which can be one of
<literal>low
</literal> the route has a lowest priority,
1251 <literal>medium
</literal> the route has a default priority or
1252 <literal>high
</literal> the route has a highest priority.
</para>
1256 <term><varname>Scope=
</varname></term>
1258 <para>The scope of the route, which can be
<literal>global
</literal>,
<literal>site
</literal>,
1259 <literal>link
</literal>,
<literal>host
</literal>, or
<literal>nowhere
</literal>. For IPv4 route,
1260 defaults to
<literal>host
</literal> if
<varname>Type=
</varname> is
<literal>local
</literal>
1261 or
<literal>nat
</literal>, and
<literal>link
</literal> if
<varname>Type=
</varname> is
1262 <literal>broadcast
</literal>,
<literal>multicast
</literal>, or
<literal>anycast
</literal>.
1263 In other cases, defaults to
<literal>global
</literal>.
</para>
1267 <term><varname>PreferredSource=
</varname></term>
1269 <para>The preferred source address of the route. The address
1270 must be in the format described in
1271 <citerefentry project='man-pages'
><refentrytitle>inet_pton
</refentrytitle><manvolnum>3</manvolnum></citerefentry>.
</para>
1275 <term><varname>Table=
</varname></term>
1277 <para>The table identifier for the route. Takes
<literal>default
</literal>,
1278 <literal>main
</literal>,
<literal>local
</literal> or a number between
1 and
4294967295.
1279 The table can be retrieved using
<command>ip route show table
<replaceable>num
</replaceable></command>.
1280 If unset and
<varname>Type=
</varname> is
<literal>local
</literal>,
<literal>broadcast
</literal>,
1281 <literal>anycast
</literal>, or
<literal>nat
</literal>, then
<literal>local
</literal> is used.
1282 In other cases, defaults to
<literal>main
</literal>.
1287 <term><varname>Protocol=
</varname></term>
1289 <para>The protocol identifier for the route. Takes a number between
0 and
255 or the special values
1290 <literal>kernel
</literal>,
<literal>boot
</literal>,
<literal>static
</literal>,
1291 <literal>ra
</literal> and
<literal>dhcp
</literal>. Defaults to
<literal>static
</literal>.
1296 <term><varname>Type=
</varname></term>
1298 <para>Specifies the type for the route. Takes one of
<literal>unicast
</literal>,
1299 <literal>local
</literal>,
<literal>broadcast
</literal>,
<literal>anycast
</literal>,
1300 <literal>multicast
</literal>,
<literal>blackhole
</literal>,
<literal>unreachable
</literal>,
1301 <literal>prohibit
</literal>,
<literal>throw
</literal>,
<literal>nat
</literal>, and
1302 <literal>xresolve
</literal>. If
<literal>unicast
</literal>, a regular route is defined, i.e. a
1303 route indicating the path to take to a destination network address. If
<literal>blackhole
</literal>, packets
1304 to the defined route are discarded silently. If
<literal>unreachable
</literal>, packets to the defined route
1305 are discarded and the ICMP message
"Host Unreachable" is generated. If
<literal>prohibit
</literal>, packets
1306 to the defined route are discarded and the ICMP message
"Communication Administratively Prohibited" is
1307 generated. If
<literal>throw
</literal>, route lookup in the current routing table will fail and the route
1308 selection process will return to Routing Policy Database (RPDB). Defaults to
<literal>unicast
</literal>.
1313 <term><varname>InitialCongestionWindow=
</varname></term>
1315 <para>The TCP initial congestion window is used during the start of a TCP connection. During the start of a TCP
1316 session, when a client requests a resource, the server's initial congestion window determines how many data bytes
1317 will be sent during the initial burst of data. Takes a size in bytes between
1 and
4294967295 (
2^
32 -
1). The usual
1318 suffixes K, M, G are supported and are understood to the base of
1024. When unset, the kernel's default will be used.
1323 <term><varname>InitialAdvertisedReceiveWindow=
</varname></term>
1325 <para>The TCP initial advertised receive window is the amount of receive data (in bytes) that can initially be buffered at one time
1326 on a connection. The sending host can send only that amount of data before waiting for an acknowledgment and window update
1327 from the receiving host. Takes a size in bytes between
1 and
4294967295 (
2^
32 -
1). The usual suffixes K, M, G are supported
1328 and are understood to the base of
1024. When unset, the kernel's default will be used.
1333 <term><varname>QuickAck=
</varname></term>
1335 <para>Takes a boolean. When true enables TCP quick ack mode for the route. When unset, the kernel's default will be used.
1340 <term><varname>FastOpenNoCookie=
</varname></term>
1342 <para>Takes a boolean. When true enables TCP fastopen without a cookie on a per-route basis.
1343 When unset, the kernel's default will be used.
1348 <term><varname>TTLPropagate=
</varname></term>
1350 <para>Takes a boolean. When true enables TTL propagation at Label Switched Path (LSP) egress.
1351 When unset, the kernel's default will be used.
1356 <term><varname>MTUBytes=
</varname></term>
1358 <para>The maximum transmission unit in bytes to set for the
1359 route. The usual suffixes K, M, G, are supported and are
1360 understood to the base of
1024.
</para>
1361 <para>Note that if IPv6 is enabled on the interface, and the MTU is chosen
1362 below
1280 (the minimum MTU for IPv6) it will automatically be increased to this value.
</para>
1366 <term><varname>IPServiceType=
</varname></term>
1368 <para>Takes string;
<literal>CS6
</literal> or
<literal>CS4
</literal>. Used to set IP
1369 service type to CS6 (network control) or CS4 (Realtime). Defaults to CS6.
</para>
1373 <term><varname>MultiPathRoute=
<replaceable>address
</replaceable>[@
<replaceable>name
</replaceable>] [
<replaceable>weight
</replaceable>]
</varname></term>
1375 <para>Configures multipath route. Multipath routing is the technique of using multiple
1376 alternative paths through a network. Takes gateway address. Optionally, takes a network
1377 interface name or index separated with
<literal>@
</literal>, and a weight in
1.
.256 for
1378 this multipath route separated with whitespace. This setting can be specified multiple
1379 times. If an empty string is assigned, then the all previous assignments are cleared.
</para>
1386 <title>[DHCPv4] Section Options
</title>
1387 <para>The
<literal>[DHCPv4]
</literal> section configures the
1388 DHCPv4 client, if it is enabled with the
1389 <varname>DHCP=
</varname> setting described above:
</para>
1391 <variablelist class='network-directives'
>
1393 <term><varname>UseDNS=
</varname></term>
1395 <para>When true (the default), the DNS servers received
1396 from the DHCP server will be used and take precedence over
1397 any statically configured ones.
</para>
1399 <para>This corresponds to the
<option>nameserver
</option>
1400 option in
<citerefentry
1401 project='man-pages'
><refentrytitle>resolv.conf
</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
</para>
1405 <term><varname>RoutesToDNS=
</varname></term>
1407 <para>When true, the routes to the DNS servers received from the DHCP server will be
1408 configured. When
<varname>UseDNS=
</varname> is disabled, this setting is ignored.
1409 Defaults to false.
</para>
1413 <term><varname>UseNTP=
</varname></term>
1415 <para>When true (the default), the NTP servers received from the DHCP server will be used by
1416 <filename>systemd-timesyncd.service
</filename> and take precedence over any statically configured
1421 <term><varname>UseSIP=
</varname></term>
1423 <para>When true (the default), the SIP servers received from the DHCP server will be collected
1424 and made available to client programs.
</para>
1429 <term><varname>UseMTU=
</varname></term>
1431 <para>When true, the interface maximum transmission unit
1432 from the DHCP server will be used on the current link.
1433 If
<varname>MTUBytes=
</varname> is set, then this setting is ignored.
1434 Defaults to false.
</para>
1438 <term><varname>Anonymize=
</varname></term>
1440 <para>Takes a boolean. When true, the options sent to the DHCP server will
1441 follow the
<ulink url=
"https://tools.ietf.org/html/rfc7844">RFC
7844</ulink>
1442 (Anonymity Profiles for DHCP Clients) to minimize disclosure of identifying information.
1443 Defaults to false.
</para>
1445 <para>This option should only be set to true when
1446 <varname>MACAddressPolicy=
</varname> is set to
<literal>random
</literal>
1448 project='man-pages'
><refentrytitle>systemd.link
</refentrytitle><manvolnum>5</manvolnum></citerefentry>).
</para>
1450 <para>Note that this configuration will overwrite others.
1451 In concrete, the following variables will be ignored:
1452 <varname>SendHostname=
</varname>,
<varname>ClientIdentifier=
</varname>,
1453 <varname>UseRoutes=
</varname>,
<varname>UseMTU=
</varname>,
1454 <varname>VendorClassIdentifier=
</varname>,
<varname>UseTimezone=
</varname>.
</para>
1456 <para>With this option enabled DHCP requests will mimic those generated by Microsoft Windows, in
1457 order to reduce the ability to fingerprint and recognize installations. This means DHCP request
1458 sizes will grow and lease data will be more comprehensive than normally, though most of the
1459 requested data is not actually used.
</para>
1463 <term><varname>SendHostname=
</varname></term>
1465 <para>When true (the default), the machine's hostname will be sent to the DHCP server.
1466 Note that the machine's hostname must consist only of
7-bit ASCII lower-case characters and
1467 no spaces or dots, and be formatted as a valid DNS domain name. Otherwise, the hostname is not
1468 sent even if this is set to true.
</para>
1473 <term><varname>MUDURL=
</varname></term>
1475 <para>When configured, the Manufacturer Usage Descriptions (MUD) URL will be sent to the
1476 DHCPv4 server. Takes an URL of length up to
255 characters. A superficial verification that
1477 the string is a valid URL will be performed. DHCPv4 clients are intended to have at most one
1478 MUD URL associated with them. See
1479 <ulink url=
"https://tools.ietf.org/html/rfc8520">RFC
8520</ulink>.
</para>
1484 <term><varname>UseHostname=
</varname></term>
1486 <para>When true (the default), the hostname received from
1487 the DHCP server will be set as the transient hostname of the system.
1492 <term><varname>Hostname=
</varname></term>
1494 <para>Use this value for the hostname which is sent to the DHCP server, instead of machine's hostname.
1495 Note that the specified hostname must consist only of
7-bit ASCII lower-case characters and
1496 no spaces or dots, and be formatted as a valid DNS domain name.
</para>
1500 <term><varname>UseDomains=
</varname></term>
1502 <para>Takes a boolean, or the special value
<literal>route
</literal>. When true, the domain name
1503 received from the DHCP server will be used as DNS search domain over this link, similar to the effect of
1504 the
<option>Domains=
</option> setting. If set to
<literal>route
</literal>, the domain name received from
1505 the DHCP server will be used for routing DNS queries only, but not for searching, similar to the effect of
1506 the
<option>Domains=
</option> setting when the argument is prefixed with
<literal>~
</literal>. Defaults to
1509 <para>It is recommended to enable this option only on trusted networks, as setting this affects resolution
1510 of all hostnames, in particular of single-label names. It is generally safer to use the supplied domain
1511 only as routing domain, rather than as search domain, in order to not have it affect local resolution of
1512 single-label names.
</para>
1514 <para>When set to true, this setting corresponds to the
<option>domain
</option> option in
<citerefentry
1515 project='man-pages'
><refentrytitle>resolv.conf
</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
</para>
1519 <term><varname>UseRoutes=
</varname></term>
1521 <para>When true (the default), the static routes will be requested from the DHCP server and added to the
1522 routing table with a metric of
1024, and a scope of
"global",
"link" or
"host", depending on the route's
1523 destination and gateway. If the destination is on the local host, e.g.,
127.x.x.x, or the same as the
1524 link's own address, the scope will be set to
"host". Otherwise if the gateway is null (a direct route), a
1525 "link" scope will be used. For anything else, scope defaults to
"global".
</para>
1529 <term><varname>UseGateway=
</varname></term>
1531 <para>When true, the gateway will be requested from the DHCP server and added to the routing table with a
1532 metric of
1024, and a scope of
"link". When unset, the value specified with
<option>UseRoutes=
</option>
1537 <term><varname>UseTimezone=
</varname></term>
1539 <listitem><para>When true, the timezone received from the
1540 DHCP server will be set as timezone of the local
1541 system. Defaults to
<literal>no
</literal>.
</para></listitem>
1545 <term><varname>ClientIdentifier=
</varname></term>
1547 <para>The DHCPv4 client identifier to use. Takes one of
<literal>mac
</literal>,
<literal>duid
</literal> or
<literal>duid-only
</literal>.
1548 If set to
<literal>mac
</literal>, the MAC address of the link is used.
1549 If set to
<literal>duid
</literal>, an RFC4361-compliant Client ID, which is the combination of IAID and DUID (see below), is used.
1550 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.
1551 Defaults to
<literal>duid
</literal>.
</para>
1556 <term><varname>VendorClassIdentifier=
</varname></term>
1558 <para>The vendor class identifier used to identify vendor
1559 type and configuration.
</para>
1564 <term><varname>UserClass=
</varname></term>
1566 <para>A DHCPv4 client can use UserClass option to identify the type or category of user or applications
1567 it represents. The information contained in this option is a string that represents the user class of which
1568 the client is a member. Each class sets an identifying string of information to be used by the DHCP
1569 service to classify clients. Takes a whitespace-separated list of strings.
</para>
1574 <term><varname>MaxAttempts=
</varname></term>
1576 <para>Specifies how many times the DHCPv4 client configuration should be attempted. Takes a
1577 number or
<literal>infinity
</literal>. Defaults to
<literal>infinity
</literal>.
1578 Note that the time between retries is increased exponentially, so the network will not be
1579 overloaded even if this number is high.
</para>
1584 <term><varname>DUIDType=
</varname></term>
1586 <para>Override the global
<varname>DUIDType
</varname> setting for this network. See
1587 <citerefentry><refentrytitle>networkd.conf
</refentrytitle><manvolnum>5</manvolnum></citerefentry>
1588 for a description of possible values.
</para>
1593 <term><varname>DUIDRawData=
</varname></term>
1595 <para>Override the global
<varname>DUIDRawData
</varname> setting for this network. See
1596 <citerefentry><refentrytitle>networkd.conf
</refentrytitle><manvolnum>5</manvolnum></citerefentry>
1597 for a description of possible values.
</para>
1602 <term><varname>IAID=
</varname></term>
1604 <para>The DHCP Identity Association Identifier (IAID) for the interface, a
32-bit unsigned integer.
</para>
1609 <term><varname>RequestBroadcast=
</varname></term>
1611 <para>Request the server to use broadcast messages before
1612 the IP address has been configured. This is necessary for
1613 devices that cannot receive RAW packets, or that cannot
1614 receive packets at all before an IP address has been
1615 configured. On the other hand, this must not be enabled on
1616 networks where broadcasts are filtered out.
</para>
1621 <term><varname>RouteMetric=
</varname></term>
1623 <para>Set the routing metric for routes specified by the DHCP server. Defaults to
1024.
</para>
1628 <term><varname>RouteTable=
<replaceable>num
</replaceable></varname></term>
1630 <para>The table identifier for DHCP routes (a number between
1 and
4294967295, or
0 to unset).
1631 The table can be retrieved using
<command>ip route show table
<replaceable>num
</replaceable></command>.
1633 <para>When used in combination with
<varname>VRF=
</varname> the
1634 VRF's routing table is used unless this parameter is specified.
1640 <term><varname>RouteMTUBytes=
</varname></term>
1642 <para>Specifies the MTU for the DHCP routes. Please see the [Route] section for further details.
</para>
1647 <term><varname>ListenPort=
</varname></term>
1649 <para>Allow setting custom port for the DHCP client to listen on.
</para>
1654 <term><varname>FallbackLeaseLifetimeSec=
</varname></term>
1656 <para>Allows to set DHCPv4 lease lifetime when DHCPv4 server does not send the lease lifetime.
1657 Takes one of
<literal>forever
</literal> or
<literal>infinity
</literal> means that the address
1658 never expires. Defaults to unset.
</para>
1663 <term><varname>SendRelease=
</varname></term>
1665 <para>When true, the DHCPv4 client sends a DHCP release packet when it stops.
1666 Defaults to true.
</para>
1671 <term><varname>SendDecline=
</varname></term>
1673 <para>A boolean. When
<literal>true
</literal>, DHCPv4 clients receives IP address from DHCP server.
1674 After new IP is received, DHCPv4 performs IPv4 Duplicate Address Detection. If duplicate use of IP is detected
1675 the DHCPv4 client rejects the IP by sending a DHCPDECLINE packet DHCP clients try to obtain an IP address again.
1676 See
<ulink url=
"https://tools.ietf.org/html/rfc5227">RFC
5224</ulink>.
1677 Defaults to
<literal>unset
</literal>.
</para>
1682 <term><varname>BlackList=
</varname></term>
1684 <para>A whitespace-separated list of IPv4 addresses. DHCP offers from servers in the list are rejected.
</para>
1689 <term><varname>RequestOptions=
</varname></term>
1691 <para>When configured, allows to set arbitrary request options in the DHCPv4 request options list and will be
1692 sent to the DHCPV4 server. A whitespace-separated list of integers in the range
1.
.254. Defaults to unset.
</para>
1697 <term><varname>SendOption=
</varname></term>
1699 <para>Send an arbitrary raw option in the DHCPv4 request. Takes a DHCP option number, data type
1700 and data separated with a colon
1701 (
<literal><replaceable>option
</replaceable>:
<replaceable>type
</replaceable>:
<replaceable>value
</replaceable></literal>).
1702 The option number must be an integer in the range
1.
.254. The type takes one of
<literal>uint8
</literal>,
1703 <literal>uint16
</literal>,
<literal>uint32
</literal>,
<literal>ipv4address
</literal>, or
1704 <literal>string
</literal>. Special characters in the data string may be escaped using
1705 <ulink url=
"https://en.wikipedia.org/wiki/Escape_sequences_in_C#Table_of_escape_sequences">C-style
1706 escapes
</ulink>. This setting can be specified multiple times. If an empty string is specified,
1707 then all options specified earlier are cleared. Defaults to unset.
</para>
1712 <term><varname>SendVendorOption=
</varname></term>
1714 <para>Send an arbitrary vendor option in the DHCPv4 request. Takes a DHCP option number, data type
1715 and data separated with a colon
1716 (
<literal><replaceable>option
</replaceable>:
<replaceable>type
</replaceable>:
<replaceable>value
</replaceable></literal>).
1717 The option number must be an integer in the range
1.
.254. The type takes one of
<literal>uint8
</literal>,
1718 <literal>uint16
</literal>,
<literal>uint32
</literal>,
<literal>ipv4address
</literal>, or
1719 <literal>string
</literal>. Special characters in the data string may be escaped using
1720 <ulink url=
"https://en.wikipedia.org/wiki/Escape_sequences_in_C#Table_of_escape_sequences">C-style
1721 escapes
</ulink>. This setting can be specified multiple times. If an empty string is specified,
1722 then all options specified earlier are cleared. Defaults to unset.
</para>
1729 <title>[DHCPv6] Section Options
</title>
1730 <para>The
<literal>[DHCPv6]
</literal> section configures the DHCPv6 client, if it is enabled with the
1731 <varname>DHCP=
</varname> setting described above, or invoked by the IPv6 Router Advertisement:
</para>
1733 <variablelist class='network-directives'
>
1735 <term><varname>UseDNS=
</varname></term>
1736 <term><varname>UseNTP=
</varname></term>
1738 <para>As in the
<literal>[DHCPv4]
</literal> section.
</para>
1743 <term><varname>RouteMetric=
</varname></term>
1745 <para>Set the routing metric for routes specified by the DHCP server. Defaults to
1024.
</para>
1750 <term><varname>RapidCommit=
</varname></term>
1752 <para>Takes a boolean. The DHCPv6 client can obtain configuration parameters from a DHCPv6 server through
1753 a rapid two-message exchange (solicit and reply). When the rapid commit option is enabled by both
1754 the DHCPv6 client and the DHCPv6 server, the two-message exchange is used, rather than the default
1755 four-method exchange (solicit, advertise, request, and reply). The two-message exchange provides
1756 faster client configuration and is beneficial in environments in which networks are under a heavy load.
1757 See
<ulink url=
"https://tools.ietf.org/html/rfc3315#section-17.2.1">RFC
3315</ulink> for details.
1758 Defaults to true.
</para>
1763 <term><varname>MUDURL=
</varname></term>
1765 <para>When configured, the Manufacturer Usage Descriptions (MUD) URL will be sent to the DHCPV6 server.
1766 Takes an URL of length up to
255 characters. A superficial verification that the string is a valid URL
1767 will be performed. DHCPv6 clients are intended to have at most one MUD URL associated with them. See
1768 <ulink url=
"https://tools.ietf.org/html/rfc8520">RFC
8520</ulink>.
</para>
1773 <term><varname>RequestOptions=
</varname></term>
1775 <para>When configured, allows to set arbitrary request options in the DHCPv6 request options list and will
1776 sent to the DHCPV6 server. A whitespace-separated list of integers in the range
1.
.254. Defaults to unset.
</para>
1781 <term><varname>SendVendorOption=
</varname></term>
1783 <para>Send an arbitrary vendor option in the DHCPv6 request. Takes an enterprise identifier, DHCP option number,
1784 data type, and data separated with a colon
1785 (
<literal><replaceable>enterprise identifier
</replaceable>:
<replaceable>option
</replaceable>:
<replaceable>type
</replaceable>:
1786 <replaceable>value
</replaceable></literal>). Enterprise identifier is an unsigned integer ranges
1.
.4294967294.
1787 The option number must be an integer in the range
1.
.254. Data type takes one of
<literal>uint8
</literal>,
1788 <literal>uint16
</literal>,
<literal>uint32
</literal>,
<literal>ipv4address
</literal>,
<literal>ipv6address
</literal>, or
1789 <literal>string
</literal>. Special characters in the data string may be escaped using
1790 <ulink url=
"https://en.wikipedia.org/wiki/Escape_sequences_in_C#Table_of_escape_sequences">C-style
1791 escapes
</ulink>. This setting can be specified multiple times. If an empty string is specified,
1792 then all options specified earlier are cleared. Defaults to unset.
</para>
1797 <term><varname>ForceDHCPv6PDOtherInformation=
</varname></term>
1799 <para>Takes a boolean that enforces DHCPv6 stateful mode when the 'Other information' bit is set in
1800 Router Advertisement messages. By default setting only the 'O' bit in Router Advertisements
1801 makes DHCPv6 request network information in a stateless manner using a two-message Information
1802 Request and Information Reply message exchange.
1803 <ulink url=
"https://tools.ietf.org/html/rfc7084">RFC
7084</ulink>, requirement WPD-
4, updates
1804 this behavior for a Customer Edge router so that stateful DHCPv6 Prefix Delegation is also
1805 requested when only the 'O' bit is set in Router Advertisements. This option enables such a CE
1806 behavior as it is impossible to automatically distinguish the intention of the 'O' bit otherwise.
1807 By default this option is set to 'false', enable it if no prefixes are delegated when the device
1808 should be acting as a CE router.
</para>
1813 <term><varname>AssignAcquiredDelegatedPrefixAddress=
</varname></term>
1815 <para>Takes a boolean. Specifies whether to add an address from the delegated prefixes which are received
1816 from the WAN interface by the
<varname>IPv6PrefixDelegation=
</varname>. When true (on LAN interfce), the EUI-
64
1817 algorithm will be used to form an interface identifier from the delegated prefixes. Defaults to true.
</para>
1822 <term><varname>AssignAcquiredDelegatedPrefixToken=
</varname></term>
1824 <para>Specifies an optional address generation mode for
<varname>AssignAcquiredDelegatedPrefixAddress=
</varname>.
1825 Takes an IPv6 address. When set, the lower bits of the supplied address are combined with the upper bits of a
1826 delegatad prefix received from the WAN interface by the
<varname>IPv6PrefixDelegation=
</varname> prefixes to
1827 form a complete address.
</para>
1832 <term><varname>PrefixDelegationHint=
</varname></term>
1834 <para>Takes an IPv6 address with prefix length as
<varname>Address=
</varname> in
1835 the
"[Network]" section. Specifies the DHCPv6 client for the requesting router to include
1836 a prefix-hint in the DHCPv6 solicitation. Prefix ranges
1.
.128. Defaults to unset.
</para>
1841 <term><varname>WithoutRA=
</varname></term>
1843 <para>When true, DHCPv6 client starts without router advertisements's managed or other address configuration flag.
1844 Defaults to false.
</para>
1849 <term><varname>SendOption=
</varname></term>
1851 <para>As in the
<literal>[DHCPv4]
</literal> section, however because DHCPv6 uses
16-bit fields to store
1852 option numbers, the option number is an integer in the range
1.
.65536.
</para>
1857 <term><varname>UserClass=
</varname></term>
1859 <para>A DHCPv6 client can use User Class option to identify the type or category of user or applications
1860 it represents. The information contained in this option is a string that represents the user class of which
1861 the client is a member. Each class sets an identifying string of information to be used by the DHCP
1862 service to classify clients. Special characters in the data string may be escaped using
1863 <ulink url=
"https://en.wikipedia.org/wiki/Escape_sequences_in_C#Table_of_escape_sequences">C-style
1864 escapes
</ulink>. This setting can be specified multiple times. If an empty string is specified,
1865 then all options specified earlier are cleared. Takes a whitespace-separated list of strings. Note that
1866 currently NUL bytes are not allowed.
</para>
1871 <term><varname>VendorClass=
</varname></term>
1873 <para>A DHCPv6 client can use VendorClass option to identify the vendor that
1874 manufactured the hardware on which the client is running. The information
1875 contained in the data area of this option is contained in one or more opaque
1876 fields that identify details of the hardware configuration. Takes a
1877 whitespace-separated list of strings.
</para>
1884 <title>[IPv6AcceptRA] Section Options
</title>
1885 <para>The
<literal>[IPv6AcceptRA]
</literal> section configures the IPv6 Router Advertisement
1886 (RA) client, if it is enabled with the
<varname>IPv6AcceptRA=
</varname> setting described
1889 <variablelist class='network-directives'
>
1891 <term><varname>UseDNS=
</varname></term>
1893 <para>When true (the default), the DNS servers received in the Router Advertisement will be used and take
1894 precedence over any statically configured ones.
</para>
1896 <para>This corresponds to the
<option>nameserver
</option> option in
<citerefentry
1897 project='man-pages'
><refentrytitle>resolv.conf
</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
</para>
1902 <term><varname>UseDomains=
</varname></term>
1904 <para>Takes a boolean, or the special value
<literal>route
</literal>. When true, the domain name
1905 received via IPv6 Router Advertisement (RA) will be used as DNS search domain over this link, similar to
1906 the effect of the
<option>Domains=
</option> setting. If set to
<literal>route
</literal>, the domain name
1907 received via IPv6 RA will be used for routing DNS queries only, but not for searching, similar to the
1908 effect of the
<option>Domains=
</option> setting when the argument is prefixed with
1909 <literal>~
</literal>. Defaults to false.
</para>
1911 <para>It is recommended to enable this option only on trusted networks, as setting this affects resolution
1912 of all hostnames, in particular of single-label names. It is generally safer to use the supplied domain
1913 only as routing domain, rather than as search domain, in order to not have it affect local resolution of
1914 single-label names.
</para>
1916 <para>When set to true, this setting corresponds to the
<option>domain
</option> option in
<citerefentry
1917 project='man-pages'
><refentrytitle>resolv.conf
</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
</para>
1922 <term><varname>RouteTable=
<replaceable>num
</replaceable></varname></term>
1924 <para>The table identifier for the routes received in the Router Advertisement
1925 (a number between
1 and
4294967295, or
0 to unset).
1926 The table can be retrieved using
<command>ip route show table
<replaceable>num
</replaceable></command>.
1932 <term><varname>UseAutonomousPrefix=
</varname></term>
1934 <para>When true (the default), the autonomous prefix received in the Router Advertisement will be used and take
1935 precedence over any statically configured ones.
</para>
1940 <term><varname>UseOnLinkPrefix=
</varname></term>
1942 <para>When true (the default), the onlink prefix received in the Router Advertisement will be used and take
1943 precedence over any statically configured ones.
</para>
1948 <term><varname>BlackList=
</varname></term>
1950 <para>A whitespace-separated list of IPv6 prefixes. IPv6 prefixes supplied via router advertisements in the list are ignored.
</para>
1955 <term><varname>DHCPv6Client=
</varname></term>
1957 <para>Takes a boolean, or the special value
<literal>always
</literal>. When true (the default), the DHCPv6 client will be started when the
1958 RA has the managed or other information flag. If set to
<literal>always
</literal>, the DHCPv6 client will be started even if there is no
1959 managed or other information flag in the RA.
</para>
1966 <title>[DHCPServer] Section Options
</title>
1967 <para>The
<literal>[DHCPServer]
</literal> section contains
1968 settings for the DHCP server, if enabled via the
1969 <varname>DHCPServer=
</varname> option described above:
</para>
1971 <variablelist class='network-directives'
>
1974 <term><varname>PoolOffset=
</varname></term>
1975 <term><varname>PoolSize=
</varname></term>
1977 <listitem><para>Configures the pool of addresses to hand out. The pool
1978 is a contiguous sequence of IP addresses in the subnet configured for
1979 the server address, which does not include the subnet nor the broadcast
1980 address.
<varname>PoolOffset=
</varname> takes the offset of the pool
1981 from the start of subnet, or zero to use the default value.
1982 <varname>PoolSize=
</varname> takes the number of IP addresses in the
1983 pool or zero to use the default value. By default, the pool starts at
1984 the first address after the subnet address and takes up the rest of
1985 the subnet, excluding the broadcast address. If the pool includes
1986 the server address (the default), this is reserved and not handed
1987 out to clients.
</para></listitem>
1991 <term><varname>DefaultLeaseTimeSec=
</varname></term>
1992 <term><varname>MaxLeaseTimeSec=
</varname></term>
1994 <listitem><para>Control the default and maximum DHCP lease
1995 time to pass to clients. These settings take time values in seconds or
1996 another common time unit, depending on the suffix. The default
1997 lease time is used for clients that did not ask for a specific
1998 lease time. If a client asks for a lease time longer than the
1999 maximum lease time, it is automatically shortened to the
2000 specified time. The default lease time defaults to
1h, the
2001 maximum lease time to
12h. Shorter lease times are beneficial
2002 if the configuration data in DHCP leases changes frequently
2003 and clients shall learn the new settings with shorter
2004 latencies. Longer lease times reduce the generated DHCP
2005 network traffic.
</para></listitem>
2009 <term><varname>EmitDNS=
</varname></term>
2010 <term><varname>DNS=
</varname></term>
2012 <listitem><para><varname>EmitDNS=
</varname> takes a boolean. Configures whether the DHCP leases
2013 handed out to clients shall contain DNS server information. Defaults to
<literal>yes
</literal>. The
2014 DNS servers to pass to clients may be configured with the
<varname>DNS=
</varname> option, which takes
2015 a list of IPv4 addresses. If the
<varname>EmitDNS=
</varname> option is enabled but no servers
2016 configured, the servers are automatically propagated from an
"uplink" interface that has appropriate
2017 servers set. The
"uplink" interface is determined by the default route of the system with the highest
2018 priority. Note that this information is acquired at the time the lease is handed out, and does not
2019 take uplink interfaces into account that acquire DNS server information at a later point. If no
2020 suitable uplinkg interface is found the DNS server data from
<filename>/etc/resolv.conf
</filename> is
2021 used. Also, note that the leases are not refreshed if the uplink network configuration changes. To
2022 ensure clients regularly acquire the most current uplink DNS server information, it is thus advisable
2023 to shorten the DHCP lease time via
<varname>MaxLeaseTimeSec=
</varname> described
2024 above.
</para></listitem>
2028 <term><varname>EmitNTP=
</varname></term>
2029 <term><varname>NTP=
</varname></term>
2030 <term><varname>EmitSIP=
</varname></term>
2031 <term><varname>SIP=
</varname></term>
2032 <term><varname>EmitPOP3=
</varname></term>
2033 <term><varname>POP3=
</varname></term>
2034 <term><varname>EmitSMTP=
</varname></term>
2035 <term><varname>SMTP=
</varname></term>
2036 <term><varname>EmitLPR=
</varname></term>
2037 <term><varname>LPR=
</varname></term>
2039 <listitem><para>Similar to the
<varname>EmitDNS=
</varname> and
<varname>DNS=
</varname> settings
2040 described above, these settings configure whether and what server information for the indicate
2041 protocol shall be emitted as part of the DHCP lease. The same syntax, propagation semantics and
2042 defaults apply as for
<varname>EmitDNS=
</varname> and
<varname>DNS=
</varname>.
</para></listitem>
2046 <term><varname>EmitRouter=
</varname></term>
2048 <listitem><para>Similar to the
<varname>EmitDNS=
</varname>
2049 setting described above, this setting configures whether the
2050 DHCP lease should contain the router option. The same syntax,
2051 propagation semantics and defaults apply as for
2052 <varname>EmitDNS=
</varname>.
</para></listitem>
2056 <term><varname>EmitTimezone=
</varname></term>
2057 <term><varname>Timezone=
</varname></term>
2059 <listitem><para>Takes a boolean. Configures whether the DHCP leases handed out
2060 to clients shall contain timezone information. Defaults to
<literal>yes
</literal>. The
2061 <varname>Timezone=
</varname> setting takes a timezone string
2062 (such as
<literal>Europe/Berlin
</literal> or
2063 <literal>UTC
</literal>) to pass to clients. If no explicit
2064 timezone is set, the system timezone of the local host is
2065 propagated, as determined by the
2066 <filename>/etc/localtime
</filename> symlink.
</para></listitem>
2070 <term><varname>SendOption=
</varname></term>
2072 <para>Send a raw option with value via DHCPv4 server. Takes a DHCP option number, data type
2073 and data (
<literal><replaceable>option
</replaceable>:
<replaceable>type
</replaceable>:
<replaceable>value
</replaceable></literal>).
2074 The option number is an integer in the range
1.
.254. The type takes one of
<literal>uint8
</literal>,
2075 <literal>uint16
</literal>,
<literal>uint32
</literal>,
<literal>ipv4address
</literal>,
<literal>ipv6address
</literal>, or
2076 <literal>string
</literal>. Special characters in the data string may be escaped using
2077 <ulink url=
"https://en.wikipedia.org/wiki/Escape_sequences_in_C#Table_of_escape_sequences">C-style
2078 escapes
</ulink>. This setting can be specified multiple times. If an empty string is specified,
2079 then all options specified earlier are cleared. Defaults to unset.
</para>
2084 <term><varname>SendVendorOption=
</varname></term>
2086 <para>Send a vendor option with value via DHCPv4 server. Takes a DHCP option number, data type
2087 and data (
<literal><replaceable>option
</replaceable>:
<replaceable>type
</replaceable>:
<replaceable>value
</replaceable></literal>).
2088 The option number is an integer in the range
1.
.254. The type takes one of
<literal>uint8
</literal>,
2089 <literal>uint16
</literal>,
<literal>uint32
</literal>,
<literal>ipv4address
</literal>, or
2090 <literal>string
</literal>. Special characters in the data string may be escaped using
2091 <ulink url=
"https://en.wikipedia.org/wiki/Escape_sequences_in_C#Table_of_escape_sequences">C-style
2092 escapes
</ulink>. This setting can be specified multiple times. If an empty string is specified,
2093 then all options specified earlier are cleared. Defaults to unset.
</para>
2101 <title>[IPv6PrefixDelegation] Section Options
</title>
2102 <para>The
<literal>[IPv6PrefixDelegation]
</literal> section contains
2103 settings for sending IPv6 Router Advertisements and whether to act as
2104 a router, if enabled via the
<varname>IPv6PrefixDelegation=
</varname>
2105 option described above. IPv6 network prefixes are defined with one or
2106 more
<literal>[IPv6Prefix]
</literal> sections.
</para>
2108 <variablelist class='network-directives'
>
2111 <term><varname>Managed=
</varname></term>
2112 <term><varname>OtherInformation=
</varname></term>
2114 <listitem><para>Takes a boolean. Controls whether a DHCPv6 server is used to acquire IPv6
2115 addresses on the network link when
<varname>Managed=
</varname>
2116 is set to
<literal>true
</literal> or if only additional network
2117 information can be obtained via DHCPv6 for the network link when
2118 <varname>OtherInformation=
</varname> is set to
2119 <literal>true
</literal>. Both settings default to
2120 <literal>false
</literal>, which means that a DHCPv6 server is not being
2121 used.
</para></listitem>
2125 <term><varname>RouterLifetimeSec=
</varname></term>
2127 <listitem><para>Takes a timespan. Configures the IPv6 router lifetime in seconds. If set,
2128 this host also announces itself in Router Advertisements as an IPv6
2129 router for the network link. When unset, the host is not acting as a router.
</para>
2134 <term><varname>RouterPreference=
</varname></term>
2136 <listitem><para>Configures IPv6 router preference if
2137 <varname>RouterLifetimeSec=
</varname> is non-zero. Valid values are
2138 <literal>high
</literal>,
<literal>medium
</literal> and
2139 <literal>low
</literal>, with
<literal>normal
</literal> and
2140 <literal>default
</literal> added as synonyms for
2141 <literal>medium
</literal> just to make configuration easier. See
2142 <ulink url=
"https://tools.ietf.org/html/rfc4191">RFC
4191</ulink>
2143 for details. Defaults to
<literal>medium
</literal>.
</para></listitem>
2147 <term><varname>EmitDNS=
</varname></term>
2148 <term><varname>DNS=
</varname></term>
2150 <listitem><para><varname>DNS=
</varname> specifies a list of recursive DNS server IPv6 addresses
2151 that are distributed via Router Advertisement messages when
<varname>EmitDNS=
</varname> is
2152 true.
<varname>DNS=
</varname> also takes special value
<literal>_link_local
</literal>; in that
2153 case the IPv6 link local address is distributed. If
<varname>DNS=
</varname> is empty, DNS
2154 servers are read from the
<literal>[Network]
</literal> section. If the
2155 <literal>[Network]
</literal> section does not contain any DNS servers either, DNS servers from
2156 the uplink with the highest priority default route are used. When
<varname>EmitDNS=
</varname>
2157 is false, no DNS server information is sent in Router Advertisement messages.
2158 <varname>EmitDNS=
</varname> defaults to true.
2163 <term><varname>EmitDomains=
</varname></term>
2164 <term><varname>Domains=
</varname></term>
2166 <listitem><para>A list of DNS search domains distributed via Router
2167 Advertisement messages when
<varname>EmitDomains=
</varname> is true. If
2168 <varname>Domains=
</varname> is empty, DNS search domains are read from the
2169 <literal>[Network]
</literal> section. If the
<literal>[Network]
</literal>
2170 section does not contain any DNS search domains either, DNS search
2171 domains from the uplink with the highest priority default route are
2172 used. When
<varname>EmitDomains=
</varname> is false, no DNS search domain
2173 information is sent in Router Advertisement messages.
2174 <varname>EmitDomains=
</varname> defaults to true.
2179 <term><varname>DNSLifetimeSec=
</varname></term>
2181 <listitem><para>Lifetime in seconds for the DNS server addresses listed
2182 in
<varname>DNS=
</varname> and search domains listed in
2183 <varname>Domains=
</varname>.
</para></listitem>
2190 <title>[IPv6Prefix] Section Options
</title>
2191 <para>One or more
<literal>[IPv6Prefix]
</literal> sections contain the IPv6
2192 prefixes that are announced via Router Advertisements. See
2193 <ulink url=
"https://tools.ietf.org/html/rfc4861">RFC
4861</ulink>
2194 for further details.
</para>
2196 <variablelist class='network-directives'
>
2199 <term><varname>AddressAutoconfiguration=
</varname></term>
2200 <term><varname>OnLink=
</varname></term>
2202 <listitem><para>Takes a boolean to specify whether IPv6 addresses can be
2203 autoconfigured with this prefix and whether the prefix can be used for
2204 onlink determination. Both settings default to
<literal>true
</literal>
2205 in order to ease configuration.
2210 <term><varname>Prefix=
</varname></term>
2212 <listitem><para>The IPv6 prefix that is to be distributed to hosts.
2213 Similarly to configuring static IPv6 addresses, the setting is
2214 configured as an IPv6 prefix and its prefix length, separated by a
2215 <literal>/
</literal> character. Use multiple
2216 <literal>[IPv6Prefix]
</literal> sections to configure multiple IPv6
2217 prefixes since prefix lifetimes, address autoconfiguration and onlink
2218 status may differ from one prefix to another.
</para></listitem>
2222 <term><varname>PreferredLifetimeSec=
</varname></term>
2223 <term><varname>ValidLifetimeSec=
</varname></term>
2225 <listitem><para>Preferred and valid lifetimes for the prefix measured in
2226 seconds.
<varname>PreferredLifetimeSec=
</varname> defaults to
604800
2227 seconds (one week) and
<varname>ValidLifetimeSec=
</varname> defaults
2228 to
2592000 seconds (
30 days).
</para></listitem>
2232 <term><varname>Assign=
</varname></term>
2233 <listitem><para>Takes a boolean. When true, adds an address from the prefix. Default to false.
2240 <title>[IPv6RoutePrefix] Section Options
</title>
2241 <para>One or more
<literal>[IPv6RoutePrefix]
</literal> sections contain the IPv6
2242 prefix routes that are announced via Router Advertisements. See
2243 <ulink url=
"https://tools.ietf.org/html/rfc4191">RFC
4191</ulink>
2244 for further details.
</para>
2246 <variablelist class='network-directives'
>
2249 <term><varname>Route=
</varname></term>
2251 <listitem><para>The IPv6 route that is to be distributed to hosts.
2252 Similarly to configuring static IPv6 routes, the setting is
2253 configured as an IPv6 prefix routes and its prefix route length,
2254 separated by a
<literal>/
</literal> character. Use multiple
2255 <literal>[IPv6PrefixRoutes]
</literal> sections to configure multiple IPv6
2256 prefix routes.
</para></listitem>
2260 <term><varname>LifetimeSec=
</varname></term>
2262 <listitem><para>Lifetime for the route prefix measured in
2263 seconds.
<varname>LifetimeSec=
</varname> defaults to
604800 seconds (one week).
2271 <title>[Bridge] Section Options
</title>
2272 <para>The
<literal>[Bridge]
</literal> section accepts the
2273 following keys.
</para>
2274 <variablelist class='network-directives'
>
2276 <term><varname>UnicastFlood=
</varname></term>
2278 <para>Takes a boolean. Controls whether the bridge should flood
2279 traffic for which an FDB entry is missing and the destination
2280 is unknown through this port. When unset, the kernel's default will be used.
2285 <term><varname>MulticastFlood=
</varname></term>
2287 <para>Takes a boolean. Controls whether the bridge should flood
2288 traffic for which an MDB entry is missing and the destination
2289 is unknown through this port. When unset, the kernel's default will be used.
2294 <term><varname>MulticastToUnicast=
</varname></term>
2296 <para>Takes a boolean. Multicast to unicast works on top of the multicast snooping feature of
2297 the bridge. Which means unicast copies are only delivered to hosts which are interested in it.
2298 When unset, the kernel's default will be used.
2303 <term><varname>NeighborSuppression=
</varname></term>
2305 <para>Takes a boolean. Configures whether ARP and ND neighbor suppression is enabled for
2306 this port. When unset, the kernel's default will be used.
2311 <term><varname>Learning=
</varname></term>
2313 <para>Takes a boolean. Configures whether MAC address learning is enabled for
2314 this port. When unset, the kernel's default will be used.
2319 <term><varname>HairPin=
</varname></term>
2321 <para>Takes a boolean. Configures whether traffic may be sent back
2322 out of the port on which it was received. When this flag is false, and the bridge
2323 will not forward traffic back out of the receiving port.
2324 When unset, the kernel's default will be used.
</para>
2328 <term><varname>UseBPDU=
</varname></term>
2330 <para>Takes a boolean. Configures whether STP Bridge Protocol Data Units will be
2331 processed by the bridge port. When unset, the kernel's default will be used.
</para>
2335 <term><varname>FastLeave=
</varname></term>
2337 <para>Takes a boolean. This flag allows the bridge to immediately stop multicast
2338 traffic on a port that receives an IGMP Leave message. It is only used with
2339 IGMP snooping if enabled on the bridge. When unset, the kernel's default will be used.
</para>
2343 <term><varname>AllowPortToBeRoot=
</varname></term>
2345 <para>Takes a boolean. Configures whether a given port is allowed to
2346 become a root port. Only used when STP is enabled on the bridge.
2347 When unset, the kernel's default will be used.
</para>
2351 <term><varname>ProxyARP=
</varname></term>
2353 <para>Takes a boolean. Configures whether proxy ARP to be enabled on this port.
2354 When unset, the kernel's default will be used.
</para>
2358 <term><varname>ProxyARPWiFi=
</varname></term>
2360 <para>Takes a boolean. Configures whether proxy ARP to be enabled on this port
2361 which meets extended requirements by IEEE
802.11 and Hotspot
2.0 specifications.
2362 When unset, the kernel's default will be used.
</para>
2366 <term><varname>MulticastRouter=
</varname></term>
2368 <para>Configures this port for having multicast routers attached. A port with a multicast
2369 router will receive all multicast traffic. Takes one of
<literal>no
</literal>
2370 to disable multicast routers on this port,
<literal>query
</literal> to let the system detect
2371 the presence of routers,
<literal>permanent
</literal> to permanently enable multicast traffic
2372 forwarding on this port, or
<literal>temporary
</literal> to enable multicast routers temporarily
2373 on this port, not depending on incoming queries. When unset, the kernel's default will be used.
</para>
2377 <term><varname>Cost=
</varname></term>
2379 <para>Sets the
"cost" of sending packets of this interface.
2380 Each port in a bridge may have a different speed and the cost
2381 is used to decide which link to use. Faster interfaces
2382 should have lower costs. It is an integer value between
1 and
2387 <term><varname>Priority=
</varname></term>
2389 <para>Sets the
"priority" of sending packets on this interface.
2390 Each port in a bridge may have a different priority which is used
2391 to decide which link to use. Lower value means higher priority.
2392 It is an integer value between
0 to
63. Networkd does not set any
2393 default, meaning the kernel default value of
32 is used.
</para>
2399 <title>[BridgeFDB] Section Options
</title>
2400 <para>The
<literal>[BridgeFDB]
</literal> section manages the
2401 forwarding database table of a port and accepts the following
2402 keys. Specify several
<literal>[BridgeFDB]
</literal> sections to
2403 configure several static MAC table entries.
</para>
2405 <variablelist class='network-directives'
>
2407 <term><varname>MACAddress=
</varname></term>
2409 <para>As in the
<literal>[Network]
</literal> section. This
2410 key is mandatory.
</para>
2414 <term><varname>Destination=
</varname></term>
2416 <para>Takes an IP address of the destination VXLAN tunnel endpoint.
</para>
2420 <term><varname>VLANId=
</varname></term>
2422 <para>The VLAN ID for the new static MAC table entry. If
2423 omitted, no VLAN ID information is appended to the new static MAC
2428 <term><varname>VNI=
</varname></term>
2430 <para>The VXLAN Network Identifier (or VXLAN Segment ID) to use to connect to
2431 the remote VXLAN tunnel endpoint. Takes a number in the range
1-
16777215.
2432 Defaults to unset.
</para>
2436 <term><varname>AssociatedWith=
</varname></term>
2438 <para>Specifies where the address is associated with. Takes one of
<literal>use
</literal>,
2439 <literal>self
</literal>,
<literal>master
</literal> or
<literal>router
</literal>.
2440 <literal>use
</literal> means the address is in use. User space can use this option to
2441 indicate to the kernel that the fdb entry is in use.
<literal>self
</literal> means
2442 the address is associated with the port drivers fdb. Usually hardware.
<literal>master
</literal>
2443 means the address is associated with master devices fdb.
<literal>router
</literal> means
2444 the destination address is associated with a router. Note that it's valid if the referenced
2445 device is a VXLAN type device and has route shortcircuit enabled. Defaults to
<literal>self
</literal>.
</para>
2452 <title>[LLDP] Section Options
</title>
2453 <para>The
<literal>[LLDP]
</literal> section manages the Link Layer Discovery Protocol (LLDP) and accepts the
2454 following keys.
</para>
2455 <variablelist class='network-directives'
>
2457 <term><varname>MUDURL=
</varname></term>
2459 <para>Controls support for Ethernet LLDP packet's Manufacturer Usage Description (MUD). MUD is an embedded software
2460 standard defined by the IETF that allows IoT Device makers to advertise device specifications, including the intended
2461 communication patterns for their device when it connects to the network. The network can then use this intent to author
2462 a context-specific access policy, so the device functions only within those parameters. Takes an URL of length up to
255
2463 characters. A superficial verification that the string is a valid URL
2464 will be performed. See
2465 <ulink url=
"https://tools.ietf.org/html/rfc8520">RFC
8520</ulink> for details. The MUD URL received
2466 from the LLDP packets will be saved at the state files and can be read via
2467 <function>sd_lldp_neighbor_get_mud_url()
</function> function.
</para>
2474 <title>[CAN] Section Options
</title>
2475 <para>The
<literal>[CAN]
</literal> section manages the Controller Area Network (CAN bus) and accepts the
2476 following keys.
</para>
2477 <variablelist class='network-directives'
>
2479 <term><varname>BitRate=
</varname></term>
2481 <para>The bitrate of CAN device in bits per second. The usual SI prefixes (K, M) with the base of
1000 can
2482 be used here. Takes a number in the range
1.
.4294967295.
</para>
2486 <term><varname>SamplePoint=
</varname></term>
2488 <para>Optional sample point in percent with one decimal (e.g.
<literal>75%
</literal>,
2489 <literal>87.5%
</literal>) or permille (e.g.
<literal>875‰
</literal>).
</para>
2493 <term><varname>DataBitRate=
</varname></term>
2494 <term><varname>DataSamplePoint=
</varname></term>
2496 <para>The bitrate and sample point for the data phase, if CAN-FD is used. These settings are
2497 analogous to the
<varname>BitRate=
</varname> and
<varname>SamplePoint=
</varname> keys.
</para>
2501 <term><varname>FDMode=
</varname></term>
2503 <para>Takes a boolean. When
<literal>yes
</literal>, CAN-FD mode is enabled for the interface.
2504 Note, that a bitrate and optional sample point should also be set for the CAN-FD data phase using
2505 the
<varname>DataBitRate=
</varname> and
<varname>DataSamplePoint=
</varname> keys.
</para>
2509 <term><varname>FDNonISO=
</varname></term>
2511 <para>Takes a boolean. When
<literal>yes
</literal>, non-ISO CAN-FD mode is enabled for the
2512 interface. When unset, the kernel's default will be used.
</para>
2516 <term><varname>RestartSec=
</varname></term>
2518 <para>Automatic restart delay time. If set to a non-zero value, a restart of the CAN controller will be
2519 triggered automatically in case of a bus-off condition after the specified delay time. Subsecond delays can
2520 be specified using decimals (e.g.
<literal>0.1s
</literal>) or a
<literal>ms
</literal> or
2521 <literal>us
</literal> postfix. Using
<literal>infinity
</literal> or
<literal>0</literal> will turn the
2522 automatic restart off. By default automatic restart is disabled.
</para>
2526 <term><varname>Termination=
</varname></term>
2528 <para>Takes a boolean. When
<literal>yes
</literal>, the termination resistor will be selected for
2529 the bias network. When unset, the kernel's default will be used.
</para>
2533 <term><varname>TripleSampling=
</varname></term>
2535 <para>Takes a boolean. When
<literal>yes
</literal>, three samples (instead of one) are used to determine
2536 the value of a received bit by majority rule. When unset, the kernel's default will be used.
</para>
2540 <term><varname>ListenOnly=
</varname></term>
2542 <para>Takes a boolean. When
<literal>yes
</literal>, listen-only mode is enabled. When the
2543 interface is in listen-only mode, the interface neither transmit CAN frames nor send ACK
2544 bit. Listen-only mode is important to debug CAN networks without interfering with the
2545 communication or acknowledge the CAN frame. When unset, the kernel's default will be used.
2553 <title>[QDisc] Section Options
</title>
2554 <para>The
<literal>[QDisc]
</literal> section manages the traffic control queueing discipline (qdisc).
</para>
2556 <variablelist class='network-directives'
>
2558 <term><varname>Parent=
</varname></term>
2560 <para>Specifies the parent Queueing Discipline (qdisc). Takes one of
<literal>clsact
</literal>
2561 or
<literal>ingress
</literal>. This is mandatory.
</para>
2565 <xi:include href=
"tc.xml" xpointer=
"qdisc-handle" />
2570 <title>[NetworkEmulator] Section Options
</title>
2571 <para>The
<literal>[NetworkEmulator]
</literal> section manages the queueing discipline (qdisc) of
2572 the network emulator. It can be used to configure the kernel packet scheduler and simulate packet
2573 delay and loss for UDP or TCP applications, or limit the bandwidth usage of a particular service to
2574 simulate internet connections.
</para>
2576 <variablelist class='network-directives'
>
2577 <xi:include href=
"tc.xml" xpointer=
"qdisc-parent" />
2578 <xi:include href=
"tc.xml" xpointer=
"qdisc-handle" />
2581 <term><varname>DelaySec=
</varname></term>
2583 <para>Specifies the fixed amount of delay to be added to all packets going out of the
2584 interface. Defaults to unset.
</para>
2589 <term><varname>DelayJitterSec=
</varname></term>
2591 <para>Specifies the chosen delay to be added to the packets outgoing to the network
2592 interface. Defaults to unset.
</para>
2597 <term><varname>PacketLimit=
</varname></term>
2599 <para>Specifies the maximum number of packets the qdisc may hold queued at a time.
2600 An unsigned integer ranges
0 to
4294967294. Defaults to
1000.
</para>
2605 <term><varname>LossRate=
</varname></term>
2607 <para>Specifies an independent loss probability to be added to the packets outgoing from the
2608 network interface. Takes a percentage value, suffixed with
"%". Defaults to unset.
</para>
2613 <term><varname>DuplicateRate=
</varname></term>
2615 <para>Specifies that the chosen percent of packets is duplicated before queuing them.
2616 Takes a percentage value, suffixed with
"%". Defaults to unset.
</para>
2623 <title>[TokenBucketFilter] Section Options
</title>
2624 <para>The
<literal>[TokenBucketFilter]
</literal> section manages the queueing discipline (qdisc) of
2625 token bucket filter (tbf).
</para>
2627 <variablelist class='network-directives'
>
2628 <xi:include href=
"tc.xml" xpointer=
"qdisc-parent" />
2629 <xi:include href=
"tc.xml" xpointer=
"qdisc-handle" />
2632 <term><varname>LatencySec=
</varname></term>
2634 <para>Specifies the latency parameter, which specifies the maximum amount of time a
2635 packet can sit in the Token Bucket Filter (TBF). Defaults to unset.
</para>
2640 <term><varname>LimitSize=
</varname></term>
2642 <para>Takes the number of bytes that can be queued waiting for tokens to become available.
2643 When the size is suffixed with K, M, or G, it is parsed as Kilobytes, Megabytes, or Gigabytes,
2644 respectively, to the base of
1000. Defaults to unset.
</para>
2649 <term><varname>Burst=
</varname></term>
2651 <para>Specifies the size of the bucket. This is the maximum amount of bytes that tokens
2652 can be available for instantaneous transfer. When the size is suffixed with K, M, or G, it is
2653 parsed as Kilobytes, Megabytes, or Gigabytes, respectively, to the base of
1000. Defaults to
2659 <term><varname>Rate=
</varname></term>
2661 <para>Specifies the device specific bandwidth. When suffixed with K, M, or G, the specified
2662 bandwidth is parsed as Kilobits, Megabits, or Gigabits, respectively, to the base of
1000.
2663 Defaults to unset.
</para>
2668 <term><varname>MPUBytes=
</varname></term>
2670 <para>The Minimum Packet Unit (MPU) determines the minimal token usage (specified in bytes)
2671 for a packet. When suffixed with K, M, or G, the specified size is parsed as Kilobytes,
2672 Megabytes, or Gigabytes, respectively, to the base of
1000. Defaults to zero.
</para>
2677 <term><varname>PeakRate=
</varname></term>
2679 <para>Takes the maximum depletion rate of the bucket. When suffixed with K, M, or G, the
2680 specified size is parsed as Kilobits, Megabits, or Gigabits, respectively, to the base of
2681 1000. Defaults to unset.
</para>
2686 <term><varname>MTUBytes=
</varname></term>
2688 <para>Specifies the size of the peakrate bucket. When suffixed with K, M, or G, the specified
2689 size is parsed as Kilobytes, Megabytes, or Gigabytes, respectively, to the base of
1000.
2690 Defaults to unset.
</para>
2697 <title>[PIE] Section Options
</title>
2698 <para>The
<literal>[PIE]
</literal> section manages the queueing discipline
2699 (qdisc) of Proportional Integral controller-Enhanced (PIE).
</para>
2701 <variablelist class='network-directives'
>
2702 <xi:include href=
"tc.xml" xpointer=
"qdisc-parent" />
2703 <xi:include href=
"tc.xml" xpointer=
"qdisc-handle" />
2706 <term><varname>PacketLimit=
</varname></term>
2708 <para>Specifies the hard limit on the queue size in number of packets. When this limit is reached, incoming packets are
2709 dropped. An unsigned integer ranges
1 to
4294967294. Defaults to unset and kernel's default is used.
</para>
2716 <title>[StochasticFairBlue] Section Options
</title>
2717 <para>The
<literal>[StochasticFairBlue]
</literal> section manages the queueing discipline
2718 (qdisc) of stochastic fair blue (sfb).
</para>
2720 <variablelist class='network-directives'
>
2721 <xi:include href=
"tc.xml" xpointer=
"qdisc-parent" />
2722 <xi:include href=
"tc.xml" xpointer=
"qdisc-handle" />
2725 <term><varname>PacketLimit=
</varname></term>
2727 <para>Specifies the hard limit on the queue size in number of packets. When this limit is reached, incoming packets are
2728 dropped. An unsigned integer ranges
0 to
4294967294. Defaults to unset and kernel's default is used.
</para>
2735 <title>[StochasticFairnessQueueing] Section Options
</title>
2736 <para>The
<literal>[StochasticFairnessQueueing]
</literal> section manages the queueing discipline
2737 (qdisc) of stochastic fairness queueing (sfq).
</para>
2739 <variablelist class='network-directives'
>
2740 <xi:include href=
"tc.xml" xpointer=
"qdisc-parent" />
2741 <xi:include href=
"tc.xml" xpointer=
"qdisc-handle" />
2744 <term><varname>PerturbPeriodSec=
</varname></term>
2746 <para>Specifies the interval in seconds for queue algorithm perturbation. Defaults to unset.
</para>
2753 <title>[BFIFO] Section Options
</title>
2754 <para>The
<literal>[BFIFO]
</literal> section manages the queueing discipline (qdisc) of
2755 Byte limited Packet First In First Out (bfifo).
</para>
2757 <variablelist class='network-directives'
>
2758 <xi:include href=
"tc.xml" xpointer=
"qdisc-parent" />
2759 <xi:include href=
"tc.xml" xpointer=
"qdisc-handle" />
2762 <term><varname>LimitSize=
</varname></term>
2764 <para>Specifies the hard limit on the FIFO size in bytes. The size limit (a buffer size) to prevent it
2765 from overflowing in case it is unable to dequeue packets as quickly as it receives them. When this limit
2766 is reached, incoming packets are dropped. When suffixed with K, M, or G, the specified size is parsed as
2767 Kilobytes, Megabytes, or Gigabytes, respectively, to the base of
1024. Defaults to unset and kernel's default is used.
</para>
2774 <title>[PFIFO] Section Options
</title>
2775 <para>The
<literal>[PFIFO]
</literal> section manages the queueing discipline (qdisc) of
2776 Packet First In First Out (pfifo).
</para>
2778 <variablelist class='network-directives'
>
2779 <xi:include href=
"tc.xml" xpointer=
"qdisc-parent" />
2780 <xi:include href=
"tc.xml" xpointer=
"qdisc-handle" />
2783 <term><varname>PacketLimit=
</varname></term>
2785 <para>Specifies the hard limit on the FIFO size in number of packets. The size limit (a buffer size) to prevent it
2786 from overflowing in case it is unable to dequeue packets as quickly as it receives them. When this limit is reached,
2787 incoming packets are dropped. An unsigned integer ranges
0 to
4294967294. Defaults to unset and kernel's default is used.
</para>
2794 <title>[PFIFOHeadDrop] Section Options
</title>
2795 <para>The
<literal>[PFIFOHeadDrop]
</literal> section manages the queueing discipline (qdisc) of
2796 Packet First In First Out Head Drop (pfifo_head_drop).
</para>
2798 <variablelist class='network-directives'
>
2799 <xi:include href=
"tc.xml" xpointer=
"qdisc-parent" />
2800 <xi:include href=
"tc.xml" xpointer=
"qdisc-handle" />
2803 <term><varname>PacketLimit=
</varname></term>
2805 <para>As in
<literal>[PFIFO]
</literal> section.
</para></listitem>
2811 <title>[PFIFOFast] Section Options
</title>
2812 <para>The
<literal>[PFIFOFast]
</literal> section manages the queueing discipline (qdisc) of
2813 Packet First In First Out Fast (pfifo_fast).
</para>
2815 <variablelist class='network-directives'
>
2816 <xi:include href=
"tc.xml" xpointer=
"qdisc-parent" />
2817 <xi:include href=
"tc.xml" xpointer=
"qdisc-handle" />
2822 <title>[CAKE] Section Options
</title>
2823 <para>The
<literal>[CAKE]
</literal> section manages the queueing discipline (qdisc) of
2824 Common Applications Kept Enhanced (CAKE).
</para>
2826 <variablelist class='network-directives'
>
2827 <xi:include href=
"tc.xml" xpointer=
"qdisc-parent" />
2828 <xi:include href=
"tc.xml" xpointer=
"qdisc-handle" />
2831 <term><varname>Overhead=
</varname></term>
2833 <para>Specifies that bytes to be addeded to the size of each packet. Bytes may be negative.
2834 Takes an integer ranges -
64 to
256. Defaults to unset and kernel's default is used.
</para>
2839 <term><varname>Bandwidth=
</varname></term>
2841 <para>Specifies the shaper bandwidth. When suffixed with K, M, or G, the specified size is
2842 parsed as Kilobits, Megabits, or Gigabits, respectively, to the base of
1000. Defaults to
2843 unset and kernel's default is used.
</para>
2850 <title>[ControlledDelay] Section Options
</title>
2851 <para>The
<literal>[ControlledDelay]
</literal> section manages the queueing discipline (qdisc) of
2852 controlled delay (CoDel).
</para>
2854 <variablelist class='network-directives'
>
2855 <xi:include href=
"tc.xml" xpointer=
"qdisc-parent" />
2856 <xi:include href=
"tc.xml" xpointer=
"qdisc-handle" />
2859 <term><varname>PacketLimit=
</varname></term>
2861 <para>Specifies the hard limit on the queue size in number of packets. When this limit is reached, incoming packets are
2862 dropped. An unsigned integer ranges
0 to
4294967294. Defaults to unset and kernel's default is used.
</para>
2867 <term><varname>TargetSec=
</varname></term>
2869 <para>Takes a timespan. Specifies the acceptable minimum standing/persistent queue delay.
2870 Defaults to unset and kernel's default is used.
</para>
2875 <term><varname>IntervalSec=
</varname></term>
2877 <para>Takes a timespan. This is used to ensure that the measured minimum delay does not
2878 become too stale. Defaults to unset and kernel's default is used.
</para>
2883 <term><varname>ECN=
</varname></term>
2885 <para>Takes a boolean. This can be used to mark packets instead of dropping them. Defaults to
2886 unset and kernel's default is used.
</para>
2891 <term><varname>CEThresholdSec=
</varname></term>
2893 <para>Takes a timespan. This sets a threshold above which all packets are marked with ECN
2894 Congestion Experienced (CE). Defaults to unset and kernel's default is used.
</para>
2901 <title>[DeficitRoundRobinScheduler] Section Options
</title>
2902 <para>The
<literal>[DeficitRoundRobinScheduler]
</literal> section manages the queueing discipline (qdisc) of
2903 Deficit Round Robin Scheduler (DRR).
</para>
2905 <variablelist class='network-directives'
>
2906 <xi:include href=
"tc.xml" xpointer=
"qdisc-parent" />
2907 <xi:include href=
"tc.xml" xpointer=
"qdisc-handle" />
2912 <title>[DeficitRoundRobinSchedulerClass] Section Options
</title>
2913 <para>The
<literal>[DeficitRoundRobinSchedulerClass]
</literal> section manages the traffic control class of
2914 Deficit Round Robin Scheduler (DRR).
</para>
2916 <variablelist class='network-directives'
>
2917 <xi:include href=
"tc.xml" xpointer=
"tclass-parent" />
2918 <xi:include href=
"tc.xml" xpointer=
"tclass-classid" />
2921 <term><varname>Quantum=
</varname></term>
2923 <para>Specifies the amount of bytes a flow is allowed to dequeue before the
2924 scheduler moves to the next class. An unsigned integer ranges
1 to
4294967294.
2925 Defaults to the MTU of the interface.
</para>
2933 <title>[GenericRandomEarlyDetection] Section Options
</title>
2934 <para>The
<literal>[GenericRandomEarlyDetection]
</literal> section manages the queueing discipline
2935 (qdisc) of Generic Random Early Detection (GRED).
</para>
2937 <variablelist class='network-directives'
>
2938 <xi:include href=
"tc.xml" xpointer=
"qdisc-parent" />
2939 <xi:include href=
"tc.xml" xpointer=
"qdisc-handle" />
2942 <term><varname>VirtualQueues=
</varname></term>
2944 <para>Specifies the number of virtual queues. Takes a integer in the range
1-
16. Defaults to unset and kernel's default is used.
</para>
2949 <term><varname>DefaultVirtualQueue=
</varname></term>
2951 <para>Specifies the number of default virtual queue. This must be less than
<varname>VirtualQueue=
</varname>.
2952 Defaults to unset and kernel's default is used.
</para>
2957 <term><varname>GenericRIO=
</varname></term>
2959 <para>Takes a boolean. It turns on the RIO-like buffering scheme. Defaults to
2960 unset and kernel's default is used.
</para>
2967 <title>[FairQueueingControlledDelay] Section Options
</title>
2968 <para>The
<literal>[FairQueueingControlledDelay]
</literal> section manages the queueing discipline
2969 (qdisc) of fair queuing controlled delay (FQ-CoDel).
</para>
2971 <variablelist class='network-directives'
>
2972 <xi:include href=
"tc.xml" xpointer=
"qdisc-parent" />
2973 <xi:include href=
"tc.xml" xpointer=
"qdisc-handle" />
2976 <term><varname>PacketLimit=
</varname></term>
2978 <para>Specifies the hard limit on the real queue size. When this limit is reached, incoming packets are
2979 dropped. Defaults to unset and kernel's default is used.
</para>
2984 <term><varname>MemoryLimit=
</varname></term>
2986 <para>Specifies the limit on the total number of bytes that can be queued in this FQ-CoDel instance.
2987 When suffixed with K, M, or G, the specified size is parsed as Kilobytes, Megabytes, or Gigabytes,
2988 respectively, to the base of
1024. Defaults to unset and kernel's default is used.
</para>
2993 <term><varname>Flows=
</varname></term>
2995 <para>Specifies the number of flows into which the incoming packets are classified.
2996 Defaults to unset and kernel's default is used.
</para>
3001 <term><varname>TargetSec=
</varname></term>
3003 <para>Takes a timespan. Specifies the acceptable minimum standing/persistent queue delay.
3004 Defaults to unset and kernel's default is used.
</para>
3009 <term><varname>IntervalSec=
</varname></term>
3011 <para>Takes a timespan. This is used to ensure that the measured minimum delay does not
3012 become too stale. Defaults to unset and kernel's default is used.
</para>
3017 <term><varname>Quantum=
</varname></term>
3019 <para>Specifies the number of bytes used as 'deficit' in the fair queuing algorithmtimespan.
3020 When suffixed with K, M, or G, the specified size is parsed as Kilobytes, Megabytes, or Gigabytes,
3021 respectively, to the base of
1024. Defaults to unset and kernel's default is used.
</para>
3026 <term><varname>ECN=
</varname></term>
3028 <para>Takes a boolean. This can be used to mark packets instead of dropping them. Defaults to
3029 unset and kernel's default is used.
</para>
3034 <term><varname>CEThresholdSec=
</varname></term>
3036 <para>Takes a timespan. This sets a threshold above which all packets are marked with ECN
3037 Congestion Experienced (CE). Defaults to unset and kernel's default is used.
</para>
3044 <title>[FairQueueing] Section Options
</title>
3045 <para>The
<literal>[FairQueueing]
</literal> section manages the queueing discipline
3046 (qdisc) of fair queue traffic policing (FQ).
</para>
3048 <variablelist class='network-directives'
>
3049 <xi:include href=
"tc.xml" xpointer=
"qdisc-parent" />
3050 <xi:include href=
"tc.xml" xpointer=
"qdisc-handle" />
3053 <term><varname>PacketLimit=
</varname></term>
3055 <para>Specifies the hard limit on the real queue size. When this limit is reached, incoming packets are
3056 dropped. Defaults to unset and kernel's default is used.
</para>
3061 <term><varname>FlowLimit=
</varname></term>
3063 <para>Specifies the hard limit on the maximum number of packets queued per flow. Defaults to
3064 unset and kernel's default is used.
</para>
3069 <term><varname>Quantum=
</varname></term>
3071 <para>Specifies the credit per dequeue RR round, i.e. the amount of bytes a flow is allowed
3072 to dequeue at once. When suffixed with K, M, or G, the specified size is parsed as Kilobytes,
3073 Megabytes, or Gigabytes, respectively, to the base of
1024. Defaults to unset and kernel's
3074 default is used.
</para>
3079 <term><varname>InitialQuantum=
</varname></term>
3081 <para>Specifies the initial sending rate credit, i.e. the amount of bytes a new flow is
3082 allowed to dequeue initially. When suffixed with K, M, or G, the specified size is parsed as
3083 Kilobytes, Megabytes, or Gigabytes, respectively, to the base of
1024. Defaults to unset and
3084 kernel's default is used.
</para>
3089 <term><varname>MaximumRate=
</varname></term>
3091 <para>Specifies the maximum sending rate of a flow. When suffixed with K, M, or G, the
3092 specified size is parsed as Kilobits, Megabits, or Gigabits, respectively, to the base of
3093 1000. Defaults to unset and kernel's default is used.
</para>
3098 <term><varname>Buckets=
</varname></term>
3100 <para>Specifies the size of the hash table used for flow lookups. Defaults to unset and
3101 kernel's default is used.
</para>
3106 <term><varname>OrphanMask=
</varname></term>
3108 <para>Takes an unsigned integer. For packets not owned by a socket, fq is able to mask a part
3109 of hash and reduce number of buckets associated with the traffic. Defaults to unset and
3110 kernel's default is used.
</para>
3115 <term><varname>Pacing=
</varname></term>
3117 <para>Takes a boolean, and enables or disables flow pacing. Defaults to unset and kernel's
3118 default is used.
</para>
3123 <term><varname>CEThresholdSec=
</varname></term>
3125 <para>Takes a timespan. This sets a threshold above which all packets are marked with ECN
3126 Congestion Experienced (CE). Defaults to unset and kernel's default is used.
</para>
3133 <title>[TrivialLinkEqualizer] Section Options
</title>
3134 <para>The
<literal>[TrivialLinkEqualizer]
</literal> section manages the queueing discipline (qdisc) of
3135 trivial link equalizer (teql).
</para>
3137 <variablelist class='network-directives'
>
3138 <xi:include href=
"tc.xml" xpointer=
"qdisc-parent" />
3139 <xi:include href=
"tc.xml" xpointer=
"qdisc-handle" />
3142 <term><varname>Id=
</varname></term>
3144 <para>Specifies the interface ID
<literal>N
</literal> of teql. Defaults to
<literal>0</literal>.
3145 Note that when teql is used, currently, the module
<constant>sch_teql
</constant> with
3146 <constant>max_equalizers=N+
1</constant> option must be loaded before
3147 <command>systemd-networkd
</command> is started.
</para>
3154 <title>[HierarchyTokenBucket] Section Options
</title>
3155 <para>The
<literal>[HierarchyTokenBucket]
</literal> section manages the queueing discipline (qdisc) of
3156 hierarchy token bucket (htb).
</para>
3158 <variablelist class='network-directives'
>
3159 <xi:include href=
"tc.xml" xpointer=
"qdisc-parent" />
3160 <xi:include href=
"tc.xml" xpointer=
"qdisc-handle" />
3163 <term><varname>DefaultClass=
</varname></term>
3165 <para>Takes the minor id in hexadecimal of the default class. Unclassified traffic gets sent
3166 to the class. Defaults to unset.
</para>
3173 <title>[HierarchyTokenBucketClass] Section Options
</title>
3174 <para>The
<literal>[HierarchyTokenBucketClass]
</literal> section manages the traffic control class of
3175 hierarchy token bucket (htb).
</para>
3177 <variablelist class='network-directives'
>
3178 <xi:include href=
"tc.xml" xpointer=
"tclass-parent" />
3179 <xi:include href=
"tc.xml" xpointer=
"tclass-classid" />
3182 <term><varname>Priority=
</varname></term>
3184 <para>Specifies the priority of the class. In the round-robin process, classes with the lowest
3185 priority field are tried for packets first. This setting is mandatory.
</para>
3190 <term><varname>Rate=
</varname></term>
3192 <para>Specifies the maximum rate this class and all its children are guaranteed. When suffixed
3193 with K, M, or G, the specified size is parsed as Kilobits, Megabits, or Gigabits, respectively,
3194 to the base of
1000. This setting is mandatory.
</para>
3199 <term><varname>CeilRate=
</varname></term>
3201 <para>Specifies the maximum rate at which a class can send, if its parent has bandwidth to spare.
3202 When suffixed with K, M, or G, the specified size is parsed as Kilobits, Megabits, or Gigabits,
3203 respectively, to the base of
1000. When unset, the value specified with
<varname>Rate=
</varname>
3211 <title>[HeavyHitterFilter] Section Options
</title>
3212 <para>The
<literal>[HeavyHitterFilter]
</literal> section manages the queueing discipline
3213 (qdisc) of Heavy Hitter Filter (hhf).
</para>
3215 <variablelist class='network-directives'
>
3216 <xi:include href=
"tc.xml" xpointer=
"qdisc-parent" />
3217 <xi:include href=
"tc.xml" xpointer=
"qdisc-handle" />
3220 <term><varname>PacketLimit=
</varname></term>
3222 <para>Specifies the hard limit on the queue size in number of packets. When this limit is reached, incoming packets are
3223 dropped. An unsigned integer ranges
0 to
4294967294. Defaults to unset and kernel's default is used.
</para>
3230 <title>[QuickFairQueueing] Section Options
</title>
3231 <para>The
<literal>[QuickFairQueueing]
</literal> section manages the queueing discipline
3232 (qdisc) of Quick Fair Queueing (QFQ).
</para>
3234 <variablelist class='network-directives'
>
3235 <xi:include href=
"tc.xml" xpointer=
"qdisc-parent" />
3236 <xi:include href=
"tc.xml" xpointer=
"qdisc-handle" />
3241 <title>[QuickFairQueueingClass] Section Options
</title>
3242 <para>The
<literal>[QuickFairQueueingClass]
</literal> section manages the traffic control class of
3243 Quick Fair Queueing (qfq).
</para>
3245 <variablelist class='network-directives'
>
3246 <xi:include href=
"tc.xml" xpointer=
"tclass-parent" />
3247 <xi:include href=
"tc.xml" xpointer=
"tclass-classid" />
3250 <term><varname>Weight=
</varname></term>
3252 <para>Specifies the weight of the class. Takes an integer in the range
1.
.1023. Defaults to
3253 unset in which case the kernel default is used.
</para>
3258 <term><varname>MaxPacketSize=
</varname></term>
3260 <para>Specifies the maximum packet size in bytes for the class. When suffixed with K, M, or G, the specified
3261 size is parsed as Kilobytes, Megabytes, or Gigabytes, respectively, to the base of
1000. When unset,
3262 the kernel default is used.
</para>
3269 <title>[BridgeVLAN] Section Options
</title>
3270 <para>The
<literal>[BridgeVLAN]
</literal> section manages the VLAN ID configuration of a bridge port and accepts
3271 the following keys. Specify several
<literal>[BridgeVLAN]
</literal> sections to configure several VLAN entries.
3272 The
<varname>VLANFiltering=
</varname> option has to be enabled, see
<literal>[Bridge]
</literal> section in
3273 <citerefentry><refentrytitle>systemd.netdev
</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
</para>
3275 <variablelist class='network-directives'
>
3277 <term><varname>VLAN=
</varname></term>
3279 <para>The VLAN ID allowed on the port. This can be either a single ID or a range M-N. VLAN IDs are valid
3280 from
1 to
4094.
</para>
3284 <term><varname>EgressUntagged=
</varname></term>
3286 <para>The VLAN ID specified here will be used to untag frames on egress. Configuring
3287 <varname>EgressUntagged=
</varname> implicates the use of
<varname>VLAN=
</varname> above and will enable the
3288 VLAN ID for ingress as well. This can be either a single ID or a range M-N.
</para>
3292 <term><varname>PVID=
</varname></term>
3294 <para>The Port VLAN ID specified here is assigned to all untagged frames at ingress.
3295 <varname>PVID=
</varname> can be used only once. Configuring
<varname>PVID=
</varname> implicates the use of
3296 <varname>VLAN=
</varname> above and will enable the VLAN ID for ingress as well.
</para>
3303 <title>Examples
</title>
3305 <title>Static network configuration
</title>
3307 <programlisting># /etc/systemd/network/
50-static.network
3312 Address=
192.168.0.15/
24
3313 Gateway=
192.168.0.1</programlisting>
3315 <para>This brings interface
<literal>enp2s0
</literal> up with a static address. The
3316 specified gateway will be used for a default route.
</para>
3320 <title>DHCP on ethernet links
</title>
3322 <programlisting># /etc/systemd/network/
80-dhcp.network
3327 DHCP=yes
</programlisting>
3329 <para>This will enable DHCPv4 and DHCPv6 on all interfaces with names starting with
3330 <literal>en
</literal> (i.e. ethernet interfaces).
</para>
3334 <title>IPv6 Prefix Delegation
</title>
3336 <programlisting># /etc/systemd/network/
55-ipv6-pd-upstream.network
3341 DHCP=ipv6
</programlisting>
3343 <programlisting># /etc/systemd/network/
56-ipv6-pd-downstream.network
3348 IPv6PrefixDelegation=dhcpv6
3351 AssignAcquiredDelegatedPrefixAddress=yes
</programlisting>
3353 <para>This will enable IPv6 PD on the interface enp1s0 as an upstream interface where the
3354 DHCPv6 client is running and enp2s0 as a downstream interface where the prefix is delegated to.
</para>
3358 <title>A bridge with two enslaved links
</title>
3360 <programlisting># /etc/systemd/network/
25-bridge-static.network
3365 Address=
192.168.0.15/
24
3367 DNS=
192.168.0.1</programlisting>
3369 <programlisting># /etc/systemd/network/
25-bridge-slave-interface-
1.network
3374 Bridge=bridge0
</programlisting>
3376 <programlisting># /etc/systemd/network/
25-bridge-slave-interface-
2.network
3381 Bridge=bridge0
</programlisting>
3383 <para>This creates a bridge and attaches devices
<literal>enp2s0
</literal> and
3384 <literal>wlp3s0
</literal> to it. The bridge will have the specified static address
3385 and network assigned, and a default route via the specified gateway will be
3386 added. The specified DNS server will be added to the global list of DNS resolvers.
3394 # /etc/systemd/network/
20-bridge-slave-interface-vlan.network
3410 EgressUntagged=
300-
400</programlisting>
3412 <para>This overrides the configuration specified in the previous example for the
3413 interface
<literal>enp2s0
</literal>, and enables VLAN on that bridge port. VLAN IDs
3414 1-
32,
42,
100-
400 will be allowed. Packets tagged with VLAN IDs
42,
300-
400 will be
3415 untagged when they leave on this interface. Untagged packets which arrive on this
3416 interface will be assigned VLAN ID
42.
</para>
3420 <title>Various tunnels
</title>
3422 <programlisting>/etc/systemd/network/
25-tunnels.network
3433 <programlisting>/etc/systemd/network/
25-tunnel-ipip.netdev
3439 <programlisting>/etc/systemd/network/
25-tunnel-sit.netdev
3445 <programlisting>/etc/systemd/network/
25-tunnel-gre.netdev
3451 <programlisting>/etc/systemd/network/
25-tunnel-vti.netdev
3457 <para>This will bring interface
<literal>ens1
</literal> up and create an IPIP tunnel,
3458 a SIT tunnel, a GRE tunnel, and a VTI tunnel using it.
</para>
3462 <title>A bond device
</title>
3464 <programlisting># /etc/systemd/network/
30-bond1.network
3472 <programlisting># /etc/systemd/network/
30-bond1.netdev
3478 <programlisting># /etc/systemd/network/
30-bond1-dev1.network
3480 MACAddress=
52:
54:
00:e9:
64:
41
3486 <programlisting># /etc/systemd/network/
30-bond1-dev2.network
3488 MACAddress=
52:
54:
00:e9:
64:
42
3494 <para>This will create a bond device
<literal>bond1
</literal> and enslave the two
3495 devices with MAC addresses
52:
54:
00:e9:
64:
41 and
52:
54:
00:e9:
64:
42 to it. IPv6 DHCP
3496 will be used to acquire an address.
</para>
3500 <title>Virtual Routing and Forwarding (VRF)
</title>
3501 <para>Add the
<literal>bond1
</literal> interface to the VRF master interface
3502 <literal>vrf1
</literal>. This will redirect routes generated on this interface to be
3503 within the routing table defined during VRF creation. For kernels before
4.8 traffic
3504 won't be redirected towards the VRFs routing table unless specific ip-rules are added.
3506 <programlisting># /etc/systemd/network/
25-vrf.network
3516 <title>MacVTap
</title>
3517 <para>This brings up a network interface
<literal>macvtap-test
</literal>
3518 and attaches it to
<literal>enp0s25
</literal>.
</para>
3519 <programlisting># /usr/lib/systemd/network/
25-macvtap.network
3524 MACVTAP=macvtap-test
3529 <title>A Xfrm interface with physical underlying device.
</title>
3531 <programlisting># /etc/systemd/network/
27-xfrm.netdev
3536 InterfaceId=
7</programlisting>
3538 <programlisting># /etc/systemd/network/
27-eth0.network
3543 Xfrm=xfrm0
</programlisting>
3545 <para>This creates a
<literal>xfrm0
</literal> interface and binds it to the
<literal>eth0
</literal> device.
3546 This allows hardware based ipsec offloading to the
<literal>eth0
</literal> nic.
3547 If offloading is not needed, xfrm interfaces can be assigned to the
<literal>lo
</literal> device.
3553 <title>See Also
</title>
3555 <citerefentry><refentrytitle>systemd
</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
3556 <citerefentry><refentrytitle>systemd-networkd.service
</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
3557 <citerefentry><refentrytitle>systemd.link
</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
3558 <citerefentry><refentrytitle>systemd.netdev
</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
3559 <citerefentry><refentrytitle>systemd-resolved.service
</refentrytitle><manvolnum>8</manvolnum></citerefentry>