1 <?xml version='
1.0'
?> <!--*- Mode: nxml; nxml-child-indent: 2; indent-tabs-mode: nil -*-->
2 <!DOCTYPE refentry PUBLIC
"-//OASIS//DTD DocBook XML V4.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
6 This file is part of systemd.
8 Copyright 2013 Tom Gundersen
10 systemd is free software; you can redistribute it and/or modify it
11 under the terms of the GNU Lesser General Public License as published by
12 the Free Software Foundation; either version 2.1 of the License, or
13 (at your option) any later version.
15 systemd is distributed in the hope that it will be useful, but
16 WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 Lesser General Public License for more details.
20 You should have received a copy of the GNU Lesser General Public License
21 along with systemd; If not, see <http://www.gnu.org/licenses/>.
24 <refentry id=
"systemd.network" conditional='ENABLE_NETWORKD'
>
27 <title>systemd.network
</title>
28 <productname>systemd
</productname>
32 <contrib>Developer
</contrib>
33 <firstname>Tom
</firstname>
34 <surname>Gundersen
</surname>
35 <email>teg@jklm.no
</email>
41 <refentrytitle>systemd.network
</refentrytitle>
42 <manvolnum>5</manvolnum>
46 <refname>systemd.network
</refname>
47 <refpurpose>Network configuration
</refpurpose>
51 <para><filename><replaceable>network
</replaceable>.network
</filename></para>
55 <title>Description
</title>
57 <para>Network setup is performed by
58 <citerefentry><refentrytitle>systemd-networkd
</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
61 <para>Network files must have the extension
62 <filename>.network
</filename>; other extensions are ignored.
63 Networks are applied to links whenever the links appear.
</para>
65 <para>The
<filename>.network
</filename> files are read from the
66 files located in the system network directory
67 <filename>/usr/lib/systemd/network
</filename>, the volatile
68 runtime network directory
69 <filename>/run/systemd/network
</filename> and the local
70 administration network directory
71 <filename>/etc/systemd/network
</filename>. All configuration files
72 are collectively sorted and processed in lexical order, regardless
73 of the directories in which they live. However, files with
74 identical filenames replace each other. Files in
75 <filename>/etc
</filename> have the highest priority, files in
76 <filename>/run
</filename> take precedence over files with the same
77 name in
<filename>/usr/lib
</filename>. This can be used to
78 override a system-supplied configuration file with a local file if
79 needed. As a special case, an empty file (file size
0) or symlink
80 with the same name pointing to
<filename>/dev/null
</filename>
81 disables the configuration file entirely (it is
"masked").
</para>
85 <title>[Match] Section Options
</title>
87 <para>The network file contains a
<literal>[Match]
</literal>
88 section, which determines if a given network file may be applied
89 to a given device; and a
<literal>[Network]
</literal> section
90 specifying how the device should be configured. The first (in
91 lexical order) of the network files that matches a given device
92 is applied, all later files are ignored, even if they match as
95 <para>A network file is said to match a device if each of the
96 entries in the
<literal>[Match]
</literal> section matches, or if
97 the section is empty. The following keys are accepted:
</para>
99 <variablelist class='network-directives'
>
101 <term><varname>MACAddress=
</varname></term>
103 <para>The hardware address.
</para>
107 <term><varname>Path=
</varname></term>
109 <para>A whitespace-separated list of shell-style globs
110 matching the persistent path, as exposed by the udev
111 property
<literal>ID_PATH
</literal>.
</para>
115 <term><varname>Driver=
</varname></term>
117 <para>A whitespace-separated list of shell-style globs
118 matching the driver currently bound to the device, as
119 exposed by the udev property
<literal>DRIVER
</literal>
120 of its parent device, or if that is not set the driver
121 as exposed by
<literal>ethtool -i
</literal> of the
122 device itself.
</para>
126 <term><varname>Type=
</varname></term>
128 <para>A whitespace-separated list of shell-style globs
129 matching the device type, as exposed by the udev property
130 <literal>DEVTYPE
</literal>.
</para>
134 <term><varname>Name=
</varname></term>
136 <para>A whitespace-separated list of shell-style globs
137 matching the device name, as exposed by the udev property
138 <literal>INTERFACE
</literal>.
</para>
142 <term><varname>Host=
</varname></term>
144 <para>Matches against the hostname or machine ID of the
145 host. See
<literal>ConditionHost=
</literal> in
146 <citerefentry><refentrytitle>systemd.unit
</refentrytitle><manvolnum>5</manvolnum></citerefentry>
152 <term><varname>Virtualization=
</varname></term>
154 <para>Checks whether the system is executed in a virtualized
155 environment and optionally test whether it is a specific
156 implementation. See
<literal>ConditionVirtualization=
</literal> in
157 <citerefentry><refentrytitle>systemd.unit
</refentrytitle><manvolnum>5</manvolnum></citerefentry>
163 <term><varname>KernelCommandLine=
</varname></term>
165 <para>Checks whether a specific kernel command line option is
166 set (or if prefixed with the exclamation mark unset). See
167 <literal>ConditionKernelCommandLine=
</literal> in
168 <citerefentry><refentrytitle>systemd.unit
</refentrytitle><manvolnum>5</manvolnum></citerefentry>
174 <term><varname>Architecture=
</varname></term>
176 <para>Checks whether the system is running on a specific
177 architecture. See
<literal>ConditionArchitecture=
</literal> in
178 <citerefentry><refentrytitle>systemd.unit
</refentrytitle><manvolnum>5</manvolnum></citerefentry>
188 <title>[Link] Section Options
</title>
190 <para> The
<literal>[Link]
</literal> section accepts the following keys:
</para>
192 <variablelist class='network-directives'
>
194 <term><varname>MACAddress=
</varname></term>
196 <para>The hardware address.
</para>
200 <term><varname>MTUBytes=
</varname></term>
202 <para>The maximum transmission unit in bytes to set for the
203 device. The usual suffixes K, M, G, are supported and are
204 understood to the base of
1024.
</para>
211 <title>[Network] Section Options
</title>
213 <para>The
<literal>[Network]
</literal> section accepts the following keys:
</para>
215 <variablelist class='network-directives'
>
217 <term><varname>Description=
</varname></term>
219 <para>A description of the device. This is only used for
220 presentation purposes.
</para>
224 <term><varname>DHCP=
</varname></term>
226 <para>Enables DHCPv4 and/or DHCPv6 client support. Accepts
227 <literal>yes
</literal>,
<literal>no
</literal>,
228 <literal>ipv4
</literal>, or
<literal>ipv6
</literal>.
</para>
230 <para>Note that DHCPv6 will by default be triggered by Router
231 Advertisment, if that is enabled, regardless of this parameter.
232 By enabling DHCPv6 support explicitly, the DHCPv6 client will
233 be started regardless of the presence of routers on the link,
234 or what flags the routers pass. See
235 <literal>IPv6AcceptRouterAdvertisements=
</literal>.
</para>
237 <para>Furthermore, note that by default the domain name
238 specified through DHCP is not used for name resolution.
239 See option
<option>UseDomains=
</option> below.
</para>
243 <term><varname>DHCPServer=
</varname></term>
245 <para>A boolean. Enables DHCPv4 server support. Defaults
246 to
<literal>no
</literal>. Further settings for the DHCP
247 server may be set in the
<literal>[DHCPServer]
</literal>
248 section described below.
</para>
252 <term><varname>LinkLocalAddressing=
</varname></term>
254 <para>Enables link-local address autoconfiguration. Accepts
255 <literal>yes
</literal>,
<literal>no
</literal>,
256 <literal>ipv4
</literal>, or
<literal>ipv6
</literal>. Defaults to
257 <literal>ipv6
</literal>.
</para>
261 <term><varname>IPv4LLRoute=
</varname></term>
263 <para>A boolean. When true, sets up the route needed for
264 non-IPv4LL hosts to communicate with IPv4LL-only hosts. Defaults
270 <term><varname>IPv6Token=
</varname></term>
272 <para>An IPv6 address with the top
64 bits unset. When set, indicates the
273 64-bit interface part of SLAAC IPv6 addresses for this link. By default,
274 it is autogenerated.
</para>
278 <term><varname>LLMNR=
</varname></term>
280 <para>A boolean or
<literal>resolve
</literal>. When true, enables
281 Link-Local Multicast Name Resolution on the link. When set to
282 <literal>resolve
</literal>, only resolution is enabled, but not
283 announcement. Defaults to true.
</para>
287 <term><varname>LLDP=
</varname></term>
289 <para>A boolean. When true, enables LLDP link receive support.
294 <term><varname>BindCarrier=
</varname></term>
296 <para>A port or a list of ports. When set, controls the
297 behavior of the current interface. When all ports in the list
298 are in an operational down state, the current interface is brought
299 down. When at least one port has carrier, the current interface
305 <term><varname>Address=
</varname></term>
307 <para>A static IPv4 or IPv6 address and its prefix length,
308 separated by a
<literal>/
</literal> character. Specify
309 this key more than once to configure several addresses.
310 The format of the address must be as described in
311 <citerefentry project='man-pages'
><refentrytitle>inet_pton
</refentrytitle><manvolnum>3</manvolnum></citerefentry>.
312 This is a short-hand for an [Address] section only
313 containing an Address key (see below). This option may be
314 specified more than once.
317 <para>If the specified address is
0.0.0.0 (for IPv4) or
318 [::] (for IPv6), a new address range of the requested size
319 is automatically allocated from a system-wide pool of
320 unused ranges. The allocated range is checked against all
321 current network interfaces and all known network
322 configuration files to avoid address range conflicts. The
323 default system-wide pool consists of
192.168.0.0/
16,
324 172.16.0.0/
12 and
10.0.0.0/
8 for IPv4, and fc00::/
7 for
325 IPv6. This functionality is useful to manage a large
326 number of dynamically created network interfaces with the
327 same network configuration and automatic address range
333 <term><varname>Gateway=
</varname></term>
335 <para>The gateway address, which must be in the format
337 <citerefentry project='man-pages'
><refentrytitle>inet_pton
</refentrytitle><manvolnum>3</manvolnum></citerefentry>.
338 This is a short-hand for a [Route] section only containing
339 a Gateway key. This option may be specified more than
344 <term><varname>DNS=
</varname></term>
346 <para>A DNS server address, which must be in the format
348 <citerefentry project='man-pages'
><refentrytitle>inet_pton
</refentrytitle><manvolnum>3</manvolnum></citerefentry>.
349 This option may be specified more than once.
</para>
353 <term><varname>Domains=
</varname></term>
355 <para>The domains used for DNS resolution over this link.
</para>
359 <term><varname>NTP=
</varname></term>
361 <para>An NTP server address. This option may be specified more than once.
</para>
365 <term><varname>IPForward=
</varname></term>
366 <listitem><para>Configures IP forwarding for the network
367 interface. If enabled, incoming packets on the network
368 interface will be forwarded to other interfaces according to
369 the routing table. Takes either a boolean argument, or the
370 values
<literal>ipv4
</literal> or
<literal>ipv6
</literal>,
371 which only enables IP forwarding for the specified address
372 family, or
<literal>kernel
</literal>, which preserves existing sysctl settings.
374 <filename>net.ipv4.conf.
<interface
>.forwarding
</filename>
376 <filename>net.ipv6.conf.
<interface
>.forwarding
</filename>
377 sysctl options of the network interface (see
<ulink
378 url=
"https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt">ip-sysctl.txt
</ulink>
379 for details about sysctl options). Defaults to
380 <literal>no
</literal>.
</para>
382 <para>Note: unless this option is turned on, or set to
<literal>kernel
</literal>,
383 no IP forwarding is done on this interface, even if this is
384 globally turned on in the kernel, with the
385 <filename>net.ipv4.ip_forward
</filename>,
386 <filename>net.ipv4.conf.all.forwarding
</filename>, and
387 <filename>net.ipv6.conf.all.forwarding
</filename> sysctl
392 <term><varname>IPMasquerade=
</varname></term>
393 <listitem><para>Configures IP masquerading for the network
394 interface. If enabled, packets forwarded from the network
395 interface will be appear as coming from the local host.
396 Takes a boolean argument. Implies
397 <varname>IPForward=ipv4
</varname>. Defaults to
398 <literal>no
</literal>.
</para></listitem>
401 <term><varname>IPv6PrivacyExtensions=
</varname></term>
402 <listitem><para>Configures use of stateless temporary
403 addresses that change over time (see
<ulink
404 url=
"https://tools.ietf.org/html/rfc4941">RFC
4941</ulink>,
405 Privacy Extensions for Stateless Address Autoconfiguration
406 in IPv6). Takes a boolean or the special values
407 <literal>prefer-public
</literal> and
408 <literal>kernel
</literal>. When true, enables the privacy
409 extensions and prefers temporary addresses over public
410 addresses. When
<literal>prefer-public
</literal>, enables the
411 privacy extensions, but prefers public addresses over
412 temporary addresses. When false, the privacy extensions
413 remain disabled. When
<literal>kernel
</literal>, the kernel's
414 default setting will be left in place. Defaults to
415 <literal>no
</literal>.
</para></listitem>
418 <term><varname>IPv6AcceptRouterAdvertisements=
</varname></term>
419 <listitem><para>Force the setting of the
<filename>accept_ra
</filename>
420 (router advertisements) setting for the interface.
421 When unset, the kernel default is used, and router
422 advertisements are accepted only when local forwarding
423 is disabled for that interface.
424 When router advertisements are accepted, they will
425 trigger the start of the DHCPv6 client if the relevant
426 flags are passed, or if no routers are found on the link.
427 Takes a boolean. If true, router advertisements are
428 accepted, when false, router advertisements are ignored,
429 independently of the local forwarding state.
</para>
432 <ulink url=
"https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt">ip-sysctl.txt
</ulink>
433 in the kernel documentation, but note that systemd's
434 setting of
<constant>1</constant> corresponds to
435 kernel's setting of
<constant>2</constant>.
</para>
439 <term><varname>IPv6DuplicateAddressDetection=
</varname></term>
440 <listitem><para>Configures the amount of IPv6 Duplicate
441 Address Detection (DAD) probes to send. Defaults to unset.
445 <term><varname>IPv6HopLimit=
</varname></term>
446 <listitem><para>Configures IPv6 Hop Limit. For each router that
447 forwards the packet, the hop limit is decremented by
1. When the
448 hop limit field reaches zero, the packet is discarded.
453 <term><varname>Bridge=
</varname></term>
455 <para>The name of the bridge to add the link to.
</para>
459 <term><varname>Bond=
</varname></term>
461 <para>The name of the bond to add the link to.
</para>
465 <term><varname>VLAN=
</varname></term>
467 <para>The name of a VLAN to create on the link. This
468 option may be specified more than once.
</para>
472 <term><varname>MACVLAN=
</varname></term>
474 <para>The name of a MACVLAN to create on the link. This
475 option may be specified more than once.
</para>
479 <term><varname>VXLAN=
</varname></term>
481 <para>The name of a VXLAN to create on the link. This
482 option may be specified more than once.
</para>
486 <term><varname>Tunnel=
</varname></term>
488 <para>The name of a Tunnel to create on the link. This
489 option may be specified more than once.
</para>
497 <title>[Address] Section Options
</title>
499 <para>An
<literal>[Address]
</literal> section accepts the
500 following keys. Specify several
<literal>[Address]
</literal>
501 sections to configure several addresses.
</para>
503 <variablelist class='network-directives'
>
505 <term><varname>Address=
</varname></term>
507 <para>As in the
<literal>[Network]
</literal> section. This
508 key is mandatory.
</para>
512 <term><varname>Peer=
</varname></term>
514 <para>The peer address in a point-to-point connection.
515 Accepts the same format as the
<literal>Address
</literal>
520 <term><varname>Broadcast=
</varname></term>
522 <para>The broadcast address, which must be in the format
524 <citerefentry project='man-pages'
><refentrytitle>inet_pton
</refentrytitle><manvolnum>3</manvolnum></citerefentry>.
525 This key only applies to IPv4 addresses. If it is not
526 given, it is derived from the
<literal>Address
</literal>
531 <term><varname>Label=
</varname></term>
533 <para>An address label.
</para>
540 <title>[Route] Section Options
</title>
541 <para>The
<literal>[Route]
</literal> section accepts the
542 following keys. Specify several
<literal>[Route]
</literal>
543 sections to configure several routes.
</para>
545 <variablelist class='network-directives'
>
547 <term><varname>Gateway=
</varname></term>
549 <para>As in the
<literal>[Network]
</literal> section.
</para>
553 <term><varname>Destination=
</varname></term>
555 <para>The destination prefix of the route. Possibly
556 followed by a slash and the prefix length. If omitted, a
557 full-length host route is assumed.
</para>
561 <term><varname>Source=
</varname></term>
563 <para>The source prefix of the route. Possibly followed by
564 a slash and the prefix length. If omitted, a full-length
565 host route is assumed.
</para>
569 <term><varname>Metric=
</varname></term>
571 <para>The metric of the route (an unsigned integer).
</para>
575 <term><varname>Scope=
</varname></term>
577 <para>The scope of the route, which can be
<literal>global
</literal>,
578 <literal>link
</literal> or
<literal>host
</literal>. Defaults to
579 <literal>global
</literal>.
</para>
583 <term><varname>PreferredSource=
</varname></term>
585 <para>The preferred source address of the route. The address
586 must be in the format described in
587 <citerefentry project='man-pages'
><refentrytitle>inet_pton
</refentrytitle><manvolnum>3</manvolnum></citerefentry>.
</para>
594 <title>[DHCP] Section Options
</title>
595 <para>The
<literal>[DHCP]
</literal> section configures the
596 DHCPv4 and DHCP6 client, if it is enabled with the
597 <varname>DHCP=
</varname> setting described above:
</para>
599 <variablelist class='network-directives'
>
601 <term><varname>UseDNS=
</varname></term>
603 <para>When true (the default), the DNS servers received
604 from the DHCP server will be used and take precedence over
605 any statically configured ones.
</para>
607 <para>This corresponds to the
<option>nameserver
</option>
608 option in
<citerefentry
609 project='man-pages'
><refentrytitle>resolv.conf
</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
</para>
613 <term><varname>UseNTP=
</varname></term>
615 <para>When true (the default), the NTP servers received
616 from the DHCP server will be used by systemd-timesyncd
617 and take precedence over any statically configured ones.
</para>
621 <term><varname>UseMTU=
</varname></term>
623 <para>When true, the interface maximum transmission unit
624 from the DHCP server will be used on the current link.
625 Defaults to false.
</para>
629 <term><varname>SendHostname=
</varname></term>
631 <para>When true (the default), the machine's hostname will
632 be sent to the DHCP server.
</para>
636 <term><varname>UseHostname=
</varname></term>
638 <para>When true (the default), the hostname received from
639 the DHCP server will be set as the transient hostname of the system
644 <term><varname>Hostname=
</varname></term>
646 <para>Use this value for the hostname which is sent to the
647 DHCP server, instead of machine's hostname.
</para>
651 <term><varname>UseDomains=
</varname></term>
653 <para>When true (not the default), the domain name
654 received from the DHCP server will be used for DNS
655 resolution over this link. When a name cannot be resolved
656 as specified, the domain name will be used a suffix and
657 name resolution of that will be attempted.
</para>
659 <para>This corresponds to the
<option>domain
</option>
660 option in
<citerefentry project='man-pages'
><refentrytitle>resolv.conf
</refentrytitle><manvolnum>5</manvolnum></citerefentry>
661 and should not be enabled on untrusted networks.
</para>
665 <term><varname>UseRoutes=
</varname></term>
667 <para>When true (the default), the static routes will be
668 requested from the DHCP server and added to the routing
669 table with a metric of
1024.
</para>
674 <term><varname>UseTimezone=
</varname></term>
676 <listitem><para>When true, the timezone received from the
677 DHCP server will be set as as timezone of the local
678 system. Defaults to
<literal>no
</literal>.
</para></listitem>
682 <term><varname>CriticalConnection=
</varname></term>
684 <para>When true, the connection will never be torn down
685 even if the DHCP lease expires. This is contrary to the
686 DHCP specification, but may be the best choice if, say,
687 the root filesystem relies on this connection. Defaults to
692 <term><varname>ClientIdentifier=
</varname></term>
694 <para>DHCP client identifier to use. Either
<literal>mac
</literal>
695 to use the MAC address of the link or
<literal>duid
</literal>
696 (the default) to use a RFC4361-compliant Client ID.
</para>
700 <term><varname>VendorClassIdentifier=
</varname></term>
702 <para>The vendor class identifier used to identify vendor
703 type and configuration.
</para>
707 <term><varname>RequestBroadcast=
</varname></term>
709 <para>Request the server to use broadcast messages before
710 the IP address has been configured. This is necessary for
711 devices that cannot receive RAW packets, or that cannot
712 receive packets at all before an IP address has been
713 configured. On the other hand, this must not be enabled on
714 networks where broadcasts are filtered out.
</para>
718 <term><varname>RouteMetric=
</varname></term>
720 <para>Set the routing metric for routes specified by the
729 <title>[DHCPServer] Section Options
</title>
730 <para>The
<literal>[DHCPServer]
</literal> section contains
731 settings for the DHCP server, if enabled via the
732 <varname>DHCPServer=
</varname> option described above:
</para>
734 <variablelist class='network-directives'
>
737 <term><varname>PoolOffset=
</varname></term>
738 <term><varname>PoolSize=
</varname></term>
740 <listitem><para>Configures the pool of addresses to hand out. The pool
741 is a contiguous sequence of IP addresses in the subnet configured for
742 the server address, which does not include the subnet nor the broadcast
743 address.
<varname>PoolOffset=
</varname> takes the offset of the pool
744 from the start of subnet, or zero to use the default value.
745 <varname>PoolSize=
</varname> takes the number of IP addresses in the
746 pool or zero to use the default value. By default, the pool starts at
747 the first address after the subnet address and takes up the rest of
748 the subnet, excluding the broadcast address. If the pool includes
749 the server address (the default), this is reserved and not handed
750 out to clients.
</para></listitem>
754 <term><varname>DefaultLeaseTimeSec=
</varname></term>
755 <term><varname>MaxLeaseTimeSec=
</varname></term>
757 <listitem><para>Control the default and maximum DHCP lease
758 time to pass to clients. These settings take time values in seconds or
759 another common time unit, depending on the suffix. The default
760 lease time is used for clients that did not ask for a specific
761 lease time. If a client asks for a lease time longer than the
762 maximum lease time, it is automatically shortened to the
763 specified time. The default lease time defaults to
1h, the
764 maximum lease time to
12h. Shorter lease times are beneficial
765 if the configuration data in DHCP leases changes frequently
766 and clients shall learn the new settings with shorter
767 latencies. Longer lease times reduce the generated DHCP
768 network traffic.
</para></listitem>
772 <term><varname>EmitDNS=
</varname></term>
773 <term><varname>DNS=
</varname></term>
775 <listitem><para>Configures whether the DHCP leases handed out
776 to clients shall contain DNS server information. The
777 <varname>EmitDNS=
</varname> setting takes a boolean argument
778 and defaults to
<literal>yes
</literal>. The DNS servers to
779 pass to clients may be configured with the
780 <varname>DNS=
</varname> option, which takes a list of IPv4
781 addresses. If the
<varname>EmitDNS=
</varname> option is
782 enabled but no servers configured, the servers are
783 automatically propagated from an
"uplink" interface that has
784 appropriate servers set. The
"uplink" interface is determined
785 by the default route of the system with the highest
786 priority. Note that this information is acquired at the time
787 the lease is handed out, and does not take uplink interfaces
788 into account that acquire DNS or NTP server information at a
789 later point. DNS server propagation does not take
790 <filename>/etc/resolv.conf
</filename> into account. Also, note
791 that the leases are not refreshed if the uplink network
792 configuration changes. To ensure clients regularly acquire the
793 most current uplink DNS server information, it is thus
794 advisable to shorten the DHCP lease time via
795 <varname>MaxLeaseTimeSec=
</varname> described
796 above.
</para></listitem>
800 <term><varname>EmitNTP=
</varname></term>
801 <term><varname>NTP=
</varname></term>
803 <listitem><para>Similar to the
<varname>EmitDNS=
</varname> and
804 <varname>DNS=
</varname> settings described above, these
805 settings configure whether and what NTP server information
806 shall be emitted as part of the DHCP lease. The same syntax,
807 propagation semantics and defaults apply as for
808 <varname>EmitDNS=
</varname> and
809 <varname>DNS=
</varname>.
</para></listitem>
813 <term><varname>EmitTimezone=
</varname></term>
814 <term><varname>Timezone=
</varname></term>
816 <listitem><para>Configures whether the DHCP leases handed out
817 to clients shall contain timezone information. The
818 <varname>EmitTimezone=
</varname> setting takes a boolean
819 argument and defaults to
<literal>yes
</literal>. The
820 <varname>Timezone=
</varname> setting takes a timezone string
821 (such as
<literal>Europe/Berlin
</literal> or
822 <literal>UTC
</literal>) to pass to clients. If no explicit
823 timezone is set, the system timezone of the local host is
824 propagated, as determined by the
825 <filename>/etc/localtime
</filename> symlink.
</para></listitem>
832 <title>[Bridge] Section Options
</title>
833 <para>The
<literal>[Bridge]
</literal> section accepts the
834 following keys.
</para>
835 <variablelist class='network-directives'
>
837 <term><varname>UnicastFlood=
</varname></term>
839 <para>A boolean. Controls whether the bridge should flood
840 traffic for which an FDB entry is missing and the destination
841 is unknown through this port. Defaults to on.
846 <term><varname>HairPin=
</varname></term>
848 <para>A boolean. Configures whether traffic may be sent back
849 out of the port on which it was received. By default, this
850 flag is false, and the bridge will not forward traffic back
851 out of the receiving port.
</para>
855 <term><varname>UseBPDU=
</varname></term>
857 <para>A boolean. Configures whether STP Bridge Protocol Data Units will be
858 processed by the bridge port. Defaults to yes.
</para>
862 <term><varname>FastLeave=
</varname></term>
864 <para>A boolean. This flag allows the bridge to immediately stop multicast
865 traffic on a port that receives an IGMP Leave message. It is only used with
866 IGMP snooping if enabled on the bridge. Defaults to off.
</para>
870 <term><varname>AllowPortToBeRoot=
</varname></term>
872 <para>A boolean. Configures whether a given port is allowed to
873 become a root port. Only used when STP is enabled on the bridge.
874 Defaults to on.
</para>
878 <term><varname>Cost=
</varname></term>
880 <para>Sets the
"cost" of sending packets of this interface.
881 Each port in a bridge may have a different speed and the cost
882 is used to decide which link to use. Faster interfaces
883 should have lower costs.
</para>
889 <title>[BridgeFDB] Section Options
</title>
890 <para>The
<literal>[BridgeFDB]
</literal> section manages the
891 forwarding database table of a port and accepts the following
892 keys. Specify several
<literal>[BridgeFDB]
</literal> sections to
893 configure several static MAC table entries.
</para>
895 <variablelist class='network-directives'
>
897 <term><varname>MACAddress=
</varname></term>
899 <para>As in the
<literal>[Network]
</literal> section. This
900 key is mandatory.
</para>
904 <term><varname>VLANId=
</varname></term>
906 <para>The VLAN ID for the new static MAC table entry. If
907 omitted, no VLAN ID info is appended to the new static MAC
915 <title>Example
</title>
917 <title>/etc/systemd/network/
50-static.network
</title>
919 <programlisting>[Match]
923 Address=
192.168.0.15/
24
924 Gateway=
192.168.0.1</programlisting>
928 <title>/etc/systemd/network/
80-dhcp.network
</title>
930 <programlisting>[Match]
934 DHCP=yes
</programlisting>
938 <title>/etc/systemd/network/
25-bridge-static.network
</title>
940 <programlisting>[Match]
944 Address=
192.168.0.15/
24
946 DNS=
192.168.0.1</programlisting>
950 <title>/etc/systemd/network/
25-bridge-slave-interface.network
</title>
952 <programlisting>[Match]
956 Bridge=bridge0
</programlisting>
959 <title>/etc/systemd/network/
25-ipip.network
</title>
961 <programlisting>[Match]
965 Tunnel=ipip-tun
</programlisting>
969 <title>/etc/systemd/network/
25-sit.network
</title>
971 <programlisting>[Match]
975 Tunnel=sit-tun
</programlisting>
979 <title>/etc/systemd/network/
25-gre.network
</title>
981 <programlisting>[Match]
985 Tunnel=gre-tun
</programlisting>
989 <title>/etc/systemd/network/
25-vti.network
</title>
991 <programlisting>[Match]
995 Tunnel=vti-tun
</programlisting>
999 <title>/etc/systemd/network/
25-bond.network
</title>
1001 <programlisting>[Match]
1012 <title>See Also
</title>
1014 <citerefentry><refentrytitle>systemd
</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
1015 <citerefentry><refentrytitle>systemd-networkd
</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
1016 <citerefentry><refentrytitle>systemd.link
</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
1017 <citerefentry><refentrytitle>systemd.netdev
</refentrytitle><manvolnum>5</manvolnum></citerefentry>