]>
Commit | Line | Data |
---|---|---|
d9dfd233 | 1 | <?xml version='1.0'?> <!--*- Mode: nxml; nxml-child-indent: 2; indent-tabs-mode: nil -*--> |
60f067b4 | 2 | <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" |
e735f4d4 | 3 | "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"> |
60f067b4 JS |
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 | ||
e735f4d4 MP |
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 | |
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 | |
7035cd9e | 79 | needed. As a special case, an empty file (file size 0) or symlink |
db2df898 MP |
80 | with the same name pointing to <filename>/dev/null</filename> |
81 | disables the configuration file entirely (it is "masked").</para> | |
e735f4d4 MP |
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 | |
e3bff60a MP |
92 | is applied, all later files are ignored, even if they match as |
93 | well.</para> | |
e735f4d4 MP |
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> | |
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> | |
112 | </listitem> | |
113 | </varlistentry> | |
114 | <varlistentry> | |
115 | <term><varname>Driver=</varname></term> | |
116 | <listitem> | |
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> | |
123 | </listitem> | |
124 | </varlistentry> | |
125 | <varlistentry> | |
126 | <term><varname>Type=</varname></term> | |
127 | <listitem> | |
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> | |
131 | </listitem> | |
132 | </varlistentry> | |
133 | <varlistentry> | |
134 | <term><varname>Name=</varname></term> | |
135 | <listitem> | |
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> | |
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> | |
205 | </listitem> | |
206 | </varlistentry> | |
207 | </variablelist> | |
208 | </refsect1> | |
209 | ||
210 | <refsect1> | |
211 | <title>[Network] Section Options</title> | |
212 | ||
213 | <para>The <literal>[Network]</literal> section accepts the following keys:</para> | |
214 | ||
215 | <variablelist class='network-directives'> | |
216 | <varlistentry> | |
217 | <term><varname>Description=</varname></term> | |
218 | <listitem> | |
219 | <para>A description of the device. This is only used for | |
220 | presentation purposes.</para> | |
221 | </listitem> | |
222 | </varlistentry> | |
223 | <varlistentry> | |
224 | <term><varname>DHCP=</varname></term> | |
225 | <listitem> | |
d9dfd233 | 226 | <para>Enables DHCPv4 and/or DHCPv6 client support. Accepts |
e735f4d4 MP |
227 | <literal>yes</literal>, <literal>no</literal>, |
228 | <literal>ipv4</literal>, or <literal>ipv6</literal>.</para> | |
e3bff60a | 229 | |
db2df898 | 230 | <para>Note that DHCPv6 will by default be triggered by Router |
4c89c718 | 231 | Advertisement, if that is enabled, regardless of this parameter. |
db2df898 MP |
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> | |
236 | ||
237 | <para>Furthermore, note that by default the domain name | |
e3bff60a MP |
238 | specified through DHCP is not used for name resolution. |
239 | See option <option>UseDomains=</option> below.</para> | |
e735f4d4 MP |
240 | </listitem> |
241 | </varlistentry> | |
242 | <varlistentry> | |
243 | <term><varname>DHCPServer=</varname></term> | |
244 | <listitem> | |
d9dfd233 MP |
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> | |
e735f4d4 MP |
249 | </listitem> |
250 | </varlistentry> | |
251 | <varlistentry> | |
252 | <term><varname>LinkLocalAddressing=</varname></term> | |
253 | <listitem> | |
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> | |
258 | </listitem> | |
259 | </varlistentry> | |
260 | <varlistentry> | |
261 | <term><varname>IPv4LLRoute=</varname></term> | |
262 | <listitem> | |
263 | <para>A boolean. When true, sets up the route needed for | |
264 | non-IPv4LL hosts to communicate with IPv4LL-only hosts. Defaults | |
265 | to false. | |
266 | </para> | |
267 | </listitem> | |
268 | </varlistentry> | |
269 | <varlistentry> | |
270 | <term><varname>IPv6Token=</varname></term> | |
271 | <listitem> | |
272 | <para>An IPv6 address with the top 64 bits unset. When set, indicates the | |
db2df898 | 273 | 64-bit interface part of SLAAC IPv6 addresses for this link. By default, |
e735f4d4 MP |
274 | it is autogenerated.</para> |
275 | </listitem> | |
276 | </varlistentry> | |
277 | <varlistentry> | |
278 | <term><varname>LLMNR=</varname></term> | |
279 | <listitem> | |
4c89c718 MP |
280 | <para>A boolean or <literal>resolve</literal>. When true, |
281 | enables <ulink | |
282 | url="https://tools.ietf.org/html/rfc4795">Link-Local | |
283 | Multicast Name Resolution</ulink> on the link. When set to | |
284 | <literal>resolve</literal>, only resolution is enabled, | |
285 | but not host registration and announcement. Defaults to | |
286 | true. This setting is read by | |
287 | <citerefentry><refentrytitle>systemd-resolved.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>.</para> | |
288 | </listitem> | |
289 | </varlistentry> | |
290 | <varlistentry> | |
291 | <term><varname>MulticastDNS=</varname></term> | |
292 | <listitem> | |
293 | <para>A boolean or <literal>resolve</literal>. When true, | |
294 | enables <ulink | |
295 | url="https://tools.ietf.org/html/rfc6762">Multicast | |
296 | DNS</ulink> support on the link. When set to | |
297 | <literal>resolve</literal>, only resolution is enabled, | |
298 | but not host or service registration and | |
299 | announcement. Defaults to false. This setting is read by | |
300 | <citerefentry><refentrytitle>systemd-resolved.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>.</para> | |
301 | </listitem> | |
302 | </varlistentry> | |
303 | <varlistentry> | |
304 | <term><varname>DNSSEC=</varname></term> | |
305 | <listitem> | |
306 | <para>A boolean or | |
307 | <literal>allow-downgrade</literal>. When true, enables | |
308 | <ulink | |
309 | url="https://tools.ietf.org/html/rfc4033">DNSSEC</ulink> | |
310 | DNS validation support on the link. When set to | |
311 | <literal>allow-downgrade</literal>, compatibility with | |
312 | non-DNSSEC capable networks is increased, by automatically | |
313 | turning off DNSEC in this case. This option defines a | |
314 | per-interface setting for | |
315 | <citerefentry><refentrytitle>resolved.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>'s | |
316 | global <varname>DNSSEC=</varname> option. Defaults to | |
317 | false. This setting is read by | |
318 | <citerefentry><refentrytitle>systemd-resolved.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>.</para> | |
319 | </listitem> | |
320 | </varlistentry> | |
321 | <varlistentry> | |
322 | <term><varname>DNSSECNegativeTrustAnchors=</varname></term> | |
323 | <listitem><para>A space-separated list of DNSSEC negative | |
324 | trust anchor domains. If specified and DNSSEC is enabled, | |
325 | look-ups done via the interface's DNS server will be subject | |
326 | to the list of negative trust anchors, and not require | |
327 | authentication for the specified domains, or anything below | |
328 | it. Use this to disable DNSSEC authentication for specific | |
329 | private domains, that cannot be proven valid using the | |
330 | Internet DNS hierarchy. Defaults to the empty list. This | |
331 | setting is read by | |
332 | <citerefentry><refentrytitle>systemd-resolved.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>.</para> | |
e735f4d4 MP |
333 | </listitem> |
334 | </varlistentry> | |
335 | <varlistentry> | |
336 | <term><varname>LLDP=</varname></term> | |
337 | <listitem> | |
338 | <para>A boolean. When true, enables LLDP link receive support. | |
339 | </para> | |
340 | </listitem> | |
341 | </varlistentry> | |
e3bff60a MP |
342 | <varlistentry> |
343 | <term><varname>BindCarrier=</varname></term> | |
344 | <listitem> | |
345 | <para>A port or a list of ports. When set, controls the | |
7035cd9e | 346 | behavior of the current interface. When all ports in the list |
e3bff60a MP |
347 | are in an operational down state, the current interface is brought |
348 | down. When at least one port has carrier, the current interface | |
349 | is brought up. | |
350 | </para> | |
351 | </listitem> | |
352 | </varlistentry> | |
e735f4d4 MP |
353 | <varlistentry> |
354 | <term><varname>Address=</varname></term> | |
355 | <listitem> | |
356 | <para>A static IPv4 or IPv6 address and its prefix length, | |
357 | separated by a <literal>/</literal> character. Specify | |
358 | this key more than once to configure several addresses. | |
359 | The format of the address must be as described in | |
e3bff60a | 360 | <citerefentry project='man-pages'><refentrytitle>inet_pton</refentrytitle><manvolnum>3</manvolnum></citerefentry>. |
e735f4d4 MP |
361 | This is a short-hand for an [Address] section only |
362 | containing an Address key (see below). This option may be | |
363 | specified more than once. | |
364 | </para> | |
365 | ||
366 | <para>If the specified address is 0.0.0.0 (for IPv4) or | |
367 | [::] (for IPv6), a new address range of the requested size | |
368 | is automatically allocated from a system-wide pool of | |
369 | unused ranges. The allocated range is checked against all | |
370 | current network interfaces and all known network | |
371 | configuration files to avoid address range conflicts. The | |
372 | default system-wide pool consists of 192.168.0.0/16, | |
373 | 172.16.0.0/12 and 10.0.0.0/8 for IPv4, and fc00::/7 for | |
374 | IPv6. This functionality is useful to manage a large | |
375 | number of dynamically created network interfaces with the | |
376 | same network configuration and automatic address range | |
377 | assignment.</para> | |
378 | ||
379 | </listitem> | |
380 | </varlistentry> | |
381 | <varlistentry> | |
382 | <term><varname>Gateway=</varname></term> | |
383 | <listitem> | |
384 | <para>The gateway address, which must be in the format | |
385 | described in | |
e3bff60a | 386 | <citerefentry project='man-pages'><refentrytitle>inet_pton</refentrytitle><manvolnum>3</manvolnum></citerefentry>. |
e735f4d4 MP |
387 | This is a short-hand for a [Route] section only containing |
388 | a Gateway key. This option may be specified more than | |
389 | once.</para> | |
390 | </listitem> | |
391 | </varlistentry> | |
392 | <varlistentry> | |
393 | <term><varname>DNS=</varname></term> | |
394 | <listitem> | |
395 | <para>A DNS server address, which must be in the format | |
396 | described in | |
e3bff60a | 397 | <citerefentry project='man-pages'><refentrytitle>inet_pton</refentrytitle><manvolnum>3</manvolnum></citerefentry>. |
4c89c718 MP |
398 | This option may be specified more than once. This setting is read by |
399 | <citerefentry><refentrytitle>systemd-resolved.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>.</para> | |
e735f4d4 MP |
400 | </listitem> |
401 | </varlistentry> | |
402 | <varlistentry> | |
403 | <term><varname>Domains=</varname></term> | |
404 | <listitem> | |
4c89c718 MP |
405 | <para>The domains used for DNS host name resolution on this link. Takes a list of DNS domain names which |
406 | are used as search suffixes for extending single-label host names (host names containing no dots) to become | |
407 | fully qualified domain names (FQDNs). If a single-label host name is resolved on this interface, each of | |
408 | the specified search domains are appended to it in turn, converting it into a fully qualified domain name, | |
409 | until one of them may be successfully resolved.</para> | |
410 | ||
411 | <para>The specified domains are also used for routing of DNS queries: look-ups for host names ending in the | |
412 | domains specified here are preferably routed to the DNS servers configured for this interface. If a domain | |
413 | name is prefixed with <literal>~</literal>, the domain name becomes a pure "routing" domain, is used for | |
414 | DNS query routing purposes only and is not used in the described domain search logic. By specifying a | |
415 | routing domain of <literal>~.</literal> (the tilda indicating definition of a routing domain, the dot | |
416 | referring to the DNS root domain which is the implied suffix of all valid DNS names) it is possible to | |
417 | route all DNS traffic preferably to the DNS server specified for this interface. The route domain logic is | |
418 | particularly useful on multi-homed hosts with DNS servers serving particular private DNS zones on each | |
419 | interface.</para> | |
420 | ||
421 | <para>This setting is read by | |
422 | <citerefentry><refentrytitle>systemd-resolved.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>.</para> | |
e735f4d4 MP |
423 | </listitem> |
424 | </varlistentry> | |
425 | <varlistentry> | |
426 | <term><varname>NTP=</varname></term> | |
427 | <listitem> | |
4c89c718 MP |
428 | <para>An NTP server address. This option may be specified more than once. This setting is read by |
429 | <citerefentry><refentrytitle>systemd-timesyncd.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>.</para> | |
e735f4d4 MP |
430 | </listitem> |
431 | </varlistentry> | |
432 | <varlistentry> | |
433 | <term><varname>IPForward=</varname></term> | |
db2df898 MP |
434 | <listitem><para>Configures IP packet forwarding for the |
435 | system. If enabled, incoming packets on any network | |
436 | interface will be forwarded to any other interfaces | |
437 | according to the routing table. Takes either a boolean | |
438 | argument, or the values <literal>ipv4</literal> or | |
439 | <literal>ipv6</literal>, which only enable IP packet | |
440 | forwarding for the specified address family. This controls | |
441 | the <filename>net.ipv4.ip_forward</filename> and | |
442 | <filename>net.ipv6.conf.all.forwarding</filename> sysctl | |
443 | options of the network interface (see <ulink | |
e3bff60a MP |
444 | url="https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt">ip-sysctl.txt</ulink> |
445 | for details about sysctl options). Defaults to | |
446 | <literal>no</literal>.</para> | |
447 | ||
db2df898 MP |
448 | <para>Note: this setting controls a global kernel option, |
449 | and does so one way only: if a network that has this setting | |
450 | enabled is set up the global setting is turned on. However, | |
451 | it is never turned off again, even after all networks with | |
452 | this setting enabled are shut down again.</para> | |
453 | ||
454 | <para>To allow IP packet forwarding only between specific | |
455 | network interfaces use a firewall.</para> | |
e3bff60a | 456 | </listitem> |
e735f4d4 MP |
457 | </varlistentry> |
458 | <varlistentry> | |
459 | <term><varname>IPMasquerade=</varname></term> | |
460 | <listitem><para>Configures IP masquerading for the network | |
db2df898 | 461 | interface. If enabled, packets forwarded from the network |
e735f4d4 MP |
462 | interface will be appear as coming from the local host. |
463 | Takes a boolean argument. Implies | |
e3bff60a MP |
464 | <varname>IPForward=ipv4</varname>. Defaults to |
465 | <literal>no</literal>.</para></listitem> | |
e735f4d4 | 466 | </varlistentry> |
fb183854 MP |
467 | <varlistentry> |
468 | <term><varname>IPv6PrivacyExtensions=</varname></term> | |
469 | <listitem><para>Configures use of stateless temporary | |
470 | addresses that change over time (see <ulink | |
471 | url="https://tools.ietf.org/html/rfc4941">RFC 4941</ulink>, | |
472 | Privacy Extensions for Stateless Address Autoconfiguration | |
473 | in IPv6). Takes a boolean or the special values | |
474 | <literal>prefer-public</literal> and | |
db2df898 | 475 | <literal>kernel</literal>. When true, enables the privacy |
fb183854 | 476 | extensions and prefers temporary addresses over public |
db2df898 | 477 | addresses. When <literal>prefer-public</literal>, enables the |
fb183854 MP |
478 | privacy extensions, but prefers public addresses over |
479 | temporary addresses. When false, the privacy extensions | |
db2df898 | 480 | remain disabled. When <literal>kernel</literal>, the kernel's |
fb183854 MP |
481 | default setting will be left in place. Defaults to |
482 | <literal>no</literal>.</para></listitem> | |
483 | </varlistentry> | |
6300502b MP |
484 | <varlistentry> |
485 | <term><varname>IPv6AcceptRouterAdvertisements=</varname></term> | |
db2df898 MP |
486 | <listitem><para>Force the setting of the <filename>accept_ra</filename> |
487 | (router advertisements) setting for the interface. | |
488 | When unset, the kernel default is used, and router | |
489 | advertisements are accepted only when local forwarding | |
490 | is disabled for that interface. | |
491 | When router advertisements are accepted, they will | |
492 | trigger the start of the DHCPv6 client if the relevant | |
493 | flags are passed, or if no routers are found on the link. | |
494 | Takes a boolean. If true, router advertisements are | |
495 | accepted, when false, router advertisements are ignored, | |
496 | independently of the local forwarding state.</para> | |
497 | ||
498 | <para>See | |
499 | <ulink url="https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt">ip-sysctl.txt</ulink> | |
500 | in the kernel documentation, but note that systemd's | |
501 | setting of <constant>1</constant> corresponds to | |
502 | kernel's setting of <constant>2</constant>.</para> | |
503 | </listitem> | |
504 | </varlistentry> | |
505 | <varlistentry> | |
506 | <term><varname>IPv6DuplicateAddressDetection=</varname></term> | |
507 | <listitem><para>Configures the amount of IPv6 Duplicate | |
508 | Address Detection (DAD) probes to send. Defaults to unset. | |
509 | </para></listitem> | |
510 | </varlistentry> | |
511 | <varlistentry> | |
512 | <term><varname>IPv6HopLimit=</varname></term> | |
513 | <listitem><para>Configures IPv6 Hop Limit. For each router that | |
514 | forwards the packet, the hop limit is decremented by 1. When the | |
515 | hop limit field reaches zero, the packet is discarded. | |
516 | Defaults to unset. | |
6300502b MP |
517 | </para></listitem> |
518 | </varlistentry> | |
e735f4d4 MP |
519 | <varlistentry> |
520 | <term><varname>Bridge=</varname></term> | |
521 | <listitem> | |
522 | <para>The name of the bridge to add the link to.</para> | |
523 | </listitem> | |
524 | </varlistentry> | |
525 | <varlistentry> | |
526 | <term><varname>Bond=</varname></term> | |
527 | <listitem> | |
528 | <para>The name of the bond to add the link to.</para> | |
529 | </listitem> | |
530 | </varlistentry> | |
531 | <varlistentry> | |
532 | <term><varname>VLAN=</varname></term> | |
533 | <listitem> | |
534 | <para>The name of a VLAN to create on the link. This | |
535 | option may be specified more than once.</para> | |
536 | </listitem> | |
537 | </varlistentry> | |
538 | <varlistentry> | |
539 | <term><varname>MACVLAN=</varname></term> | |
540 | <listitem> | |
541 | <para>The name of a MACVLAN to create on the link. This | |
542 | option may be specified more than once.</para> | |
543 | </listitem> | |
544 | </varlistentry> | |
545 | <varlistentry> | |
546 | <term><varname>VXLAN=</varname></term> | |
547 | <listitem> | |
548 | <para>The name of a VXLAN to create on the link. This | |
549 | option may be specified more than once.</para> | |
550 | </listitem> | |
551 | </varlistentry> | |
552 | <varlistentry> | |
553 | <term><varname>Tunnel=</varname></term> | |
554 | <listitem> | |
555 | <para>The name of a Tunnel to create on the link. This | |
556 | option may be specified more than once.</para> | |
557 | </listitem> | |
558 | </varlistentry> | |
559 | </variablelist> | |
560 | ||
561 | </refsect1> | |
562 | ||
563 | <refsect1> | |
564 | <title>[Address] Section Options</title> | |
565 | ||
566 | <para>An <literal>[Address]</literal> section accepts the | |
567 | following keys. Specify several <literal>[Address]</literal> | |
568 | sections to configure several addresses.</para> | |
569 | ||
570 | <variablelist class='network-directives'> | |
571 | <varlistentry> | |
572 | <term><varname>Address=</varname></term> | |
573 | <listitem> | |
574 | <para>As in the <literal>[Network]</literal> section. This | |
575 | key is mandatory.</para> | |
576 | </listitem> | |
577 | </varlistentry> | |
578 | <varlistentry> | |
579 | <term><varname>Peer=</varname></term> | |
580 | <listitem> | |
581 | <para>The peer address in a point-to-point connection. | |
582 | Accepts the same format as the <literal>Address</literal> | |
583 | key.</para> | |
584 | </listitem> | |
585 | </varlistentry> | |
586 | <varlistentry> | |
587 | <term><varname>Broadcast=</varname></term> | |
588 | <listitem> | |
589 | <para>The broadcast address, which must be in the format | |
590 | described in | |
e3bff60a | 591 | <citerefentry project='man-pages'><refentrytitle>inet_pton</refentrytitle><manvolnum>3</manvolnum></citerefentry>. |
e735f4d4 MP |
592 | This key only applies to IPv4 addresses. If it is not |
593 | given, it is derived from the <literal>Address</literal> | |
594 | key.</para> | |
595 | </listitem> | |
596 | </varlistentry> | |
597 | <varlistentry> | |
598 | <term><varname>Label=</varname></term> | |
599 | <listitem> | |
600 | <para>An address label.</para> | |
601 | </listitem> | |
602 | </varlistentry> | |
603 | </variablelist> | |
604 | </refsect1> | |
605 | ||
606 | <refsect1> | |
607 | <title>[Route] Section Options</title> | |
608 | <para>The <literal>[Route]</literal> section accepts the | |
609 | following keys. Specify several <literal>[Route]</literal> | |
610 | sections to configure several routes.</para> | |
611 | ||
612 | <variablelist class='network-directives'> | |
613 | <varlistentry> | |
614 | <term><varname>Gateway=</varname></term> | |
615 | <listitem> | |
616 | <para>As in the <literal>[Network]</literal> section.</para> | |
617 | </listitem> | |
618 | </varlistentry> | |
619 | <varlistentry> | |
620 | <term><varname>Destination=</varname></term> | |
621 | <listitem> | |
622 | <para>The destination prefix of the route. Possibly | |
db2df898 | 623 | followed by a slash and the prefix length. If omitted, a |
e735f4d4 MP |
624 | full-length host route is assumed.</para> |
625 | </listitem> | |
626 | </varlistentry> | |
627 | <varlistentry> | |
628 | <term><varname>Source=</varname></term> | |
629 | <listitem> | |
630 | <para>The source prefix of the route. Possibly followed by | |
db2df898 | 631 | a slash and the prefix length. If omitted, a full-length |
e735f4d4 MP |
632 | host route is assumed.</para> |
633 | </listitem> | |
634 | </varlistentry> | |
635 | <varlistentry> | |
636 | <term><varname>Metric=</varname></term> | |
637 | <listitem> | |
db2df898 | 638 | <para>The metric of the route (an unsigned integer).</para> |
e735f4d4 MP |
639 | </listitem> |
640 | </varlistentry> | |
641 | <varlistentry> | |
642 | <term><varname>Scope=</varname></term> | |
643 | <listitem> | |
db2df898 | 644 | <para>The scope of the route, which can be <literal>global</literal>, |
e735f4d4 MP |
645 | <literal>link</literal> or <literal>host</literal>. Defaults to |
646 | <literal>global</literal>.</para> | |
647 | </listitem> | |
648 | </varlistentry> | |
6300502b MP |
649 | <varlistentry> |
650 | <term><varname>PreferredSource=</varname></term> | |
651 | <listitem> | |
652 | <para>The preferred source address of the route. The address | |
653 | must be in the format described in | |
654 | <citerefentry project='man-pages'><refentrytitle>inet_pton</refentrytitle><manvolnum>3</manvolnum></citerefentry>.</para> | |
655 | </listitem> | |
656 | </varlistentry> | |
e735f4d4 MP |
657 | </variablelist> |
658 | </refsect1> | |
659 | ||
660 | <refsect1> | |
661 | <title>[DHCP] Section Options</title> | |
d9dfd233 MP |
662 | <para>The <literal>[DHCP]</literal> section configures the |
663 | DHCPv4 and DHCP6 client, if it is enabled with the | |
664 | <varname>DHCP=</varname> setting described above:</para> | |
e735f4d4 MP |
665 | |
666 | <variablelist class='network-directives'> | |
667 | <varlistentry> | |
668 | <term><varname>UseDNS=</varname></term> | |
669 | <listitem> | |
670 | <para>When true (the default), the DNS servers received | |
671 | from the DHCP server will be used and take precedence over | |
672 | any statically configured ones.</para> | |
e3bff60a MP |
673 | |
674 | <para>This corresponds to the <option>nameserver</option> | |
d9dfd233 MP |
675 | option in <citerefentry |
676 | project='man-pages'><refentrytitle>resolv.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>.</para> | |
e3bff60a MP |
677 | </listitem> |
678 | </varlistentry> | |
679 | <varlistentry> | |
680 | <term><varname>UseNTP=</varname></term> | |
681 | <listitem> | |
682 | <para>When true (the default), the NTP servers received | |
683 | from the DHCP server will be used by systemd-timesyncd | |
684 | and take precedence over any statically configured ones.</para> | |
e735f4d4 MP |
685 | </listitem> |
686 | </varlistentry> | |
687 | <varlistentry> | |
688 | <term><varname>UseMTU=</varname></term> | |
689 | <listitem> | |
690 | <para>When true, the interface maximum transmission unit | |
691 | from the DHCP server will be used on the current link. | |
692 | Defaults to false.</para> | |
693 | </listitem> | |
694 | </varlistentry> | |
695 | <varlistentry> | |
696 | <term><varname>SendHostname=</varname></term> | |
697 | <listitem> | |
7035cd9e MP |
698 | <para>When true (the default), the machine's hostname will |
699 | be sent to the DHCP server.</para> | |
e735f4d4 MP |
700 | </listitem> |
701 | </varlistentry> | |
702 | <varlistentry> | |
703 | <term><varname>UseHostname=</varname></term> | |
704 | <listitem> | |
705 | <para>When true (the default), the hostname received from | |
d9dfd233 | 706 | the DHCP server will be set as the transient hostname of the system |
7035cd9e | 707 | </para> |
e735f4d4 MP |
708 | </listitem> |
709 | </varlistentry> | |
7035cd9e MP |
710 | <varlistentry> |
711 | <term><varname>Hostname=</varname></term> | |
712 | <listitem> | |
713 | <para>Use this value for the hostname which is sent to the | |
714 | DHCP server, instead of machine's hostname.</para> | |
715 | </listitem> | |
716 | </varlistentry> | |
e735f4d4 MP |
717 | <varlistentry> |
718 | <term><varname>UseDomains=</varname></term> | |
719 | <listitem> | |
4c89c718 MP |
720 | <para>Takes a boolean argument, or a the special value <literal>route</literal>. When true, the domain name |
721 | received from the DHCP server will be used as DNS search domain over this link, similar to the effect of | |
722 | the <option>Domains=</option> setting. If set to <literal>route</literal>, the domain name received from | |
723 | the DHCP server will be used for routing DNS queries only, but not for searching, similar to the effect of | |
724 | the <option>Domains=</option> setting when the argument is prefixed with <literal>~</literal>. Defaults to | |
725 | false.</para> | |
726 | ||
727 | <para>It is recommended to enable this option only on trusted networks, as setting this affects resolution | |
728 | of all host names, in particular to single-label names. It is generally safer to use the supplied domain | |
729 | only as routing domain, rather than as search domain, in order to not have it affect local resolution of | |
730 | single-label names.</para> | |
e3bff60a | 731 | |
4c89c718 MP |
732 | <para>When set to true, this setting corresponds to the <option>domain</option> option in <citerefentry |
733 | project='man-pages'><refentrytitle>resolv.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>.</para> | |
e735f4d4 MP |
734 | </listitem> |
735 | </varlistentry> | |
736 | <varlistentry> | |
737 | <term><varname>UseRoutes=</varname></term> | |
738 | <listitem> | |
739 | <para>When true (the default), the static routes will be | |
740 | requested from the DHCP server and added to the routing | |
db2df898 | 741 | table with a metric of 1024.</para> |
e735f4d4 MP |
742 | </listitem> |
743 | </varlistentry> | |
d9dfd233 MP |
744 | |
745 | <varlistentry> | |
746 | <term><varname>UseTimezone=</varname></term> | |
747 | ||
748 | <listitem><para>When true, the timezone received from the | |
4c89c718 | 749 | DHCP server will be set as timezone of the local |
d9dfd233 MP |
750 | system. Defaults to <literal>no</literal>.</para></listitem> |
751 | </varlistentry> | |
752 | ||
e735f4d4 MP |
753 | <varlistentry> |
754 | <term><varname>CriticalConnection=</varname></term> | |
755 | <listitem> | |
756 | <para>When true, the connection will never be torn down | |
757 | even if the DHCP lease expires. This is contrary to the | |
758 | DHCP specification, but may be the best choice if, say, | |
759 | the root filesystem relies on this connection. Defaults to | |
760 | false.</para> | |
761 | </listitem> | |
762 | </varlistentry> | |
e3bff60a MP |
763 | <varlistentry> |
764 | <term><varname>ClientIdentifier=</varname></term> | |
765 | <listitem> | |
766 | <para>DHCP client identifier to use. Either <literal>mac</literal> | |
767 | to use the MAC address of the link or <literal>duid</literal> | |
768 | (the default) to use a RFC4361-compliant Client ID.</para> | |
769 | </listitem> | |
770 | </varlistentry> | |
e735f4d4 MP |
771 | <varlistentry> |
772 | <term><varname>VendorClassIdentifier=</varname></term> | |
773 | <listitem> | |
774 | <para>The vendor class identifier used to identify vendor | |
775 | type and configuration.</para> | |
776 | </listitem> | |
777 | </varlistentry> | |
778 | <varlistentry> | |
779 | <term><varname>RequestBroadcast=</varname></term> | |
780 | <listitem> | |
781 | <para>Request the server to use broadcast messages before | |
782 | the IP address has been configured. This is necessary for | |
783 | devices that cannot receive RAW packets, or that cannot | |
784 | receive packets at all before an IP address has been | |
785 | configured. On the other hand, this must not be enabled on | |
786 | networks where broadcasts are filtered out.</para> | |
787 | </listitem> | |
788 | </varlistentry> | |
789 | <varlistentry> | |
790 | <term><varname>RouteMetric=</varname></term> | |
791 | <listitem> | |
792 | <para>Set the routing metric for routes specified by the | |
793 | DHCP server.</para> | |
794 | </listitem> | |
795 | </varlistentry> | |
d9dfd233 MP |
796 | </variablelist> |
797 | ||
798 | </refsect1> | |
799 | ||
800 | <refsect1> | |
801 | <title>[DHCPServer] Section Options</title> | |
802 | <para>The <literal>[DHCPServer]</literal> section contains | |
803 | settings for the DHCP server, if enabled via the | |
804 | <varname>DHCPServer=</varname> option described above:</para> | |
805 | ||
806 | <variablelist class='network-directives'> | |
807 | ||
808 | <varlistentry> | |
809 | <term><varname>PoolOffset=</varname></term> | |
810 | <term><varname>PoolSize=</varname></term> | |
811 | ||
812 | <listitem><para>Configures the pool of addresses to hand out. The pool | |
813 | is a contiguous sequence of IP addresses in the subnet configured for | |
814 | the server address, which does not include the subnet nor the broadcast | |
815 | address. <varname>PoolOffset=</varname> takes the offset of the pool | |
816 | from the start of subnet, or zero to use the default value. | |
817 | <varname>PoolSize=</varname> takes the number of IP addresses in the | |
db2df898 | 818 | pool or zero to use the default value. By default, the pool starts at |
d9dfd233 MP |
819 | the first address after the subnet address and takes up the rest of |
820 | the subnet, excluding the broadcast address. If the pool includes | |
821 | the server address (the default), this is reserved and not handed | |
822 | out to clients.</para></listitem> | |
823 | </varlistentry> | |
824 | ||
825 | <varlistentry> | |
826 | <term><varname>DefaultLeaseTimeSec=</varname></term> | |
827 | <term><varname>MaxLeaseTimeSec=</varname></term> | |
828 | ||
829 | <listitem><para>Control the default and maximum DHCP lease | |
830 | time to pass to clients. These settings take time values in seconds or | |
831 | another common time unit, depending on the suffix. The default | |
832 | lease time is used for clients that did not ask for a specific | |
833 | lease time. If a client asks for a lease time longer than the | |
db2df898 | 834 | maximum lease time, it is automatically shortened to the |
d9dfd233 MP |
835 | specified time. The default lease time defaults to 1h, the |
836 | maximum lease time to 12h. Shorter lease times are beneficial | |
837 | if the configuration data in DHCP leases changes frequently | |
838 | and clients shall learn the new settings with shorter | |
839 | latencies. Longer lease times reduce the generated DHCP | |
840 | network traffic.</para></listitem> | |
841 | </varlistentry> | |
842 | ||
843 | <varlistentry> | |
844 | <term><varname>EmitDNS=</varname></term> | |
845 | <term><varname>DNS=</varname></term> | |
846 | ||
847 | <listitem><para>Configures whether the DHCP leases handed out | |
848 | to clients shall contain DNS server information. The | |
849 | <varname>EmitDNS=</varname> setting takes a boolean argument | |
850 | and defaults to <literal>yes</literal>. The DNS servers to | |
851 | pass to clients may be configured with the | |
852 | <varname>DNS=</varname> option, which takes a list of IPv4 | |
853 | addresses. If the <varname>EmitDNS=</varname> option is | |
db2df898 | 854 | enabled but no servers configured, the servers are |
d9dfd233 MP |
855 | automatically propagated from an "uplink" interface that has |
856 | appropriate servers set. The "uplink" interface is determined | |
857 | by the default route of the system with the highest | |
858 | priority. Note that this information is acquired at the time | |
859 | the lease is handed out, and does not take uplink interfaces | |
860 | into account that acquire DNS or NTP server information at a | |
861 | later point. DNS server propagation does not take | |
862 | <filename>/etc/resolv.conf</filename> into account. Also, note | |
db2df898 | 863 | that the leases are not refreshed if the uplink network |
d9dfd233 | 864 | configuration changes. To ensure clients regularly acquire the |
db2df898 | 865 | most current uplink DNS server information, it is thus |
d9dfd233 MP |
866 | advisable to shorten the DHCP lease time via |
867 | <varname>MaxLeaseTimeSec=</varname> described | |
868 | above.</para></listitem> | |
869 | </varlistentry> | |
e735f4d4 | 870 | |
d9dfd233 MP |
871 | <varlistentry> |
872 | <term><varname>EmitNTP=</varname></term> | |
873 | <term><varname>NTP=</varname></term> | |
874 | ||
875 | <listitem><para>Similar to the <varname>EmitDNS=</varname> and | |
db2df898 | 876 | <varname>DNS=</varname> settings described above, these |
d9dfd233 MP |
877 | settings configure whether and what NTP server information |
878 | shall be emitted as part of the DHCP lease. The same syntax, | |
879 | propagation semantics and defaults apply as for | |
880 | <varname>EmitDNS=</varname> and | |
881 | <varname>DNS=</varname>.</para></listitem> | |
882 | </varlistentry> | |
883 | ||
884 | <varlistentry> | |
885 | <term><varname>EmitTimezone=</varname></term> | |
886 | <term><varname>Timezone=</varname></term> | |
887 | ||
888 | <listitem><para>Configures whether the DHCP leases handed out | |
889 | to clients shall contain timezone information. The | |
890 | <varname>EmitTimezone=</varname> setting takes a boolean | |
891 | argument and defaults to <literal>yes</literal>. The | |
892 | <varname>Timezone=</varname> setting takes a timezone string | |
893 | (such as <literal>Europe/Berlin</literal> or | |
894 | <literal>UTC</literal>) to pass to clients. If no explicit | |
db2df898 | 895 | timezone is set, the system timezone of the local host is |
d9dfd233 MP |
896 | propagated, as determined by the |
897 | <filename>/etc/localtime</filename> symlink.</para></listitem> | |
898 | </varlistentry> | |
899 | ||
900 | </variablelist> | |
e735f4d4 MP |
901 | </refsect1> |
902 | ||
903 | <refsect1> | |
904 | <title>[Bridge] Section Options</title> | |
905 | <para>The <literal>[Bridge]</literal> section accepts the | |
906 | following keys.</para> | |
907 | <variablelist class='network-directives'> | |
7035cd9e MP |
908 | <varlistentry> |
909 | <term><varname>UnicastFlood=</varname></term> | |
910 | <listitem> | |
911 | <para>A boolean. Controls whether the bridge should flood | |
912 | traffic for which an FDB entry is missing and the destination | |
913 | is unknown through this port. Defaults to on. | |
914 | </para> | |
915 | </listitem> | |
916 | </varlistentry> | |
917 | <varlistentry> | |
918 | <term><varname>HairPin=</varname></term> | |
919 | <listitem> | |
920 | <para>A boolean. Configures whether traffic may be sent back | |
921 | out of the port on which it was received. By default, this | |
922 | flag is false, and the bridge will not forward traffic back | |
923 | out of the receiving port.</para> | |
924 | </listitem> | |
925 | </varlistentry> | |
926 | <varlistentry> | |
927 | <term><varname>UseBPDU=</varname></term> | |
928 | <listitem> | |
929 | <para>A boolean. Configures whether STP Bridge Protocol Data Units will be | |
930 | processed by the bridge port. Defaults to yes.</para> | |
931 | </listitem> | |
932 | </varlistentry> | |
933 | <varlistentry> | |
934 | <term><varname>FastLeave=</varname></term> | |
935 | <listitem> | |
936 | <para>A boolean. This flag allows the bridge to immediately stop multicast | |
db2df898 | 937 | traffic on a port that receives an IGMP Leave message. It is only used with |
7035cd9e MP |
938 | IGMP snooping if enabled on the bridge. Defaults to off.</para> |
939 | </listitem> | |
940 | </varlistentry> | |
941 | <varlistentry> | |
942 | <term><varname>AllowPortToBeRoot=</varname></term> | |
943 | <listitem> | |
944 | <para>A boolean. Configures whether a given port is allowed to | |
945 | become a root port. Only used when STP is enabled on the bridge. | |
946 | Defaults to on.</para> | |
947 | </listitem> | |
948 | </varlistentry> | |
e735f4d4 MP |
949 | <varlistentry> |
950 | <term><varname>Cost=</varname></term> | |
951 | <listitem> | |
7035cd9e | 952 | <para>Sets the "cost" of sending packets of this interface. |
db2df898 | 953 | Each port in a bridge may have a different speed and the cost |
e735f4d4 | 954 | is used to decide which link to use. Faster interfaces |
7035cd9e | 955 | should have lower costs.</para> |
e735f4d4 MP |
956 | </listitem> |
957 | </varlistentry> | |
958 | </variablelist> | |
959 | </refsect1> | |
e735f4d4 MP |
960 | <refsect1> |
961 | <title>[BridgeFDB] Section Options</title> | |
962 | <para>The <literal>[BridgeFDB]</literal> section manages the | |
963 | forwarding database table of a port and accepts the following | |
964 | keys. Specify several <literal>[BridgeFDB]</literal> sections to | |
965 | configure several static MAC table entries.</para> | |
966 | ||
967 | <variablelist class='network-directives'> | |
968 | <varlistentry> | |
969 | <term><varname>MACAddress=</varname></term> | |
970 | <listitem> | |
971 | <para>As in the <literal>[Network]</literal> section. This | |
972 | key is mandatory.</para> | |
973 | </listitem> | |
974 | </varlistentry> | |
975 | <varlistentry> | |
976 | <term><varname>VLANId=</varname></term> | |
977 | <listitem> | |
db2df898 MP |
978 | <para>The VLAN ID for the new static MAC table entry. If |
979 | omitted, no VLAN ID info is appended to the new static MAC | |
e735f4d4 MP |
980 | table entry.</para> |
981 | </listitem> | |
982 | </varlistentry> | |
983 | </variablelist> | |
984 | </refsect1> | |
985 | ||
986 | <refsect1> | |
987 | <title>Example</title> | |
988 | <example> | |
989 | <title>/etc/systemd/network/50-static.network</title> | |
990 | ||
991 | <programlisting>[Match] | |
60f067b4 JS |
992 | Name=enp2s0 |
993 | ||
994 | [Network] | |
995 | Address=192.168.0.15/24 | |
996 | Gateway=192.168.0.1</programlisting> | |
e735f4d4 | 997 | </example> |
60f067b4 | 998 | |
e735f4d4 MP |
999 | <example> |
1000 | <title>/etc/systemd/network/80-dhcp.network</title> | |
60f067b4 | 1001 | |
e735f4d4 | 1002 | <programlisting>[Match] |
60f067b4 JS |
1003 | Name=en* |
1004 | ||
1005 | [Network] | |
e3bff60a | 1006 | DHCP=yes</programlisting> |
e735f4d4 | 1007 | </example> |
60f067b4 | 1008 | |
e735f4d4 | 1009 | <example> |
6300502b | 1010 | <title>/etc/systemd/network/25-bridge-static.network</title> |
60f067b4 | 1011 | |
e735f4d4 | 1012 | <programlisting>[Match] |
60f067b4 JS |
1013 | Name=bridge0 |
1014 | ||
1015 | [Network] | |
1016 | Address=192.168.0.15/24 | |
1017 | Gateway=192.168.0.1 | |
1018 | DNS=192.168.0.1</programlisting> | |
e735f4d4 | 1019 | </example> |
60f067b4 | 1020 | |
e735f4d4 | 1021 | <example> |
6300502b | 1022 | <title>/etc/systemd/network/25-bridge-slave-interface.network</title> |
60f067b4 | 1023 | |
e735f4d4 | 1024 | <programlisting>[Match] |
60f067b4 JS |
1025 | Name=enp2s0 |
1026 | ||
1027 | [Network] | |
1028 | Bridge=bridge0</programlisting> | |
e735f4d4 MP |
1029 | </example> |
1030 | <example> | |
6300502b | 1031 | <title>/etc/systemd/network/25-ipip.network</title> |
e842803a | 1032 | |
e735f4d4 | 1033 | <programlisting>[Match] |
e842803a MB |
1034 | Name=em1 |
1035 | ||
1036 | [Network] | |
1037 | Tunnel=ipip-tun</programlisting> | |
e735f4d4 | 1038 | </example> |
e842803a | 1039 | |
e735f4d4 | 1040 | <example> |
6300502b | 1041 | <title>/etc/systemd/network/25-sit.network</title> |
e842803a | 1042 | |
e735f4d4 | 1043 | <programlisting>[Match] |
e842803a MB |
1044 | Name=em1 |
1045 | ||
1046 | [Network] | |
1047 | Tunnel=sit-tun</programlisting> | |
e735f4d4 | 1048 | </example> |
e842803a | 1049 | |
e735f4d4 | 1050 | <example> |
6300502b | 1051 | <title>/etc/systemd/network/25-gre.network</title> |
e842803a | 1052 | |
e735f4d4 | 1053 | <programlisting>[Match] |
e842803a MB |
1054 | Name=em1 |
1055 | ||
1056 | [Network] | |
1057 | Tunnel=gre-tun</programlisting> | |
e735f4d4 | 1058 | </example> |
e842803a | 1059 | |
e735f4d4 | 1060 | <example> |
6300502b | 1061 | <title>/etc/systemd/network/25-vti.network</title> |
e842803a | 1062 | |
e735f4d4 | 1063 | <programlisting>[Match] |
e842803a MB |
1064 | Name=em1 |
1065 | ||
1066 | [Network] | |
1067 | Tunnel=vti-tun</programlisting> | |
e735f4d4 | 1068 | </example> |
13d276d0 MP |
1069 | |
1070 | <example> | |
6300502b | 1071 | <title>/etc/systemd/network/25-bond.network</title> |
13d276d0 MP |
1072 | |
1073 | <programlisting>[Match] | |
1074 | Name=bond1 | |
1075 | ||
1076 | [Network] | |
1077 | DHCP=yes | |
1078 | </programlisting> | |
1079 | </example> | |
1080 | ||
e735f4d4 MP |
1081 | </refsect1> |
1082 | ||
1083 | <refsect1> | |
1084 | <title>See Also</title> | |
1085 | <para> | |
1086 | <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>, | |
4c89c718 | 1087 | <citerefentry><refentrytitle>systemd-networkd.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>, |
e735f4d4 | 1088 | <citerefentry><refentrytitle>systemd.link</refentrytitle><manvolnum>5</manvolnum></citerefentry>, |
4c89c718 MP |
1089 | <citerefentry><refentrytitle>systemd.netdev</refentrytitle><manvolnum>5</manvolnum></citerefentry>, |
1090 | <citerefentry><refentrytitle>systemd-resolved.service</refentrytitle><manvolnum>8</manvolnum></citerefentry> | |
e735f4d4 MP |
1091 | </para> |
1092 | </refsect1> | |
60f067b4 JS |
1093 | |
1094 | </refentry> |