]> git.ipfire.org Git - thirdparty/systemd.git/blame - man/systemd.link.xml
NEWS: describe the naming scheme updates
[thirdparty/systemd.git] / man / systemd.link.xml
CommitLineData
514094f9 1<?xml version='1.0'?>
1ff28eae 2<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
12b42c76 3 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
1ff28eae
TG
4
5<!--
572eb058 6 SPDX-License-Identifier: LGPL-2.1+
1ff28eae
TG
7-->
8
9<refentry id="systemd.link">
798d3a52
ZJS
10 <refentryinfo>
11 <title>systemd.link</title>
12 <productname>systemd</productname>
798d3a52 13 </refentryinfo>
1ff28eae 14
798d3a52
ZJS
15 <refmeta>
16 <refentrytitle>systemd.link</refentrytitle>
17 <manvolnum>5</manvolnum>
18 </refmeta>
1ff28eae 19
798d3a52
ZJS
20 <refnamediv>
21 <refname>systemd.link</refname>
22 <refpurpose>Network device configuration</refpurpose>
23 </refnamediv>
1ff28eae 24
798d3a52
ZJS
25 <refsynopsisdiv>
26 <para><filename><replaceable>link</replaceable>.link</filename></para>
27 </refsynopsisdiv>
1ff28eae 28
798d3a52
ZJS
29 <refsect1>
30 <title>Description</title>
1ff28eae 31
798d3a52
ZJS
32 <para>Network link configuration is performed by the
33 <command>net_setup_link</command> udev builtin.</para>
1ff28eae 34
798d3a52 35 <para>The link files are read from the files located in the system
12b42c76 36 network directory <filename>/usr/lib/systemd/network</filename>,
798d3a52
ZJS
37 the volatile runtime network directory
38 <filename>/run/systemd/network</filename>, and the local
39 administration network directory
12b42c76 40 <filename>/etc/systemd/network</filename>. Link files must have
798d3a52
ZJS
41 the extension <filename>.link</filename>; other extensions are
42 ignored. All link files are collectively sorted and processed in
43 lexical order, regardless of the directories in which they live.
44 However, files with identical filenames replace each other. Files
45 in <filename>/etc</filename> have the highest priority, files in
46 <filename>/run</filename> take precedence over files with the same
12b42c76 47 name in <filename>/usr/lib</filename>. This can be used to
57e27ec0
ZJS
48 override a system-supplied link file with a local file if needed.
49 As a special case, an empty file (file size 0) or symlink with the
a8eaaee7 50 same name pointing to <filename>/dev/null</filename> disables the
57e27ec0 51 configuration file entirely (it is "masked").</para>
1ff28eae 52
798d3a52
ZJS
53 <para>The link file contains a <literal>[Match]</literal> section,
54 which determines if a given link file may be applied to a given
55 device, as well as a <literal>[Link]</literal> section specifying
56 how the device should be configured. The first (in lexical order)
57 of the link files that matches a given device is applied. Note
58 that a default file <filename>99-default.link</filename> is
1b934761 59 shipped by the system. Any user-supplied
798d3a52
ZJS
60 <filename>.link</filename> should hence have a lexically earlier
61 name to be considered at all.</para>
788f37c7
TG
62
63 <para>See
64 <citerefentry><refentrytitle>udevadm</refentrytitle><manvolnum>8</manvolnum></citerefentry>
65 for diagnosing problems with <filename>.link</filename> files.</para>
798d3a52 66 </refsect1>
102bd40e 67
798d3a52
ZJS
68 <refsect1>
69 <title>[Match] Section Options</title>
1ff28eae 70
798d3a52
ZJS
71 <para>A link file is said to match a device if each of the entries
72 in the <literal>[Match]</literal> section matches, or if the
73 section is empty. The following keys are accepted:</para>
1ff28eae 74
798d3a52
ZJS
75 <variablelist class='network-directives'>
76 <varlistentry>
77 <term><varname>MACAddress=</varname></term>
78 <listitem>
9310bf4b
YW
79 <para>A whitespace-separated list of hardware addresses. Use full colon-, hyphen- or dot-delimited hexadecimal. See the example below.
80 This option may appear more than once, in which case the lists are merged. If the empty string is assigned to this option, the list
81 of hardware addresses defined prior to this is reset.</para>
82
83 <para>Example:
84 <programlisting>MACAddress=01:23:45:67:89:ab 00-11-22-33-44-55 AABB.CCDD.EEFF</programlisting></para>
798d3a52
ZJS
85 </listitem>
86 </varlistentry>
87 <varlistentry>
88 <term><varname>OriginalName=</varname></term>
89 <listitem>
5256e00e
TG
90 <para>A whitespace-separated list of shell-style globs matching
91 the device name, as exposed by the udev property
2dd67817 92 "INTERFACE". This cannot be used to match on names that have
5256e00e 93 already been changed from userspace. Caution is advised when matching on
798d3a52
ZJS
94 kernel-assigned names, as they are known to be unstable
95 between reboots.</para>
96 </listitem>
97 </varlistentry>
98 <varlistentry>
99 <term><varname>Path=</varname></term>
100 <listitem>
5256e00e
TG
101 <para>A whitespace-separated list of shell-style globs matching
102 the persistent path, as exposed by the udev property
103 <literal>ID_PATH</literal>.</para>
798d3a52
ZJS
104 </listitem>
105 </varlistentry>
106 <varlistentry>
107 <term><varname>Driver=</varname></term>
108 <listitem>
5256e00e
TG
109 <para>A whitespace-separated list of shell-style globs matching
110 the driver currently bound to the device,
798d3a52
ZJS
111 as exposed by the udev property <literal>DRIVER</literal>
112 of its parent device, or if that is not set, the
113 driver as exposed by <literal>ethtool -i</literal>
114 of the device itself.</para>
115 </listitem>
116 </varlistentry>
117 <varlistentry>
118 <term><varname>Type=</varname></term>
119 <listitem>
5256e00e
TG
120 <para>A whitespace-separated list of shell-style globs matching
121 the device type, as exposed by the udev
798d3a52
ZJS
122 property <literal>DEVTYPE</literal>.</para>
123 </listitem>
124 </varlistentry>
125 <varlistentry>
126 <term><varname>Host=</varname></term>
127 <listitem>
128 <para>Matches against the hostname or machine
129 ID of the host. See <literal>ConditionHost=</literal> in
130 <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>
131 for details.</para>
132 </listitem>
133 </varlistentry>
134 <varlistentry>
135 <term><varname>Virtualization=</varname></term>
136 <listitem>
137 <para>Checks whether the system is executed in
138 a virtualized environment and optionally test
139 whether it is a specific implementation. See
140 <literal>ConditionVirtualization=</literal> in
141 <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>
142 for details.</para>
143 </listitem>
144 </varlistentry>
145 <varlistentry>
146 <term><varname>KernelCommandLine=</varname></term>
147 <listitem>
148 <para>Checks whether a specific kernel command line option
149 is set (or if prefixed with the exclamation mark unset). See
150 <literal>ConditionKernelCommandLine=</literal> in
151 <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>
152 for details.</para>
153 </listitem>
154 </varlistentry>
5022f08a
LP
155 <varlistentry>
156 <term><varname>KernelVersion=</varname></term>
157 <listitem>
158 <para>Checks whether the kernel version (as reported by <command>uname -r</command>) matches a certain
159 expression (or if prefixed with the exclamation mark does not match it). See
160 <literal>ConditionKernelVersion=</literal> in
161 <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry> for
162 details.
163 </para>
164 </listitem>
165 </varlistentry>
798d3a52
ZJS
166 <varlistentry>
167 <term><varname>Architecture=</varname></term>
168 <listitem>
169 <para>Checks whether the system is running on a specific
170 architecture. See <literal>ConditionArchitecture=</literal>
171 in
172 <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>
173 for details.</para>
174 </listitem>
175 </varlistentry>
176 </variablelist>
1ff28eae 177
798d3a52 178 </refsect1>
102bd40e 179
798d3a52
ZJS
180 <refsect1>
181 <title>[Link] Section Options</title>
102bd40e 182
798d3a52
ZJS
183 <para>The <literal>[Link]</literal> section accepts the following
184 keys:</para>
1ff28eae 185
798d3a52
ZJS
186 <variablelist class='network-directives'>
187 <varlistentry>
188 <term><varname>Description=</varname></term>
189 <listitem>
190 <para>A description of the device.</para>
191 </listitem>
192 </varlistentry>
193 <varlistentry>
194 <term><varname>Alias=</varname></term>
195 <listitem>
196 <para>The <literal>ifalias</literal> is set to this
197 value.</para>
198 </listitem>
199 </varlistentry>
200 <varlistentry>
201 <term><varname>MACAddressPolicy=</varname></term>
202 <listitem>
203 <para>The policy by which the MAC address should be set. The
204 available policies are:
205 </para>
1ff28eae 206
798d3a52
ZJS
207 <variablelist>
208 <varlistentry>
209 <term><literal>persistent</literal></term>
210 <listitem>
211 <para>If the hardware has a persistent MAC address, as
212 most hardware should, and if it is used by the kernel,
213 nothing is done. Otherwise, a new MAC address is
214 generated which is guaranteed to be the same on every
215 boot for the given machine and the given device, but
1c25683e 216 which is otherwise random. This feature depends on ID_NET_NAME_*
a8eaaee7 217 properties to exist for the link. On hardware where these
b938cb90 218 properties are not set, the generation of a persistent MAC address
1c25683e 219 will fail.</para>
798d3a52
ZJS
220 </listitem>
221 </varlistentry>
222 <varlistentry>
223 <term><literal>random</literal></term>
224 <listitem>
225 <para>If the kernel is using a random MAC address,
226 nothing is done. Otherwise, a new address is randomly
227 generated each time the device appears, typically at
b938cb90 228 boot. Either way, the random address will have the
2e229e0c
TG
229 <literal>unicast</literal> and
230 <literal>locally administered</literal> bits set.</para>
798d3a52
ZJS
231 </listitem>
232 </varlistentry>
66d3752e
JK
233 <varlistentry>
234 <term><literal>none</literal></term>
235 <listitem>
236 <para>Keeps the MAC address assigned by the kernel.</para>
237 </listitem>
238 </varlistentry>
798d3a52
ZJS
239 </variablelist>
240 </listitem>
241 </varlistentry>
242 <varlistentry>
243 <term><varname>MACAddress=</varname></term>
244 <listitem>
245 <para>The MAC address to use, if no
246 <literal>MACAddressPolicy=</literal>
247 is specified.</para>
248 </listitem>
249 </varlistentry>
250 <varlistentry>
251 <term><varname>NamePolicy=</varname></term>
252 <listitem>
3907446f
ZJS
253 <para>An ordered, space-separated list of policies by which the interface name should be set.
254 <literal>NamePolicy</literal> may be disabled by specifying <literal>net.ifnames=0</literal> on the
255 kernel command line. Each of the policies may fail, and the first successful one is used. The name
256 is not set directly, but is exported to udev as the property <literal>ID_NET_NAME</literal>, which
257 is, by default, used by a udev rule to set <literal>NAME</literal>. The available policies are:
258 </para>
1ff28eae 259
798d3a52
ZJS
260 <variablelist>
261 <varlistentry>
262 <term><literal>kernel</literal></term>
263 <listitem>
264 <para>If the kernel claims that the name it has set
265 for a device is predictable, then no renaming is
266 performed.</para>
267 </listitem>
268 </varlistentry>
269 <varlistentry>
270 <term><literal>database</literal></term>
271 <listitem>
272 <para>The name is set based on entries in the udev's
273 Hardware Database with the key
274 <literal>ID_NET_NAME_FROM_DATABASE</literal>.
275 </para>
276 </listitem>
277 </varlistentry>
278 <varlistentry>
279 <term><literal>onboard</literal></term>
280 <listitem>
281 <para>The name is set based on information given by
282 the firmware for on-board devices, as exported by the
283 udev property <literal>ID_NET_NAME_ONBOARD</literal>.
284 </para>
285 </listitem>
286 </varlistentry>
287 <varlistentry>
288 <term><literal>slot</literal></term>
289 <listitem>
290 <para>The name is set based on information given by
291 the firmware for hot-plug devices, as exported by the
292 udev property <literal>ID_NET_NAME_SLOT</literal>.
293 </para>
294 </listitem>
295 </varlistentry>
296 <varlistentry>
297 <term><literal>path</literal></term>
298 <listitem>
299 <para>The name is set based on the device's physical
300 location, as exported by the udev property
301 <literal>ID_NET_NAME_PATH</literal>.</para>
302 </listitem>
303 </varlistentry>
304 <varlistentry>
305 <term><literal>mac</literal></term>
306 <listitem>
307 <para>The name is set based on the device's persistent
308 MAC address, as exported by the udev property
309 <literal>ID_NET_NAME_MAC</literal>.</para>
310 </listitem>
311 </varlistentry>
3907446f
ZJS
312 <varlistentry>
313 <term><literal>keep</literal></term>
314 <listitem>
315 <para>If the device already had a name given by userspace (as part of creation of the device
316 or a rename), keep it.</para>
317 </listitem>
318 </varlistentry>
798d3a52
ZJS
319 </variablelist>
320 </listitem>
321 </varlistentry>
322 <varlistentry>
323 <term><varname>Name=</varname></term>
324 <listitem>
325 <para>The interface name to use in case all the
326 policies specified in
327 <varname>NamePolicy=</varname> fail, or in case
328 <varname>NamePolicy=</varname> is missing or
329 disabled.</para>
1b934761
ZJS
330
331 <para>Note that specifying a name that the kernel might use for another
332 interface (for example <literal>eth0</literal>) is dangerous because the
333 name assignment done by udev will race with the assignment done by the
334 kernel, and only one interface may use the name. Depending on the order of
335 operations, either udev or the kernel will win, making the naming
336 unpredictable. It is best to use some different prefix, for example
337 <literal>internal0</literal>/<literal>external0</literal> or
338 <literal>lan0</literal>/<literal>lan1</literal>/<literal>lan3</literal>.
339 </para>
798d3a52
ZJS
340 </listitem>
341 </varlistentry>
342 <varlistentry>
343 <term><varname>MTUBytes=</varname></term>
344 <listitem>
345 <para>The maximum transmission unit in bytes to set for the
346 device. The usual suffixes K, M, G, are supported and are
347 understood to the base of 1024.</para>
348 </listitem>
349 </varlistentry>
350 <varlistentry>
351 <term><varname>BitsPerSecond=</varname></term>
352 <listitem>
353 <para>The speed to set for the device, the value is rounded
354 down to the nearest Mbps. The usual suffixes K, M, G, are
355 supported and are understood to the base of 1000.</para>
356 </listitem>
357 </varlistentry>
358 <varlistentry>
359 <term><varname>Duplex=</varname></term>
360 <listitem>
361 <para>The duplex mode to set for the device. The accepted
362 values are <literal>half</literal> and
363 <literal>full</literal>.</para>
364 </listitem>
365 </varlistentry>
a39f92d3
SS
366 <varlistentry>
367 <term><varname>AutoNegotiation=</varname></term>
368 <listitem>
9b6ffef3 369 <para>Takes a boolean. If set to yes, automatic negotiation of transmission parameters is enabled.
a39f92d3
SS
370 Autonegotiation is a procedure by which two connected ethernet devices choose
371 common transmission parameters, such as speed, duplex mode, and flow control.
9b6ffef3 372 When unset, the kernel's default will be used.</para>
a39f92d3 373
6cf0a204
SS
374 <para>Note that if autonegotiation is enabled, speed, duplex and advertise settings are
375 read-only. If autonegotation is disabled, speed, duplex and advertise settings are writable
a39f92d3
SS
376 if the driver supports multiple link modes.</para>
377 </listitem>
378 </varlistentry>
798d3a52
ZJS
379 <varlistentry>
380 <term><varname>WakeOnLan=</varname></term>
381 <listitem>
382 <para>The Wake-on-LAN policy to set for the device. The
383 supported values are:</para>
1ff28eae 384
798d3a52
ZJS
385 <variablelist>
386 <varlistentry>
387 <term><literal>phy</literal></term>
388 <listitem>
389 <para>Wake on PHY activity.</para>
390 </listitem>
391 </varlistentry>
617da14c
SS
392 <varlistentry>
393 <term><literal>unicast</literal></term>
394 <listitem>
395 <para>Wake on unicast messages.</para>
396 </listitem>
397 </varlistentry>
398 <varlistentry>
399 <term><literal>multicast</literal></term>
400 <listitem>
401 <para>Wake on multicast messages.</para>
402 </listitem>
403 </varlistentry>
404 <varlistentry>
405 <term><literal>broadcast</literal></term>
406 <listitem>
407 <para>Wake on broadcast messages.</para>
408 </listitem>
409 </varlistentry>
410 <varlistentry>
411 <term><literal>arp</literal></term>
412 <listitem>
413 <para>Wake on ARP.</para>
414 </listitem>
415 </varlistentry>
798d3a52
ZJS
416 <varlistentry>
417 <term><literal>magic</literal></term>
418 <listitem>
419 <para>Wake on receipt of a magic packet.
420 </para>
421 </listitem>
422 </varlistentry>
617da14c
SS
423 <varlistentry>
424 <term><literal>secureon</literal></term>
425 <listitem>
426 <para>Enable secureon(tm) password for MagicPacket(tm).
427 </para>
428 </listitem>
429 </varlistentry>
798d3a52
ZJS
430 <varlistentry>
431 <term><literal>off</literal></term>
432 <listitem>
433 <para>Never wake.</para>
434 </listitem>
435 </varlistentry>
436 </variablelist>
c605bd00
ZJS
437
438 <para>Defaults to <literal>off</literal>.</para>
798d3a52
ZJS
439 </listitem>
440 </varlistentry>
593022fa
SS
441 <varlistentry>
442 <term><varname>Port=</varname></term>
443 <listitem>
444 <para>The port option is used to select the device port. The
445 supported values are:</para>
446
447 <variablelist>
448 <varlistentry>
449 <term><literal>tp</literal></term>
450 <listitem>
451 <para>An Ethernet interface using Twisted-Pair cable as the medium.</para>
452 </listitem>
453 </varlistentry>
454 <varlistentry>
455 <term><literal>aui</literal></term>
456 <listitem>
457 <para>Attachment Unit Interface (AUI). Normally used with hubs.
458 </para>
459 </listitem>
460 </varlistentry>
461 <varlistentry>
462 <term><literal>bnc</literal></term>
463 <listitem>
464 <para>An Ethernet interface using BNC connectors and co-axial cable.</para>
465 </listitem>
466 </varlistentry>
467 <varlistentry>
468 <term><literal>mii</literal></term>
469 <listitem>
470 <para>An Ethernet interface using a Media Independent Interface (MII).</para>
471 </listitem>
472 </varlistentry>
473 <varlistentry>
474 <term><literal>fibre</literal></term>
475 <listitem>
476 <para>An Ethernet interface using Optical Fibre as the medium.</para>
477 </listitem>
478 </varlistentry>
479 </variablelist>
480 </listitem>
481 </varlistentry>
6cf0a204
SS
482 <varlistentry>
483 <term><varname>Advertise=</varname></term>
484 <listitem>
485 <para>This sets what speeds and duplex modes of operation are advertised for auto-negotiation.
486 The supported values are:
487
488 <table>
489 <title>Supported advertise values</title>
490 <tgroup cols='3'>
491 <colspec colname='Advertise' />
492 <colspec colname='Speed' />
493 <colspec colname='Duplex Mode' />
494
495 <thead><row>
496 <entry>Advertise</entry>
497 <entry>Speed (Mbps)</entry>
498 <entry>Duplex Mode</entry>
499 </row></thead>
500 <tbody>
501
502 <row><entry><literal>10baset-half</literal></entry>
503 <entry>10</entry><entry>half</entry></row>
504
505 <row><entry><literal>10baset-full</literal></entry>
506 <entry>10</entry><entry>full</entry></row>
507
508 <row><entry><literal>100baset-half</literal></entry>
509 <entry>100</entry><entry>half</entry></row>
510
511 <row><entry><literal>100baset-full</literal></entry>
512 <entry>100</entry><entry>full</entry></row>
513
514 <row><entry><literal>1000baset-half</literal></entry>
515 <entry>1000</entry><entry>half</entry></row>
516
517 <row><entry><literal>1000baset-full</literal></entry>
518 <entry>1000</entry><entry>full</entry></row>
519
520 <row><entry><literal>10000baset-full</literal></entry>
521 <entry>10000</entry><entry>full</entry></row>
522
523 <row><entry><literal>2500basex-full</literal></entry>
524 <entry>2500</entry><entry>full</entry></row>
525
526 <row><entry><literal>1000basekx-full</literal></entry>
527 <entry>1000</entry><entry>full</entry></row>
528
529 <row><entry><literal>10000basekx4-full</literal></entry>
530 <entry>10000</entry><entry>full</entry></row>
531
532 <row><entry><literal>10000basekr-full</literal></entry>
533 <entry>10000</entry><entry>full</entry></row>
534
535 <row><entry><literal>10000baser-fec</literal></entry>
536 <entry>10000</entry><entry>full</entry></row>
537
538 <row><entry><literal>20000basemld2-full</literal></entry>
539 <entry>20000</entry><entry>full</entry></row>
540
541 <row><entry><literal>20000basekr2-full</literal></entry>
542 <entry>20000</entry><entry>full</entry></row>
543 </tbody>
544 </tgroup>
545 </table>
546
547 By default this is unset, i.e. all possible modes will be advertised.
548 This option may be specified more than once, in which case all specified speeds and modes are advertised.
549 If the empty string is assigned to this option, the list is reset, and all prior assignments have no effect.
550 </para>
551 </listitem>
552 </varlistentry>
50725d10
SS
553 <varlistentry>
554 <term><varname>TCPSegmentationOffload=</varname></term>
555 <listitem>
9b6ffef3 556 <para>Takes a boolean. If set to true, the TCP Segmentation Offload (TSO) is enabled.
025314d9 557 When unset, the kernel's default will be used.</para>
50725d10 558 </listitem>
ffa69a04
SS
559 </varlistentry>
560 <varlistentry>
561 <term><varname>TCP6SegmentationOffload=</varname></term>
562 <listitem>
9b6ffef3 563 <para>Takes a boolean. If set to true, the TCP6 Segmentation Offload (tx-tcp6-segmentation) is enabled.
025314d9 564 When unset, the kernel's default will be used.</para>
ffa69a04 565 </listitem>
50725d10
SS
566 </varlistentry>
567 <varlistentry>
568 <term><varname>GenericSegmentationOffload=</varname></term>
569 <listitem>
9b6ffef3 570 <para>Takes a boolean. If set to true, the Generic Segmentation Offload (GSO) is enabled.
025314d9 571 When unset, the kernel's default will be used.</para>
50725d10
SS
572 </listitem>
573 </varlistentry>
f7ea90fb
SS
574 <varlistentry>
575 <term><varname>GenericReceiveOffload=</varname></term>
576 <listitem>
9b6ffef3 577 <para>Takes a boolean. If set to true, the Generic Receive Offload (GRO) is enabled.
025314d9 578 When unset, the kernel's default will be used.</para>
f7ea90fb
SS
579 </listitem>
580 </varlistentry>
581 <varlistentry>
582 <term><varname>LargeReceiveOffload=</varname></term>
583 <listitem>
9b6ffef3 584 <para>Takes a boolean. If set to true, the Large Receive Offload (LRO) is enabled.
025314d9 585 When unset, the kernel's default will be used.</para>
f7ea90fb
SS
586 </listitem>
587 </varlistentry>
5f945202
SS
588 <varlistentry>
589 <term><varname>RxChannels=</varname></term>
590 <listitem>
591 <para>Sets the number of receive channels (a number between 1 and 4294967295) .</para>
592 </listitem>
593 </varlistentry>
594 <varlistentry>
595 <term><varname>TxChannels=</varname></term>
596 <listitem>
597 <para>Sets the number of transmit channels (a number between 1 and 4294967295).</para>
598 </listitem>
599 </varlistentry>
600 <varlistentry>
601 <term><varname>OtherChannels=</varname></term>
602 <listitem>
603 <para>Sets the number of other channels (a number between 1 and 4294967295).</para>
604 </listitem>
605 </varlistentry>
606 <varlistentry>
607 <term><varname>CombinedChannels=</varname></term>
608 <listitem>
609 <para>Sets the number of combined set channels (a number between 1 and 4294967295).</para>
610 </listitem>
611 </varlistentry>
798d3a52
ZJS
612 </variablelist>
613 </refsect1>
1ff28eae 614
798d3a52 615 <refsect1>
b97e7fab
LP
616 <title>Examples</title>
617
618 <example>
619 <title>/usr/lib/systemd/network/99-default.link</title>
620
621 <para>The link file <filename>99-default.link</filename> that is
622 shipped with systemd defines the default naming policy for
623 links.</para>
624
625 <programlisting>[Link]
626NamePolicy=kernel database onboard slot path
627MACAddressPolicy=persistent</programlisting>
628 </example>
629
630 <example>
631 <title>/etc/systemd/network/10-dmz.link</title>
632
633 <para>This example assigns the fixed name
634 <literal>dmz0</literal> to the interface with the MAC address
635 00:a0:de:63:7a:e6:</para>
636
637 <programlisting>[Match]
638MACAddress=00:a0:de:63:7a:e6
639
640[Link]
641Name=dmz0</programlisting>
642 </example>
643
644 <example>
645 <title>/etc/systemd/network/10-internet.link</title>
646
647 <para>This example assigns the fixed name
648 <literal>internet0</literal> to the interface with the device
649 path <literal>pci-0000:00:1a.0-*</literal>:</para>
650
651 <programlisting>[Match]
652Path=pci-0000:00:1a.0-*
653
654[Link]
655Name=internet0</programlisting>
656 </example>
657
798d3a52 658 <example>
6c1695be 659 <title>/etc/systemd/network/25-wireless.link</title>
1ff28eae 660
b97e7fab
LP
661 <para>Here's an overly complex example that shows the use of a large number of [Match] and [Link] settings.</para>
662
798d3a52 663 <programlisting>[Match]
7abaad1a 664MACAddress=12:34:56:78:9a:bc
665Driver=brcmsmac
666Path=pci-0000:02:00.0-*
667Type=wlan
668Virtualization=no
669Host=my-laptop
670Architecture=x86-64
1ff28eae 671
7abaad1a 672[Link]
673Name=wireless0
674MTUBytes=1450
675BitsPerSecond=10M
676WakeOnLan=magic
677MACAddress=cb:a9:87:65:43:21</programlisting>
798d3a52
ZJS
678 </example>
679 </refsect1>
1ff28eae 680
798d3a52
ZJS
681 <refsect1>
682 <title>See Also</title>
683 <para>
684 <citerefentry>
685 <refentrytitle>systemd-udevd.service</refentrytitle><manvolnum>8</manvolnum>
686 </citerefentry>,
687 <citerefentry>
688 <refentrytitle>udevadm</refentrytitle><manvolnum>8</manvolnum>
689 </citerefentry>,
690 <citerefentry>
691 <refentrytitle>systemd.netdev</refentrytitle><manvolnum>5</manvolnum>
692 </citerefentry>,
693 <citerefentry>
694 <refentrytitle>systemd.network</refentrytitle><manvolnum>5</manvolnum>
695 </citerefentry>
696 </para>
697 </refsect1>
1ff28eae
TG
698
699</refentry>