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