Debian Codegraph @

upstream/debian-trixie/man5/systemd.link.5

raw
1 '\" t
2 .TH "SYSTEMD\&.LINK" "5" "" "systemd 257.13" "systemd.link"
3 .\" -----------------------------------------------------------------
4 .\" * Define some portability stuff
5 .\" -----------------------------------------------------------------
6 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7 .\" http://bugs.debian.org/507673
8 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
9 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10 .ie \n(.g .ds Aq \(aq
11 .el .ds Aq '
12 .\" -----------------------------------------------------------------
13 .\" * set default formatting
14 .\" -----------------------------------------------------------------
15 .\" disable hyphenation
16 .nh
17 .\" disable justification (adjust text to left margin only)
18 .ad l
19 .\" -----------------------------------------------------------------
20 .\" * MAIN CONTENT STARTS HERE *
21 .\" -----------------------------------------------------------------
22 .SH "NAME"
23 systemd.link \- Network device configuration
24 .SH "SYNOPSIS"
25 .PP
26 \fIlink\fR\&.link
27 .SH "DESCRIPTION"
28 .PP
29 A plain ini\-style text file that encodes configuration for matching network devices, used by
30 \fBsystemd-udevd\fR(8)
31 and in particular its
32 \fBnet_setup_link\fR
33 builtin\&. See
34 \fBsystemd.syntax\fR(7)
35 for a general description of the syntax\&.
36 .PP
37 Note that some distributions may incorporate
38 \&.link
39 files in their early boot facilities (e\&.g\&. by including copies of the
40 \&.link
41 files in initramfs)\&. As such it may be necessary to take manual steps to ensure that any local changes are consistent with early\-boot storage facilities\&. The relevant distribution\-specific documentation should be consulted\&.
42 .PP
43 The
44 \&.link
45 files are read from the files located in the system network directory
46 /usr/lib/systemd/network
47 and
48 /usr/local/lib/systemd/network
49 \&\s-2\u[1]\d\s+2, the volatile runtime network directory
50 /run/systemd/network, and the local administration network directory
51 /etc/systemd/network\&. All configuration files are collectively sorted and processed in alphanumeric order, regardless of the directories in which they live\&. However, files with identical filenames replace each other\&. It is recommended that each filename is prefixed with a number smaller than
52 "70"
53 (e\&.g\&.
54 10\-eth0\&.link)\&. Otherwise, the default
55 \&.link
56 files or those generated by
57 \fBsystemd-network-generator.service\fR(8)
58 may take precedence over user configured files\&. Files in
59 /etc/
60 have the highest priority, files in
61 /run/
62 take precedence over files with the same name in
63 /usr/lib/\&. This can be used to override a system\-supplied link file with a local file if needed\&. As a special case, an empty file (file size 0) or symlink with the same name pointing to
64 /dev/null
65 disables the configuration file entirely (it is "masked")\&.
66 .PP
67 Along with the link file
68 foo\&.link, a "drop\-in" directory
69 foo\&.link\&.d/
70 may exist\&. All files with the suffix
71 "\&.conf"
72 from this directory will be merged in the alphanumeric order and parsed after the main file itself has been parsed\&. This is useful to alter or add configuration settings, without having to modify the main configuration file\&. Each drop\-in file must have appropriate section headers\&.
73 .PP
74 In addition to
75 /etc/systemd/network, drop\-in
76 "\&.d"
77 directories can be placed in
78 /usr/lib/systemd/network
79 or
80 /run/systemd/network
81 directories\&. Drop\-in files in
82 /etc/
83 take precedence over those in
84 /run/
85 which in turn take precedence over those in
86 /usr/lib/\&. Drop\-in files under any of these directories take precedence over the main link file wherever located\&.
87 .PP
88 The link file contains a [Match] section, which determines if a given link file may be applied to a given device, as well as a [Link] section specifying how the device should be configured\&. The first (in lexical order) of the link files that matches a given device is applied\&. Note that a default file
89 99\-default\&.link
90 is shipped by the system\&. Any user\-supplied
91 \&.link
92 should hence have a lexically earlier name to be considered at all\&.
93 .PP
94 See
95 \fBudevadm\fR(8)
96 for diagnosing problems with
97 \&.link
98 files\&.
99 .SH "[MATCH] SECTION OPTIONS"
100 .PP
101 A link file is said to match an interface if all matches specified by the [Match] section are satisfied\&. When a link file does not contain valid settings in [Match] section, then the file will match all interfaces and
102 \fBsystemd\-udevd\fR
103 warns about that\&. Hint: to avoid the warning and to make it clear that all interfaces shall be matched, add the following:
104 .sp
105 .if n \{\
106 .RS 4
107 .\}
108 .nf
109 OriginalName=*
110 .fi
111 .if n \{\
112 .RE
113 .\}
114 .sp
115 The first (in alphanumeric order) of the link files that matches a given interface is applied, all later files are ignored, even if they match as well\&. The following keys are accepted:
116 .PP
117 \fIMACAddress=\fR
118 .RS 4
119 A whitespace\-separated list of hardware addresses\&. The acceptable formats are:
120 .PP
121 \fBcolon\-delimited hexadecimal\fR
122 .RS 4
123 Each field must be one byte\&. E\&.g\&.
124 "12:34:56:78:90:ab"
125 or
126 "AA:BB:CC:DD:EE:FF"\&.
127 .sp
128 Added in version 250\&.
129 .RE
130 .PP
131 \fBhyphen\-delimited hexadecimal\fR
132 .RS 4
133 Each field must be one byte\&. E\&.g\&.
134 "12\-34\-56\-78\-90\-ab"
135 or
136 "AA\-BB\-CC\-DD\-EE\-FF"\&.
137 .sp
138 Added in version 250\&.
139 .RE
140 .PP
141 \fBdot\-delimited hexadecimal\fR
142 .RS 4
143 Each field must be two bytes\&. E\&.g\&.
144 "1234\&.5678\&.90ab"
145 or
146 "AABB\&.CCDD\&.EEFF"\&.
147 .sp
148 Added in version 250\&.
149 .RE
150 .PP
151 \fBIPv4 address format\fR
152 .RS 4
153 E\&.g\&.
154 "127\&.0\&.0\&.1"
155 or
156 "192\&.168\&.0\&.1"\&.
157 .sp
158 Added in version 250\&.
159 .RE
160 .PP
161 \fBIPv6 address format\fR
162 .RS 4
163 E\&.g\&.
164 "2001:0db8:85a3::8a2e:0370:7334"
165 or
166 "::1"\&.
167 .sp
168 Added in version 250\&.
169 .RE
170 .sp
171 The total length of each MAC address must be 4 (for IPv4 tunnel), 6 (for Ethernet), 16 (for IPv6 tunnel), or 20 (for InfiniBand)\&. 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 of hardware addresses defined prior to this is reset\&. Defaults to unset\&.
172 .sp
173 Added in version 211\&.
174 .RE
175 .PP
176 \fIPermanentMACAddress=\fR
177 .RS 4
178 A whitespace\-separated list of hardware\*(Aqs permanent addresses\&. While
179 \fIMACAddress=\fR
180 matches the device\*(Aqs current MAC address, this matches the device\*(Aqs permanent MAC address, which may be different from the current one\&. Use full colon\-, hyphen\- or dot\-delimited hexadecimal, or IPv4 or IPv6 address format\&. 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 of hardware addresses defined prior to this is reset\&. Defaults to unset\&.
181 .sp
182 Added in version 245\&.
183 .RE
184 .PP
185 \fIPath=\fR
186 .RS 4
187 A whitespace\-separated list of shell\-style globs matching the persistent path, as exposed by the udev property
188 \fIID_PATH\fR\&.
189 .sp
190 Added in version 211\&.
191 .RE
192 .PP
193 \fIDriver=\fR
194 .RS 4
195 A whitespace\-separated list of shell\-style globs matching the driver currently bound to the device, as exposed by the udev property
196 \fIID_NET_DRIVER\fR
197 of its parent device, or if that is not set, the driver as exposed by
198 \fBethtool \-i\fR
199 of the device itself\&. If the list is prefixed with a "!", the test is inverted\&.
200 .sp
201 Added in version 211\&.
202 .RE
203 .PP
204 \fIType=\fR
205 .RS 4
206 A whitespace\-separated list of shell\-style globs matching the device type, as exposed by
207 \fBnetworkctl list\fR\&. If the list is prefixed with a "!", the test is inverted\&. Some valid values are
208 "ether",
209 "loopback",
210 "wlan",
211 "wwan"\&. Valid types are named either from the udev
212 "DEVTYPE"
213 attribute, or
214 "ARPHRD_"
215 macros in
216 linux/if_arp\&.h, so this is not comprehensive\&.
217 .sp
218 Added in version 211\&.
219 .RE
220 .PP
221 \fIKind=\fR
222 .RS 4
223 A whitespace\-separated list of shell\-style globs matching the device kind, as exposed by
224 \fBnetworkctl status \fR\fB\fIINTERFACE\fR\fR
225 or
226 \fBip \-d link show \fR\fB\fIINTERFACE\fR\fR\&. If the list is prefixed with a "!", the test is inverted\&. Some valid values are
227 "bond",
228 "bridge",
229 "gre",
230 "tun",
231 "veth"\&. Valid kinds are given by netlink\*(Aqs
232 "IFLA_INFO_KIND"
233 attribute, so this is not comprehensive\&.
234 .sp
235 Added in version 251\&.
236 .RE
237 .PP
238 \fIProperty=\fR
239 .RS 4
240 A whitespace\-separated list of udev property names with their values after equals sign ("=")\&. If multiple properties are specified, the test results are ANDed\&. If the list is prefixed with a "!", the test is inverted\&. If a value contains white spaces, then please quote whole key and value pair\&. If a value contains quotation, then please escape the quotation with
241 "\e"\&.
242 .sp
243 Example: if a \&.link file has the following:
244 .sp
245 .if n \{\
246 .RS 4
247 .\}
248 .nf
249 Property=ID_MODEL_ID=9999 "ID_VENDOR_FROM_DATABASE=vendor name" "KEY=with \e"quotation\e""
250 .fi
251 .if n \{\
252 .RE
253 .\}
254 .sp
255 then, the \&.link file matches only when an interface has all the above three properties\&.
256 .sp
257 Added in version 243\&.
258 .RE
259 .PP
260 \fIOriginalName=\fR
261 .RS 4
262 A whitespace\-separated list of shell\-style globs matching the device name, as exposed by the udev property "INTERFACE"\&. This cannot be used to match on names that have already been changed from userspace\&. Caution is advised when matching on kernel\-assigned names, as they are known to be unstable between reboots\&.
263 .sp
264 Added in version 218\&.
265 .RE
266 .PP
267 \fIHost=\fR
268 .RS 4
269 Matches against the hostname or machine ID of the host\&. See
270 \fIConditionHost=\fR
271 in
272 \fBsystemd.unit\fR(5)
273 for details\&. When prefixed with an exclamation mark ("!"), the result is negated\&. If an empty string is assigned, the previously assigned value is cleared\&.
274 .sp
275 Added in version 211\&.
276 .RE
277 .PP
278 \fIVirtualization=\fR
279 .RS 4
280 Checks whether the system is executed in a virtualized environment and optionally test whether it is a specific implementation\&. See
281 \fIConditionVirtualization=\fR
282 in
283 \fBsystemd.unit\fR(5)
284 for details\&. When prefixed with an exclamation mark ("!"), the result is negated\&. If an empty string is assigned, the previously assigned value is cleared\&.
285 .sp
286 Added in version 211\&.
287 .RE
288 .PP
289 \fIKernelCommandLine=\fR
290 .RS 4
291 Checks whether a specific kernel command line option is set\&. See
292 \fIConditionKernelCommandLine=\fR
293 in
294 \fBsystemd.unit\fR(5)
295 for details\&. When prefixed with an exclamation mark ("!"), the result is negated\&. If an empty string is assigned, the previously assigned value is cleared\&.
296 .sp
297 Added in version 211\&.
298 .RE
299 .PP
300 \fIKernelVersion=\fR
301 .RS 4
302 Checks whether the kernel version (as reported by
303 \fBuname \-r\fR) matches a certain expression\&. See
304 \fIConditionKernelVersion=\fR
305 in
306 \fBsystemd.unit\fR(5)
307 for details\&. When prefixed with an exclamation mark ("!"), the result is negated\&. If an empty string is assigned, the previously assigned value is cleared\&.
308 .sp
309 Added in version 237\&.
310 .RE
311 .PP
312 \fICredential=\fR
313 .RS 4
314 Checks whether the specified credential was passed to the
315 systemd\-udevd\&.service
316 service\&. See
317 \m[blue]\fBSystem and Service Credentials\fR\m[]\&\s-2\u[2]\d\s+2
318 for details\&. When prefixed with an exclamation mark ("!"), the result is negated\&. If an empty string is assigned, the previously assigned value is cleared\&.
319 .sp
320 Added in version 252\&.
321 .RE
322 .PP
323 \fIArchitecture=\fR
324 .RS 4
325 Checks whether the system is running on a specific architecture\&. See
326 \fIConditionArchitecture=\fR
327 in
328 \fBsystemd.unit\fR(5)
329 for details\&. When prefixed with an exclamation mark ("!"), the result is negated\&. If an empty string is assigned, the previously assigned value is cleared\&.
330 .sp
331 Added in version 211\&.
332 .RE
333 .PP
334 \fIFirmware=\fR
335 .RS 4
336 Checks whether the system is running on a machine with the specified firmware\&. See
337 \fIConditionFirmware=\fR
338 in
339 \fBsystemd.unit\fR(5)
340 for details\&. When prefixed with an exclamation mark ("!"), the result is negated\&. If an empty string is assigned, the previously assigned value is cleared\&.
341 .sp
342 Added in version 249\&.
343 .RE
344 .SH "[LINK] SECTION OPTIONS"
345 .PP
346 The [Link] section accepts the following keys:
347 .PP
348 \fIDescription=\fR
349 .RS 4
350 A description of the device\&.
351 .sp
352 Added in version 211\&.
353 .RE
354 .PP
355 \fIProperty=\fR
356 .RS 4
357 Set specified udev properties\&. This takes space separated list of key\-value pairs concatenated with equal sign ("=")\&. Example:
358 .sp
359 .if n \{\
360 .RS 4
361 .\}
362 .nf
363 Property=HOGE=foo BAR=baz
364 .fi
365 .if n \{\
366 .RE
367 .\}
368 .sp
369 This option supports simple specifier expansion, see the Specifiers section below\&. This option can be specified multiple times\&. If an empty string is assigned, then the all previous assignments are cleared\&.
370 .sp
371 This setting is useful to configure the
372 "ID_NET_MANAGED_BY="
373 property which declares which network management service shall manage the interface, which is respected by
374 \fBsystemd-networkd\fR(8)
375 and others\&. Use
376 .sp
377 .if n \{\
378 .RS 4
379 .\}
380 .nf
381 Property=ID_NET_MANAGED_BY=io\&.systemd\&.Network
382 .fi
383 .if n \{\
384 .RE
385 .\}
386 .sp
387 to declare explicitly that
388 \fBsystemd\-networkd\fR
389 shall manage the interface, or set the property to something else to declare explicitly it shall not do so\&. See
390 \fBsystemd.network\fR(5)
391 for details how this property is used to match interface names\&.
392 .sp
393 Added in version 256\&.
394 .RE
395 .PP
396 \fIImportProperty=\fR
397 .RS 4
398 Import specified udev properties from the saved database\&. This takes space separated list of property names\&. Example:
399 .sp
400 .if n \{\
401 .RS 4
402 .\}
403 .nf
404 ImportProperty=HOGE BAR
405 .fi
406 .if n \{\
407 .RE
408 .\}
409 .sp
410 This option supports simple specifier expansion, see the Specifiers section below\&. This option can be specified multiple times\&. If an empty string is assigned, then the all previous assignments are cleared\&.
411 .sp
412 If the same property is also set in
413 \fIProperty=\fR
414 in the above, then the imported property value will be overridden by the value specified in
415 \fIProperty=\fR\&.
416 .sp
417 Added in version 256\&.
418 .RE
419 .PP
420 \fIUnsetProperty=\fR
421 .RS 4
422 Unset specified udev properties\&. This takes space separated list of property names\&. Example:
423 .sp
424 .if n \{\
425 .RS 4
426 .\}
427 .nf
428 UnsetProperty=HOGE BAR
429 .fi
430 .if n \{\
431 .RE
432 .\}
433 .sp
434 This option supports simple specifier expansion, see the Specifiers section below\&. This option can be specified multiple times\&. If an empty string is assigned, then the all previous assignments are cleared\&.
435 .sp
436 This setting is applied after
437 \fIImportProperty=\fR
438 and
439 \fIProperty=\fR
440 are applied\&. Hence, if the same property is specified in
441 \fIImportProperty=\fR
442 or
443 \fIProperty=\fR, then the imported or specified property value will be ignored, and the property will be unset\&.
444 .sp
445 Added in version 256\&.
446 .RE
447 .PP
448 \fIAlias=\fR
449 .RS 4
450 The
451 \fIifalias\fR
452 interface property is set to this value\&.
453 .sp
454 Added in version 211\&.
455 .RE
456 .PP
457 \fIMACAddressPolicy=\fR
458 .RS 4
459 The policy by which the MAC address should be set\&. The available policies are:
460 .PP
461 \fBpersistent\fR
462 .RS 4
463 If the hardware has a persistent MAC address, as most hardware should, and if it is used by the kernel, nothing is done\&. Otherwise, a new MAC address is generated which is guaranteed to be the same on every boot for the given machine and the given device, but which is otherwise random\&. This feature depends on ID_NET_NAME_* properties to exist for the link\&. On hardware where these properties are not set, the generation of a persistent MAC address will fail\&.
464 .sp
465 Added in version 211\&.
466 .RE
467 .PP
468 \fBrandom\fR
469 .RS 4
470 If the kernel is using a random MAC address, nothing is done\&. Otherwise, a new address is randomly generated each time the device appears, typically at boot\&. Either way, the random address will have the
471 "unicast"
472 and
473 "locally administered"
474 bits set\&.
475 .sp
476 Added in version 211\&.
477 .RE
478 .PP
479 \fBnone\fR
480 .RS 4
481 Keeps the MAC address assigned by the kernel\&. Or use the MAC address specified in
482 \fIMACAddress=\fR\&.
483 .sp
484 Added in version 227\&.
485 .RE
486 .sp
487 An empty string assignment is equivalent to setting
488 "none"\&.
489 .sp
490 Added in version 211\&.
491 .RE
492 .PP
493 \fIMACAddress=\fR
494 .RS 4
495 The interface MAC address to use\&. For this setting to take effect,
496 \fIMACAddressPolicy=\fR
497 must either be unset, empty, or
498 "none"\&.
499 .sp
500 Added in version 211\&.
501 .RE
502 .PP
503 \fINamePolicy=\fR
504 .RS 4
505 An ordered, space\-separated list of policies by which the interface name should be set\&.
506 \fINamePolicy=\fR
507 may be disabled by specifying
508 \fBnet\&.ifnames=0\fR
509 on the kernel command line\&. Each of the policies may fail, and the first successful one is used\&. The name is not set directly, but is exported to udev as the property
510 \fBID_NET_NAME\fR, which is, by default, used by a
511 \fBudev\fR(7), rule to set
512 \fINAME\fR\&. The available policies are:
513 .PP
514 \fBkernel\fR
515 .RS 4
516 If the kernel claims that the name it has set for a device is predictable, then no renaming is performed\&.
517 .sp
518 Added in version 216\&.
519 .RE
520 .PP
521 \fBdatabase\fR
522 .RS 4
523 The name is set based on entries in the udev\*(Aqs Hardware Database with the key
524 \fIID_NET_NAME_FROM_DATABASE\fR\&.
525 .sp
526 Added in version 211\&.
527 .RE
528 .PP
529 \fBonboard\fR
530 .RS 4
531 The name is set based on information given by the firmware for on\-board devices, as exported by the udev property
532 \fIID_NET_NAME_ONBOARD\fR\&. See
533 \fBsystemd.net-naming-scheme\fR(7)\&.
534 .sp
535 Added in version 211\&.
536 .RE
537 .PP
538 \fBslot\fR
539 .RS 4
540 The name is set based on information given by the firmware for hot\-plug devices, as exported by the udev property
541 \fIID_NET_NAME_SLOT\fR\&. See
542 \fBsystemd.net-naming-scheme\fR(7)\&.
543 .sp
544 Added in version 211\&.
545 .RE
546 .PP
547 \fBpath\fR
548 .RS 4
549 The name is set based on the device\*(Aqs physical location, as exported by the udev property
550 \fIID_NET_NAME_PATH\fR\&. See
551 \fBsystemd.net-naming-scheme\fR(7)\&.
552 .sp
553 Added in version 211\&.
554 .RE
555 .PP
556 \fBmac\fR
557 .RS 4
558 The name is set based on the device\*(Aqs persistent MAC address, as exported by the udev property
559 \fIID_NET_NAME_MAC\fR\&. See
560 \fBsystemd.net-naming-scheme\fR(7)\&.
561 .sp
562 Added in version 211\&.
563 .RE
564 .PP
565 \fBkeep\fR
566 .RS 4
567 If the device already had a name given by userspace (as part of creation of the device or a rename), keep it\&.
568 .sp
569 Added in version 241\&.
570 .RE
571 .sp
572 Added in version 211\&.
573 .RE
574 .PP
575 \fIName=\fR
576 .RS 4
577 The interface name to use\&. This option has lower precedence than
578 \fINamePolicy=\fR, so for this setting to take effect,
579 \fINamePolicy=\fR
580 must either be unset, empty, disabled, or all policies configured there must fail\&. Also see the example below with
581 "Name=dmz0"\&.
582 .sp
583 Note that specifying a name that the kernel might use for another interface (for example
584 "eth0") is dangerous because the name assignment done by udev will race with the assignment done by the kernel, and only one interface may use the name\&. Depending on the order of operations, either udev or the kernel will win, making the naming unpredictable\&. It is best to use some different prefix, for example
585 "internal0"/"external0"
586 or
587 "lan0"/"lan1"/"lan3"\&.
588 .sp
589 Interface names must have a minimum length of 1 character and a maximum length of 15 characters, and may contain any 7bit ASCII character, with the exception of control characters,
590 ":",
591 "/"
592 and
593 "%"\&. While
594 "\&."
595 is an allowed character, it is recommended to avoid it when naming interfaces as various tools (such as
596 \fBresolvconf\fR(1)) use it as separator character\&. Also, fully numeric interface names are not allowed (in order to avoid ambiguity with interface specification by numeric indexes), nor are the special strings
597 "\&.",
598 "\&.\&.",
599 "all"
600 and
601 "default"\&.
602 .sp
603 Added in version 211\&.
604 .RE
605 .PP
606 \fIAlternativeNamesPolicy=\fR
607 .RS 4
608 A space\-separated list of policies by which the interface\*(Aqs alternative names should be set\&. Each of the policies may fail, and all successful policies are used\&. The available policies are
609 "database",
610 "onboard",
611 "slot",
612 "path", and
613 "mac"\&. If the kernel does not support the alternative names, then this setting will be ignored\&.
614 .sp
615 Added in version 245\&.
616 .RE
617 .PP
618 \fIAlternativeName=\fR
619 .RS 4
620 The alternative interface name to use\&. This option can be specified multiple times\&. If the empty string is assigned to this option, the list is reset, and all prior assignments have no effect\&. If the kernel does not support the alternative names, then this setting will be ignored\&.
621 .sp
622 Alternative interface names may be used to identify interfaces in various tools\&. In contrast to the primary name (as configured with
623 \fIName=\fR
624 above) there may be multiple alternative names referring to the same interface\&. Alternative names may have a maximum length of 127 characters, in contrast to the 15 allowed for the primary interface name, but otherwise are subject to the same naming constraints\&.
625 .sp
626 Added in version 245\&.
627 .RE
628 .PP
629 \fITransmitQueues=\fR
630 .RS 4
631 Specifies the device\*(Aqs number of transmit queues\&. An integer in the range 1\&...4096\&. When unset, the kernel\*(Aqs default will be used\&.
632 .sp
633 Added in version 248\&.
634 .RE
635 .PP
636 \fIReceiveQueues=\fR
637 .RS 4
638 Specifies the device\*(Aqs number of receive queues\&. An integer in the range 1\&...4096\&. When unset, the kernel\*(Aqs default will be used\&.
639 .sp
640 Added in version 248\&.
641 .RE
642 .PP
643 \fITransmitQueueLength=\fR
644 .RS 4
645 Specifies the transmit queue length of the device in number of packets\&. An unsigned integer in the range 0\&...4294967294\&. When unset, the kernel\*(Aqs default will be used\&.
646 .sp
647 Added in version 248\&.
648 .RE
649 .PP
650 \fIMTUBytes=\fR
651 .RS 4
652 The maximum transmission unit in bytes to set for the device\&. The usual suffixes K, M, G are supported and are understood to the base of 1024\&.
653 .sp
654 Added in version 211\&.
655 .RE
656 .PP
657 \fIBitsPerSecond=\fR
658 .RS 4
659 The speed to set for the device, the value is rounded down to the nearest Mbps\&. The usual suffixes K, M, G are supported and are understood to the base of 1000\&.
660 .sp
661 Added in version 211\&.
662 .RE
663 .PP
664 \fIDuplex=\fR
665 .RS 4
666 The duplex mode to set for the device\&. The accepted values are
667 \fBhalf\fR
668 and
669 \fBfull\fR\&.
670 .sp
671 Added in version 211\&.
672 .RE
673 .PP
674 \fIAutoNegotiation=\fR
675 .RS 4
676 Takes a boolean\&. If set to yes, automatic negotiation of transmission parameters is enabled\&. Autonegotiation is a procedure by which two connected ethernet devices choose common transmission parameters, such as speed, duplex mode, and flow control\&. When unset, the kernel\*(Aqs default will be used\&.
677 .sp
678 Note that if autonegotiation is enabled, speed and duplex settings are read\-only\&. If autonegotiation is disabled, speed and duplex settings are writable if the driver supports multiple link modes\&.
679 .sp
680 Added in version 233\&.
681 .RE
682 .PP
683 \fIWakeOnLan=\fR
684 .RS 4
685 The Wake\-on\-LAN policy to set for the device\&. Takes the special value
686 "off"
687 which disables Wake\-on\-LAN, or space separated list of the following words:
688 .PP
689 \fBphy\fR
690 .RS 4
691 Wake on PHY activity\&.
692 .sp
693 Added in version 211\&.
694 .RE
695 .PP
696 \fBunicast\fR
697 .RS 4
698 Wake on unicast messages\&.
699 .sp
700 Added in version 235\&.
701 .RE
702 .PP
703 \fBmulticast\fR
704 .RS 4
705 Wake on multicast messages\&.
706 .sp
707 Added in version 235\&.
708 .RE
709 .PP
710 \fBbroadcast\fR
711 .RS 4
712 Wake on broadcast messages\&.
713 .sp
714 Added in version 235\&.
715 .RE
716 .PP
717 \fBarp\fR
718 .RS 4
719 Wake on ARP\&.
720 .sp
721 Added in version 235\&.
722 .RE
723 .PP
724 \fBmagic\fR
725 .RS 4
726 Wake on receipt of a magic packet\&.
727 .sp
728 Added in version 211\&.
729 .RE
730 .PP
731 \fBsecureon\fR
732 .RS 4
733 Enable SecureOn password for MagicPacket\&. Implied when
734 \fIWakeOnLanPassword=\fR
735 is specified\&. If specified without
736 \fIWakeOnLanPassword=\fR
737 option, then the password is read from the credential
738 "\fILINK\fR\&.link\&.wol\&.password"
739 (e\&.g\&.,
740 "60\-foo\&.link\&.wol\&.password"), and if the credential not found, then read from
741 "wol\&.password"\&. See
742 \fIImportCredential=\fR/\fILoadCredential=\fR/\fISetCredential=\fR
743 in
744 \fBsystemd.exec\fR(5)
745 for details\&. The password in the credential, must be 6 bytes in hex format with each byte separated by a colon (":") like an Ethernet MAC address, e\&.g\&.,
746 "aa:bb:cc:dd:ee:ff"\&.
747 .sp
748 Added in version 235\&.
749 .RE
750 .sp
751 Defaults to unset, and the device\*(Aqs default will be used\&. This setting can be specified multiple times\&. If an empty string is assigned, then the all previous assignments are cleared\&.
752 .sp
753 Added in version 211\&.
754 .RE
755 .PP
756 \fIWakeOnLanPassword=\fR
757 .RS 4
758 Specifies the SecureOn password for MagicPacket\&. Takes an absolute path to a regular file or an
759 \fBAF_UNIX\fR
760 stream socket, or the plain password\&. When a path to a regular file is specified, the password is read from it\&. When an
761 \fBAF_UNIX\fR
762 stream socket is specified, a connection is made to it and the password is read from it\&. The password must be 6 bytes in hex format with each byte separated by a colon (":") like an Ethernet MAC address, e\&.g\&.,
763 "aa:bb:cc:dd:ee:ff"\&. This implies
764 \fIWakeOnLan=secureon\fR\&. Defaults to unset, and the current value will not be changed\&.
765 .sp
766 Added in version 250\&.
767 .RE
768 .PP
769 \fIPort=\fR
770 .RS 4
771 The port option is used to select the device port\&. The supported values are:
772 .PP
773 \fBtp\fR
774 .RS 4
775 An Ethernet interface using Twisted\-Pair cable as the medium\&.
776 .sp
777 Added in version 234\&.
778 .RE
779 .PP
780 \fBaui\fR
781 .RS 4
782 Attachment Unit Interface (AUI)\&. Normally used with hubs\&.
783 .sp
784 Added in version 234\&.
785 .RE
786 .PP
787 \fBbnc\fR
788 .RS 4
789 An Ethernet interface using BNC connectors and co\-axial cable\&.
790 .sp
791 Added in version 234\&.
792 .RE
793 .PP
794 \fBmii\fR
795 .RS 4
796 An Ethernet interface using a Media Independent Interface (MII)\&.
797 .sp
798 Added in version 234\&.
799 .RE
800 .PP
801 \fBfibre\fR
802 .RS 4
803 An Ethernet interface using Optical Fibre as the medium\&.
804 .sp
805 Added in version 234\&.
806 .RE
807 .sp
808 Added in version 234\&.
809 .RE
810 .PP
811 \fIAdvertise=\fR
812 .RS 4
813 This sets what speeds and duplex modes of operation are advertised for auto\-negotiation\&. This implies
814 "AutoNegotiation=yes"\&. The supported values are:
815 .sp
816 .it 1 an-trap
817 .nr an-no-space-flag 1
818 .nr an-break-flag 1
819 .br
820 .B Table\ \&1.\ \&Supported advertise values
821 .TS
822 allbox tab(:);
823 lB lB lB.
824 T{
825 Advertise
826 T}:T{
827 Speed (Mbps)
828 T}:T{
829 Duplex Mode
830 T}
831 .T&
832 l l l
833 l l l
834 l l l
835 l l l
836 l l l
837 l l l
838 l l l
839 l l l
840 l l l
841 l l l
842 l l l
843 l l l
844 l l l
845 l l l
846 l l l
847 l l l
848 l l l
849 l l l
850 l l l
851 l l l
852 l l l
853 l l l
854 l l l
855 l l l
856 l l l
857 l l l
858 l l l
859 l l l
860 l l l
861 l l l
862 l l l
863 l l l
864 l l l
865 l l l
866 l l l
867 l l l
868 l l l
869 l l l
870 l l l
871 l l l
872 l l l
873 l l l
874 l l l
875 l l l
876 l l l
877 l l l
878 l l l
879 l l l
880 l l l
881 l l l
882 l l l
883 l l l
884 l l l
885 l l l
886 l l l
887 l l l
888 l l l
889 l l l
890 l l l
891 l l l
892 l l l
893 l l l
894 l l l
895 l l l
896 l l l
897 l l l
898 l l l
899 l l l
900 l l l
901 l l l
902 l l l
903 l l l
904 l l l
905 l l l
906 l l l
907 l l l
908 l l l
909 l l l
910 l l l
911 l l l
912 l l l
913 l l l
914 l l l
915 l l l
916 l l l
917 l l l
918 l l l
919 l l l
920 l l l
921 l l l
922 l l l
923 l l l
924 l l l
925 l l l
926 l l l
927 l l l
928 l l l
929 l l l
930 l l l
931 l l l
932 l l l
933 l l l
934 l l l
935 l l l
936 l l l
937 l l l
938 l l l
939 l l l
940 l l l
941 l l l
942 l l l
943 l l l
944 l l l
945 l l l
946 l l l
947 l l l
948 l l l
949 l l l
950 l l l
951 l l l
952 l l l.
953 T{
954 \fB10baset\-full\fR
955 T}:T{
956 10
957 T}:T{
958 full
959 T}
960 T{
961 \fB10baset1brr\-full\fR
962 T}:T{
963 10
964 T}:T{
965 full
966 T}
967 T{
968 \fB10baset1l\-full\fR
969 T}:T{
970 10
971 T}:T{
972 full
973 T}
974 T{
975 \fB10baset1s\-full\fR
976 T}:T{
977 10
978 T}:T{
979 full
980 T}
981 T{
982 \fB10baset\-half\fR
983 T}:T{
984 10
985 T}:T{
986 half
987 T}
988 T{
989 \fB10baset1s\-half\fR
990 T}:T{
991 10
992 T}:T{
993 half
994 T}
995 T{
996 \fB10baset1s\-p2mp\-half\fR
997 T}:T{
998 10
999 T}:T{
1000 half
1001 T}
1002 T{
1003 \fB100basefx\-full\fR
1004 T}:T{
1005 100
1006 T}:T{
1007 full
1008 T}
1009 T{
1010 \fB100baset\-full\fR
1011 T}:T{
1012 100
1013 T}:T{
1014 full
1015 T}
1016 T{
1017 \fB100baset1\-full\fR
1018 T}:T{
1019 100
1020 T}:T{
1021 full
1022 T}
1023 T{
1024 \fB100basefx\-half\fR
1025 T}:T{
1026 100
1027 T}:T{
1028 half
1029 T}
1030 T{
1031 \fB100baset\-half\fR
1032 T}:T{
1033 100
1034 T}:T{
1035 half
1036 T}
1037 T{
1038 \fB1000basekx\-full\fR
1039 T}:T{
1040 1000
1041 T}:T{
1042 full
1043 T}
1044 T{
1045 \fB1000baset\-full\fR
1046 T}:T{
1047 1000
1048 T}:T{
1049 full
1050 T}
1051 T{
1052 \fB1000baset1\-full\fR
1053 T}:T{
1054 1000
1055 T}:T{
1056 full
1057 T}
1058 T{
1059 \fB1000basex\-full\fR
1060 T}:T{
1061 1000
1062 T}:T{
1063 full
1064 T}
1065 T{
1066 \fB1000baset\-half\fR
1067 T}:T{
1068 1000
1069 T}:T{
1070 half
1071 T}
1072 T{
1073 \fB2500baset\-full\fR
1074 T}:T{
1075 2500
1076 T}:T{
1077 full
1078 T}
1079 T{
1080 \fB2500basex\-full\fR
1081 T}:T{
1082 2500
1083 T}:T{
1084 full
1085 T}
1086 T{
1087 \fB5000baset\-full\fR
1088 T}:T{
1089 5000
1090 T}:T{
1091 full
1092 T}
1093 T{
1094 \fB10000baser\-fec\fR
1095 T}:T{
1096 10000
1097 T}:T{
1098 \ \&
1099 T}
1100 T{
1101 \fB10000basecr\-full\fR
1102 T}:T{
1103 10000
1104 T}:T{
1105 full
1106 T}
1107 T{
1108 \fB10000baseer\-full\fR
1109 T}:T{
1110 10000
1111 T}:T{
1112 full
1113 T}
1114 T{
1115 \fB10000basekr\-full\fR
1116 T}:T{
1117 10000
1118 T}:T{
1119 full
1120 T}
1121 T{
1122 \fB10000basekx4\-full\fR
1123 T}:T{
1124 10000
1125 T}:T{
1126 full
1127 T}
1128 T{
1129 \fB10000baselr\-full\fR
1130 T}:T{
1131 10000
1132 T}:T{
1133 full
1134 T}
1135 T{
1136 \fB10000baselrm\-full\fR
1137 T}:T{
1138 10000
1139 T}:T{
1140 full
1141 T}
1142 T{
1143 \fB10000basesr\-full\fR
1144 T}:T{
1145 10000
1146 T}:T{
1147 full
1148 T}
1149 T{
1150 \fB10000baset\-full\fR
1151 T}:T{
1152 10000
1153 T}:T{
1154 full
1155 T}
1156 T{
1157 \fB20000basekr2\-full\fR
1158 T}:T{
1159 20000
1160 T}:T{
1161 full
1162 T}
1163 T{
1164 \fB20000basemld2\-full\fR
1165 T}:T{
1166 20000
1167 T}:T{
1168 full
1169 T}
1170 T{
1171 \fB25000basecr\-full\fR
1172 T}:T{
1173 25000
1174 T}:T{
1175 full
1176 T}
1177 T{
1178 \fB25000basekr\-full\fR
1179 T}:T{
1180 25000
1181 T}:T{
1182 full
1183 T}
1184 T{
1185 \fB25000basesr\-full\fR
1186 T}:T{
1187 25000
1188 T}:T{
1189 full
1190 T}
1191 T{
1192 \fB40000basecr4\-full\fR
1193 T}:T{
1194 40000
1195 T}:T{
1196 full
1197 T}
1198 T{
1199 \fB40000basekr4\-full\fR
1200 T}:T{
1201 40000
1202 T}:T{
1203 full
1204 T}
1205 T{
1206 \fB40000baselr4\-full\fR
1207 T}:T{
1208 40000
1209 T}:T{
1210 full
1211 T}
1212 T{
1213 \fB40000basesr4\-full\fR
1214 T}:T{
1215 40000
1216 T}:T{
1217 full
1218 T}
1219 T{
1220 \fB50000basecr\-full\fR
1221 T}:T{
1222 50000
1223 T}:T{
1224 full
1225 T}
1226 T{
1227 \fB50000basecr2\-full\fR
1228 T}:T{
1229 50000
1230 T}:T{
1231 full
1232 T}
1233 T{
1234 \fB50000basedr\-full\fR
1235 T}:T{
1236 50000
1237 T}:T{
1238 full
1239 T}
1240 T{
1241 \fB50000basekr\-full\fR
1242 T}:T{
1243 50000
1244 T}:T{
1245 full
1246 T}
1247 T{
1248 \fB50000basekr2\-full\fR
1249 T}:T{
1250 50000
1251 T}:T{
1252 full
1253 T}
1254 T{
1255 \fB50000baselr\-er\-fr\-full\fR
1256 T}:T{
1257 50000
1258 T}:T{
1259 full
1260 T}
1261 T{
1262 \fB50000basesr\-full\fR
1263 T}:T{
1264 50000
1265 T}:T{
1266 full
1267 T}
1268 T{
1269 \fB50000basesr2\-full\fR
1270 T}:T{
1271 50000
1272 T}:T{
1273 full
1274 T}
1275 T{
1276 \fB56000basecr4\-full\fR
1277 T}:T{
1278 56000
1279 T}:T{
1280 full
1281 T}
1282 T{
1283 \fB56000basekr4\-full\fR
1284 T}:T{
1285 56000
1286 T}:T{
1287 full
1288 T}
1289 T{
1290 \fB56000baselr4\-full\fR
1291 T}:T{
1292 56000
1293 T}:T{
1294 full
1295 T}
1296 T{
1297 \fB56000basesr4\-full\fR
1298 T}:T{
1299 56000
1300 T}:T{
1301 full
1302 T}
1303 T{
1304 \fB100000basecr\-full\fR
1305 T}:T{
1306 100000
1307 T}:T{
1308 full
1309 T}
1310 T{
1311 \fB100000basecr2\-full\fR
1312 T}:T{
1313 100000
1314 T}:T{
1315 full
1316 T}
1317 T{
1318 \fB100000basecr4\-full\fR
1319 T}:T{
1320 100000
1321 T}:T{
1322 full
1323 T}
1324 T{
1325 \fB100000basedr\-full\fR
1326 T}:T{
1327 100000
1328 T}:T{
1329 full
1330 T}
1331 T{
1332 \fB100000basedr2\-full\fR
1333 T}:T{
1334 100000
1335 T}:T{
1336 full
1337 T}
1338 T{
1339 \fB100000basekr\-full\fR
1340 T}:T{
1341 100000
1342 T}:T{
1343 full
1344 T}
1345 T{
1346 \fB100000basekr2\-full\fR
1347 T}:T{
1348 100000
1349 T}:T{
1350 full
1351 T}
1352 T{
1353 \fB100000basekr4\-full\fR
1354 T}:T{
1355 100000
1356 T}:T{
1357 full
1358 T}
1359 T{
1360 \fB100000baselr\-er\-fr\-full\fR
1361 T}:T{
1362 100000
1363 T}:T{
1364 full
1365 T}
1366 T{
1367 \fB100000baselr2\-er2\-fr2\-full\fR
1368 T}:T{
1369 100000
1370 T}:T{
1371 full
1372 T}
1373 T{
1374 \fB100000baselr4\-er4\-full\fR
1375 T}:T{
1376 100000
1377 T}:T{
1378 full
1379 T}
1380 T{
1381 \fB100000basesr\-full\fR
1382 T}:T{
1383 100000
1384 T}:T{
1385 full
1386 T}
1387 T{
1388 \fB100000basesr2\-full\fR
1389 T}:T{
1390 100000
1391 T}:T{
1392 full
1393 T}
1394 T{
1395 \fB100000basesr4\-full\fR
1396 T}:T{
1397 100000
1398 T}:T{
1399 full
1400 T}
1401 T{
1402 \fB200000basecr\-full\fR
1403 T}:T{
1404 200000
1405 T}:T{
1406 full
1407 T}
1408 T{
1409 \fB200000basecr2\-full\fR
1410 T}:T{
1411 200000
1412 T}:T{
1413 full
1414 T}
1415 T{
1416 \fB200000basecr4\-full\fR
1417 T}:T{
1418 200000
1419 T}:T{
1420 full
1421 T}
1422 T{
1423 \fB200000basedr\-2\-full\fR
1424 T}:T{
1425 200000
1426 T}:T{
1427 full
1428 T}
1429 T{
1430 \fB200000basedr\-full\fR
1431 T}:T{
1432 200000
1433 T}:T{
1434 full
1435 T}
1436 T{
1437 \fB200000basedr2\-full\fR
1438 T}:T{
1439 200000
1440 T}:T{
1441 full
1442 T}
1443 T{
1444 \fB200000basedr4\-full\fR
1445 T}:T{
1446 200000
1447 T}:T{
1448 full
1449 T}
1450 T{
1451 \fB200000basekr\-full\fR
1452 T}:T{
1453 200000
1454 T}:T{
1455 full
1456 T}
1457 T{
1458 \fB200000basekr2\-full\fR
1459 T}:T{
1460 200000
1461 T}:T{
1462 full
1463 T}
1464 T{
1465 \fB200000basekr4\-full\fR
1466 T}:T{
1467 200000
1468 T}:T{
1469 full
1470 T}
1471 T{
1472 \fB200000baselr2\-er2\-fr2\-full\fR
1473 T}:T{
1474 200000
1475 T}:T{
1476 full
1477 T}
1478 T{
1479 \fB200000baselr4\-er4\-fr4\-full\fR
1480 T}:T{
1481 200000
1482 T}:T{
1483 full
1484 T}
1485 T{
1486 \fB200000basesr\-full\fR
1487 T}:T{
1488 200000
1489 T}:T{
1490 full
1491 T}
1492 T{
1493 \fB200000basesr2\-full\fR
1494 T}:T{
1495 200000
1496 T}:T{
1497 full
1498 T}
1499 T{
1500 \fB200000basesr4\-full\fR
1501 T}:T{
1502 200000
1503 T}:T{
1504 full
1505 T}
1506 T{
1507 \fB200000basevr\-full\fR
1508 T}:T{
1509 200000
1510 T}:T{
1511 full
1512 T}
1513 T{
1514 \fB400000basecr2\-full\fR
1515 T}:T{
1516 400000
1517 T}:T{
1518 full
1519 T}
1520 T{
1521 \fB400000basecr4\-full\fR
1522 T}:T{
1523 400000
1524 T}:T{
1525 full
1526 T}
1527 T{
1528 \fB400000basecr8\-full\fR
1529 T}:T{
1530 400000
1531 T}:T{
1532 full
1533 T}
1534 T{
1535 \fB400000basedr2\-2\-full\fR
1536 T}:T{
1537 400000
1538 T}:T{
1539 full
1540 T}
1541 T{
1542 \fB400000basedr2\-full\fR
1543 T}:T{
1544 400000
1545 T}:T{
1546 full
1547 T}
1548 T{
1549 \fB400000basedr4\-full\fR
1550 T}:T{
1551 400000
1552 T}:T{
1553 full
1554 T}
1555 T{
1556 \fB400000basedr8\-full\fR
1557 T}:T{
1558 400000
1559 T}:T{
1560 full
1561 T}
1562 T{
1563 \fB400000basekr2\-full\fR
1564 T}:T{
1565 400000
1566 T}:T{
1567 full
1568 T}
1569 T{
1570 \fB400000basekr4\-full\fR
1571 T}:T{
1572 400000
1573 T}:T{
1574 full
1575 T}
1576 T{
1577 \fB400000basekr8\-full\fR
1578 T}:T{
1579 400000
1580 T}:T{
1581 full
1582 T}
1583 T{
1584 \fB400000baselr4\-er4\-fr4\-full\fR
1585 T}:T{
1586 400000
1587 T}:T{
1588 full
1589 T}
1590 T{
1591 \fB400000baselr8\-er8\-fr8\-full\fR
1592 T}:T{
1593 400000
1594 T}:T{
1595 full
1596 T}
1597 T{
1598 \fB400000basesr2\-full\fR
1599 T}:T{
1600 400000
1601 T}:T{
1602 full
1603 T}
1604 T{
1605 \fB400000basesr4\-full\fR
1606 T}:T{
1607 400000
1608 T}:T{
1609 full
1610 T}
1611 T{
1612 \fB400000basesr8\-full\fR
1613 T}:T{
1614 400000
1615 T}:T{
1616 full
1617 T}
1618 T{
1619 \fB400000basevr2\-full\fR
1620 T}:T{
1621 400000
1622 T}:T{
1623 full
1624 T}
1625 T{
1626 \fB800000basecr4\-full\fR
1627 T}:T{
1628 800000
1629 T}:T{
1630 full
1631 T}
1632 T{
1633 \fB800000basecr8\-full\fR
1634 T}:T{
1635 800000
1636 T}:T{
1637 full
1638 T}
1639 T{
1640 \fB800000basedr4\-2\-full\fR
1641 T}:T{
1642 800000
1643 T}:T{
1644 full
1645 T}
1646 T{
1647 \fB800000basedr4\-full\fR
1648 T}:T{
1649 800000
1650 T}:T{
1651 full
1652 T}
1653 T{
1654 \fB800000basedr8\-2\-full\fR
1655 T}:T{
1656 800000
1657 T}:T{
1658 full
1659 T}
1660 T{
1661 \fB800000basedr8\-full\fR
1662 T}:T{
1663 800000
1664 T}:T{
1665 full
1666 T}
1667 T{
1668 \fB800000basekr4\-full\fR
1669 T}:T{
1670 800000
1671 T}:T{
1672 full
1673 T}
1674 T{
1675 \fB800000basekr8\-full\fR
1676 T}:T{
1677 800000
1678 T}:T{
1679 full
1680 T}
1681 T{
1682 \fB800000basesr4\-full\fR
1683 T}:T{
1684 800000
1685 T}:T{
1686 full
1687 T}
1688 T{
1689 \fB800000basesr8\-full\fR
1690 T}:T{
1691 800000
1692 T}:T{
1693 full
1694 T}
1695 T{
1696 \fB800000basevr4\-full\fR
1697 T}:T{
1698 800000
1699 T}:T{
1700 full
1701 T}
1702 T{
1703 \fB800000basevr8\-full\fR
1704 T}:T{
1705 800000
1706 T}:T{
1707 full
1708 T}
1709 T{
1710 \fBasym\-pause\fR
1711 T}:T{
1712 \ \&
1713 T}:T{
1714 \ \&
1715 T}
1716 T{
1717 \fBaui\fR
1718 T}:T{
1719 \ \&
1720 T}:T{
1721 \ \&
1722 T}
1723 T{
1724 \fBautonegotiation\fR
1725 T}:T{
1726 \ \&
1727 T}:T{
1728 \ \&
1729 T}
1730 T{
1731 \fBbackplane\fR
1732 T}:T{
1733 \ \&
1734 T}:T{
1735 \ \&
1736 T}
1737 T{
1738 \fBbnc\fR
1739 T}:T{
1740 \ \&
1741 T}:T{
1742 \ \&
1743 T}
1744 T{
1745 \fBfec\-baser\fR
1746 T}:T{
1747 \ \&
1748 T}:T{
1749 \ \&
1750 T}
1751 T{
1752 \fBfec\-llrs\fR
1753 T}:T{
1754 \ \&
1755 T}:T{
1756 \ \&
1757 T}
1758 T{
1759 \fBfec\-none\fR
1760 T}:T{
1761 \ \&
1762 T}:T{
1763 \ \&
1764 T}
1765 T{
1766 \fBfec\-rs\fR
1767 T}:T{
1768 \ \&
1769 T}:T{
1770 \ \&
1771 T}
1772 T{
1773 \fBfibre\fR
1774 T}:T{
1775 \ \&
1776 T}:T{
1777 \ \&
1778 T}
1779 T{
1780 \fBmii\fR
1781 T}:T{
1782 \ \&
1783 T}:T{
1784 \ \&
1785 T}
1786 T{
1787 \fBpause\fR
1788 T}:T{
1789 \ \&
1790 T}:T{
1791 \ \&
1792 T}
1793 T{
1794 \fBtp\fR
1795 T}:T{
1796 \ \&
1797 T}:T{
1798 \ \&
1799 T}
1800 .TE
1801 .sp 1
1802 By default, this is unset, i\&.e\&. all possible modes will be advertised\&. This option may be specified more than once, in which case all specified speeds and modes are advertised\&. If the empty string is assigned to this option, the list is reset, and all prior assignments have no effect\&.
1803 .sp
1804 Added in version 240\&.
1805 .RE
1806 .PP
1807 \fIReceiveChecksumOffload=\fR
1808 .RS 4
1809 Takes a boolean\&. If set to true, hardware offload for checksumming of ingress network packets is enabled\&. When unset, the kernel\*(Aqs default will be used\&.
1810 .sp
1811 Added in version 245\&.
1812 .RE
1813 .PP
1814 \fITransmitChecksumOffload=\fR
1815 .RS 4
1816 Takes a boolean\&. If set to true, hardware offload for checksumming of egress network packets is enabled\&. When unset, the kernel\*(Aqs default will be used\&.
1817 .sp
1818 Added in version 245\&.
1819 .RE
1820 .PP
1821 \fITCPSegmentationOffload=\fR
1822 .RS 4
1823 Takes a boolean\&. If set to true, TCP Segmentation Offload (TSO) is enabled\&. When unset, the kernel\*(Aqs default will be used\&.
1824 .sp
1825 Added in version 232\&.
1826 .RE
1827 .PP
1828 \fITCP6SegmentationOffload=\fR
1829 .RS 4
1830 Takes a boolean\&. If set to true, TCP6 Segmentation Offload (tx\-tcp6\-segmentation) is enabled\&. When unset, the kernel\*(Aqs default will be used\&.
1831 .sp
1832 Added in version 235\&.
1833 .RE
1834 .PP
1835 \fIGenericSegmentationOffload=\fR
1836 .RS 4
1837 Takes a boolean\&. If set to true, Generic Segmentation Offload (GSO) is enabled\&. When unset, the kernel\*(Aqs default will be used\&.
1838 .sp
1839 Added in version 232\&.
1840 .RE
1841 .PP
1842 \fIGenericReceiveOffload=\fR
1843 .RS 4
1844 Takes a boolean\&. If set to true, Generic Receive Offload (GRO) is enabled\&. When unset, the kernel\*(Aqs default will be used\&.
1845 .sp
1846 Added in version 232\&.
1847 .RE
1848 .PP
1849 \fIGenericReceiveOffloadHardware=\fR
1850 .RS 4
1851 Takes a boolean\&. If set to true, hardware accelerated Generic Receive Offload (GRO) is enabled\&. When unset, the kernel\*(Aqs default will be used\&.
1852 .sp
1853 Added in version 250\&.
1854 .RE
1855 .PP
1856 \fILargeReceiveOffload=\fR
1857 .RS 4
1858 Takes a boolean\&. If set to true, Large Receive Offload (LRO) is enabled\&. When unset, the kernel\*(Aqs default will be used\&.
1859 .sp
1860 Added in version 232\&.
1861 .RE
1862 .PP
1863 \fIReceivePacketSteeringCPUMask=\fR
1864 .RS 4
1865 Configures Receive Packet Steering (RPS) list of CPUs to which RPS may forward traffic\&. Takes a list of CPU indices or ranges separated by either whitespace or commas\&. Alternatively, takes the special value
1866 "all", which will include all available CPUs in the mask\&. CPU ranges are specified by the lower and upper CPU indices separated by a dash (e\&.g\&.
1867 "2\-6")\&. This option may be specified more than once, in which case the specified list of CPU ranges are merged\&. If an empty string is assigned, the list is reset, all assignments prior to this will have no effect\&. Defaults to unset and RPS CPU list is unchanged\&. To disable RPS when it was previously enabled, use the special value
1868 "disable"\&.
1869 .sp
1870 Added in version 256\&.
1871 .RE
1872 .PP
1873 \fIReceiveVLANCTAGHardwareAcceleration=\fR
1874 .RS 4
1875 Takes a boolean\&. If set to true, receive VLAN CTAG hardware acceleration is enabled\&. When unset, the kernel\*(Aqs default will be used\&.
1876 .sp
1877 Added in version 250\&.
1878 .RE
1879 .PP
1880 \fITransmitVLANCTAGHardwareAcceleration=\fR
1881 .RS 4
1882 Takes a boolean\&. If set to true, transmit VLAN CTAG hardware acceleration is enabled\&. When unset, the kernel\*(Aqs default will be used\&.
1883 .sp
1884 Added in version 250\&.
1885 .RE
1886 .PP
1887 \fIReceiveVLANCTAGFilter=\fR
1888 .RS 4
1889 Takes a boolean\&. If set to true, receive filtering on VLAN CTAGs is enabled\&. When unset, the kernel\*(Aqs default will be used\&.
1890 .sp
1891 Added in version 250\&.
1892 .RE
1893 .PP
1894 \fITransmitVLANSTAGHardwareAcceleration=\fR
1895 .RS 4
1896 Takes a boolean\&. If set to true, transmit VLAN STAG hardware acceleration is enabled\&. When unset, the kernel\*(Aqs default will be used\&.
1897 .sp
1898 Added in version 250\&.
1899 .RE
1900 .PP
1901 \fINTupleFilter=\fR
1902 .RS 4
1903 Takes a boolean\&. If set to true, receive N\-tuple filters and actions are enabled\&. When unset, the kernel\*(Aqs default will be used\&.
1904 .sp
1905 Added in version 250\&.
1906 .RE
1907 .PP
1908 \fIRxChannels=\fR, \fITxChannels=\fR, \fIOtherChannels=\fR, \fICombinedChannels=\fR
1909 .RS 4
1910 Specifies the number of receive, transmit, other, or combined channels, respectively\&. Takes an unsigned integer in the range 1\&...4294967295 or
1911 "max"\&. If set to
1912 "max", the advertised maximum value of the hardware will be used\&. When unset, the number will not be changed\&. Defaults to unset\&.
1913 .sp
1914 Added in version 239\&.
1915 .RE
1916 .PP
1917 \fIRxBufferSize=\fR, \fIRxMiniBufferSize=\fR, \fIRxJumboBufferSize=\fR, \fITxBufferSize=\fR
1918 .RS 4
1919 Specifies the maximum number of pending packets in the NIC receive buffer, mini receive buffer, jumbo receive buffer, or transmit buffer, respectively\&. Takes an unsigned integer in the range 1\&...4294967295 or
1920 "max"\&. If set to
1921 "max", the advertised maximum value of the hardware will be used\&. When unset, the number will not be changed\&. Defaults to unset\&.
1922 .sp
1923 Added in version 244\&.
1924 .RE
1925 .PP
1926 \fIRxFlowControl=\fR
1927 .RS 4
1928 Takes a boolean\&. When set, enables receive flow control, also known as the ethernet receive PAUSE message (generate and send ethernet PAUSE frames)\&. When unset, the kernel\*(Aqs default will be used\&.
1929 .sp
1930 Added in version 246\&.
1931 .RE
1932 .PP
1933 \fITxFlowControl=\fR
1934 .RS 4
1935 Takes a boolean\&. When set, enables transmit flow control, also known as the ethernet transmit PAUSE message (respond to received ethernet PAUSE frames)\&. When unset, the kernel\*(Aqs default will be used\&.
1936 .sp
1937 Added in version 246\&.
1938 .RE
1939 .PP
1940 \fIAutoNegotiationFlowControl=\fR
1941 .RS 4
1942 Takes a boolean\&. When set, auto negotiation enables the interface to exchange state advertisements with the connected peer so that the two devices can agree on the ethernet PAUSE configuration\&. When unset, the kernel\*(Aqs default will be used\&.
1943 .sp
1944 Added in version 246\&.
1945 .RE
1946 .PP
1947 \fIGenericSegmentOffloadMaxBytes=\fR
1948 .RS 4
1949 Specifies the maximum size of a Generic Segment Offload (GSO) packet the device should accept\&. The usual suffixes K, M, G are supported and are understood to the base of 1024\&. An unsigned integer in the range 1\&...65536\&. Defaults to unset\&.
1950 .sp
1951 Added in version 248\&.
1952 .RE
1953 .PP
1954 \fIGenericSegmentOffloadMaxSegments=\fR
1955 .RS 4
1956 Specifies the maximum number of Generic Segment Offload (GSO) segments the device should accept\&. An unsigned integer in the range 1\&...65535\&. Defaults to unset\&.
1957 .sp
1958 Added in version 248\&.
1959 .RE
1960 .PP
1961 \fIUseAdaptiveRxCoalesce=\fR, \fIUseAdaptiveTxCoalesce=\fR
1962 .RS 4
1963 Boolean properties that, when set, enable/disable adaptive Rx/Tx coalescing if the hardware supports it\&. When unset, the kernel\*(Aqs default will be used\&.
1964 .sp
1965 Added in version 250\&.
1966 .RE
1967 .PP
1968 \fIRxCoalesceSec=\fR, \fIRxCoalesceIrqSec=\fR, \fIRxCoalesceLowSec=\fR, \fIRxCoalesceHighSec=\fR, \fITxCoalesceSec=\fR, \fITxCoalesceIrqSec=\fR, \fITxCoalesceLowSec=\fR, \fITxCoalesceHighSec=\fR
1969 .RS 4
1970 These properties configure the delay before Rx/Tx interrupts are generated after a packet is sent/received\&. The
1971 "Irq"
1972 properties come into effect when the host is servicing an IRQ\&. The
1973 "Low"
1974 and
1975 "High"
1976 properties come into effect when the packet rate drops below the low packet rate threshold or exceeds the high packet rate threshold respectively if adaptive Rx/Tx coalescing is enabled\&. When unset, the kernel\*(Aqs defaults will be used\&.
1977 .sp
1978 Added in version 250\&.
1979 .RE
1980 .PP
1981 \fIRxMaxCoalescedFrames=\fR, \fIRxMaxCoalescedIrqFrames=\fR, \fIRxMaxCoalescedLowFrames=\fR, \fIRxMaxCoalescedHighFrames=\fR, \fITxMaxCoalescedFrames=\fR, \fITxMaxCoalescedIrqFrames=\fR, \fITxMaxCoalescedLowFrames=\fR, \fITxMaxCoalescedHighFrames=\fR
1982 .RS 4
1983 These properties configure the maximum number of frames that are sent/received before a Rx/Tx interrupt is generated\&. The
1984 "Irq"
1985 properties come into effect when the host is servicing an IRQ\&. The
1986 "Low"
1987 and
1988 "High"
1989 properties come into effect when the packet rate drops below the low packet rate threshold or exceeds the high packet rate threshold respectively if adaptive Rx/Tx coalescing is enabled\&. When unset, the kernel\*(Aqs defaults will be used\&.
1990 .sp
1991 Added in version 250\&.
1992 .RE
1993 .PP
1994 \fICoalescePacketRateLow=\fR, \fICoalescePacketRateHigh=\fR
1995 .RS 4
1996 These properties configure the low and high packet rate (expressed in packets per second) threshold respectively and are used to determine when the corresponding coalescing settings for low and high packet rates come into effect if adaptive Rx/Tx coalescing is enabled\&. If unset, the kernel\*(Aqs defaults will be used\&.
1997 .sp
1998 Added in version 250\&.
1999 .RE
2000 .PP
2001 \fICoalescePacketRateSampleIntervalSec=\fR
2002 .RS 4
2003 Configures how often to sample the packet rate used for adaptive Rx/Tx coalescing\&. This property cannot be zero\&. This lowest time granularity supported by this property is seconds\&. Partial seconds will be rounded up before being passed to the kernel\&. If unset, the kernel\*(Aqs default will be used\&.
2004 .sp
2005 Added in version 250\&.
2006 .RE
2007 .PP
2008 \fIStatisticsBlockCoalesceSec=\fR
2009 .RS 4
2010 How long to delay driver in\-memory statistics block updates\&. If the driver does not have an in\-memory statistic block, this property is ignored\&. This property cannot be zero\&. If unset, the kernel\*(Aqs default will be used\&.
2011 .sp
2012 Added in version 250\&.
2013 .RE
2014 .PP
2015 \fIMDI=\fR
2016 .RS 4
2017 Specifies the medium dependent interface (MDI) mode for the interface\&. A MDI describes the interface from a physical layer implementation to the physical medium used to carry the transmission\&. Takes one of the following words:
2018 "straight"
2019 (or equivalently:
2020 "mdi"),
2021 "crossover"
2022 (or equivalently:
2023 "mdi\-x",
2024 "mdix"), and
2025 "auto"\&. When
2026 "straight", the MDI straight through mode will be used\&. When
2027 "crossover", the MDI crossover (MDI\-X) mode will be used\&. When
2028 "auto", the MDI status is automatically detected\&. Defaults to unset, and the kernel\*(Aqs default will be used\&.
2029 .sp
2030 Added in version 251\&.
2031 .RE
2032 .PP
2033 \fISR\-IOVVirtualFunctions=\fR
2034 .RS 4
2035 Specifies the number of SR\-IOV virtual functions\&. Takes an integer in the range 0\&...2147483647\&. Defaults to unset, and automatically determined from the values specified in the
2036 \fIVirtualFunction=\fR
2037 settings in the [SR\-IOV] sections\&.
2038 .sp
2039 Added in version 251\&.
2040 .RE
2041 .SH "[SR\-IOV] SECTION OPTIONS"
2042 .PP
2043 SR\-IOV provides the ability to partition a single physical PCI resource into virtual PCI functions which can then be e\&.g\&. injected into a VM\&. In the case of network VFs, SR\-IOV reduces latency and CPU utilisation for north\-south network traffic (that is, traffic with endpoints outside the host machine), by allowing traffic to bypass the host machine\(cqs network stack\&.
2044 .PP
2045 The presence of an [SR\-IOV] section in a \&.link file will cause the creation and configuration of the specified virtual function\&. Within a \&.network file, the specified virtual function will be configured, but must already exist\&. Specify several [SR\-IOV] sections to configure several SR\-IOVs\&.
2046 .PP
2047 The [SR\-IOV] section accepts the following keys\&.
2048 .PP
2049 \fIVirtualFunction=\fR
2050 .RS 4
2051 Specifies a Virtual Function (VF), lightweight PCIe function designed solely to move data in and out\&. Takes an integer in the range 0\&...2147483646\&. This option is compulsory\&.
2052 .sp
2053 Added in version 251\&.
2054 .RE
2055 .PP
2056 \fIVLANId=\fR
2057 .RS 4
2058 Specifies VLAN ID of the virtual function\&. Takes an integer in the range 1\&...4095\&.
2059 .sp
2060 Added in version 251\&.
2061 .RE
2062 .PP
2063 \fIQualityOfService=\fR
2064 .RS 4
2065 Specifies quality of service of the virtual function\&. Takes an integer in the range 1\&...4294967294\&.
2066 .sp
2067 Added in version 251\&.
2068 .RE
2069 .PP
2070 \fIVLANProtocol=\fR
2071 .RS 4
2072 Specifies VLAN protocol of the virtual function\&. Takes
2073 "802\&.1Q"
2074 or
2075 "802\&.1ad"\&.
2076 .sp
2077 Added in version 251\&.
2078 .RE
2079 .PP
2080 \fIMACSpoofCheck=\fR
2081 .RS 4
2082 Takes a boolean\&. Controls the MAC spoof checking\&. When unset, the kernel\*(Aqs default will be used\&.
2083 .sp
2084 Added in version 251\&.
2085 .RE
2086 .PP
2087 \fIQueryReceiveSideScaling=\fR
2088 .RS 4
2089 Takes a boolean\&. Toggle the ability of querying the receive side scaling (RSS) configuration of the virtual function (VF)\&. The VF RSS information like RSS hash key may be considered sensitive on some devices where this information is shared between VF and the physical function (PF)\&. When unset, the kernel\*(Aqs default will be used\&.
2090 .sp
2091 Added in version 251\&.
2092 .RE
2093 .PP
2094 \fITrust=\fR
2095 .RS 4
2096 Takes a boolean\&. Allows one to set trust mode of the virtual function (VF)\&. When set, VF users can set a specific feature which may impact security and/or performance\&. When unset, the kernel\*(Aqs default will be used\&.
2097 .sp
2098 Added in version 251\&.
2099 .RE
2100 .PP
2101 \fILinkState=\fR
2102 .RS 4
2103 Allows one to set the link state of the virtual function (VF)\&. Takes a boolean or a special value
2104 "auto"\&. Setting to
2105 "auto"
2106 means a reflection of the physical function (PF) link state,
2107 "yes"
2108 lets the VF to communicate with other VFs on this host even if the PF link state is down,
2109 "no"
2110 causes the hardware to drop any packets sent by the VF\&. When unset, the kernel\*(Aqs default will be used\&.
2111 .sp
2112 Added in version 251\&.
2113 .RE
2114 .PP
2115 \fIMACAddress=\fR
2116 .RS 4
2117 Specifies the MAC address for the virtual function\&.
2118 .sp
2119 Added in version 251\&.
2120 .RE
2121 .SH "SPECIFIERS"
2122 .PP
2123 Some settings resolve specifiers which may be used to write generic unit files referring to runtime or unit parameters that are replaced when the unit files are loaded\&. Specifiers must be known and resolvable for the setting to be valid\&. The following specifiers are understood:
2124 .sp
2125 .it 1 an-trap
2126 .nr an-no-space-flag 1
2127 .nr an-break-flag 1
2128 .br
2129 .B Table\ \&2.\ \&Specifiers available in unit files
2130 .TS
2131 allbox tab(:);
2132 lB lB lB.
2133 T{
2134 Specifier
2135 T}:T{
2136 Meaning
2137 T}:T{
2138 Details
2139 T}
2140 .T&
2141 l l l
2142 l l l
2143 l l l
2144 l l l
2145 l l l
2146 l l l
2147 l l l
2148 l l l
2149 l l l
2150 l l l
2151 l l l
2152 l l l
2153 l l l
2154 l l l
2155 l l l.
2156 T{
2157 "%a"
2158 T}:T{
2159 Architecture
2160 T}:T{
2161 A short string identifying the architecture of the local system\&. A string such as \fBx86\fR, \fBx86\-64\fR or \fBarm64\fR\&. See the architectures defined for \fIConditionArchitecture=\fR in \fBsystemd.unit\fR(5) for a full list\&.
2162 T}
2163 T{
2164 "%A"
2165 T}:T{
2166 Operating system image version
2167 T}:T{
2168 The operating system image version identifier of the running system, as read from the \fIIMAGE_VERSION=\fR field of /etc/os\-release\&. If not set, resolves to an empty string\&. See \fBos-release\fR(5) for more information\&.
2169 T}
2170 T{
2171 "%b"
2172 T}:T{
2173 Boot ID
2174 T}:T{
2175 The boot ID of the running system, formatted as string\&. See \fBrandom\fR(4) for more information\&.
2176 T}
2177 T{
2178 "%B"
2179 T}:T{
2180 Operating system build ID
2181 T}:T{
2182 The operating system build identifier of the running system, as read from the \fIBUILD_ID=\fR field of /etc/os\-release\&. If not set, resolves to an empty string\&. See \fBos-release\fR(5) for more information\&.
2183 T}
2184 T{
2185 "%H"
2186 T}:T{
2187 Host name
2188 T}:T{
2189 The hostname of the running system\&.
2190 T}
2191 T{
2192 "%l"
2193 T}:T{
2194 Short host name
2195 T}:T{
2196 The hostname of the running system, truncated at the first dot to remove any domain component\&.
2197 T}
2198 T{
2199 "%m"
2200 T}:T{
2201 Machine ID
2202 T}:T{
2203 The machine ID of the running system, formatted as string\&. See \fBmachine-id\fR(5) for more information\&.
2204 T}
2205 T{
2206 "%M"
2207 T}:T{
2208 Operating system image identifier
2209 T}:T{
2210 The operating system image identifier of the running system, as read from the \fIIMAGE_ID=\fR field of /etc/os\-release\&. If not set, resolves to an empty string\&. See \fBos-release\fR(5) for more information\&.
2211 T}
2212 T{
2213 "%o"
2214 T}:T{
2215 Operating system ID
2216 T}:T{
2217 The operating system identifier of the running system, as read from the \fIID=\fR field of /etc/os\-release\&. See \fBos-release\fR(5) for more information\&.
2218 T}
2219 T{
2220 "%q"
2221 T}:T{
2222 Pretty host name
2223 T}:T{
2224 The pretty hostname of the running system, as read from the \fIPRETTY_HOSTNAME=\fR field of /etc/machine\-info\&. If not set, resolves to the short hostname\&. See \fBmachine-info\fR(5) for more information\&.
2225 T}
2226 T{
2227 "%T"
2228 T}:T{
2229 Directory for temporary files
2230 T}:T{
2231 This is either /tmp or the path "$TMPDIR", "$TEMP" or "$TMP" are set to\&. (Note that the directory may be specified without a trailing slash\&.)
2232 T}
2233 T{
2234 "%v"
2235 T}:T{
2236 Kernel release
2237 T}:T{
2238 Identical to \fBuname \-r\fR output\&.
2239 T}
2240 T{
2241 "%V"
2242 T}:T{
2243 Directory for larger and persistent temporary files
2244 T}:T{
2245 This is either /var/tmp or the path "$TMPDIR", "$TEMP" or "$TMP" are set to\&. (Note that the directory may be specified without a trailing slash\&.)
2246 T}
2247 T{
2248 "%w"
2249 T}:T{
2250 Operating system version ID
2251 T}:T{
2252 The operating system version identifier of the running system, as read from the \fIVERSION_ID=\fR field of /etc/os\-release\&. If not set, resolves to an empty string\&. See \fBos-release\fR(5) for more information\&.
2253 T}
2254 T{
2255 "%W"
2256 T}:T{
2257 Operating system variant ID
2258 T}:T{
2259 The operating system variant identifier of the running system, as read from the \fIVARIANT_ID=\fR field of /etc/os\-release\&. If not set, resolves to an empty string\&. See \fBos-release\fR(5) for more information\&.
2260 T}
2261 .TE
2262 .sp 1
2263 .SH "EXAMPLES"
2264 .PP
2265 \fBExample\ \&1.\ \&/usr/lib/systemd/network/99\-default\&.link\fR
2266 .PP
2267 The link file
2268 99\-default\&.link
2269 that is shipped with systemd defines the default policies for the interface name, alternative names, and MAC address of links\&.
2270 .sp
2271 .if n \{\
2272 .RS 4
2273 .\}
2274 .nf
2275 [Match]
2276 OriginalName=*
2277
2278 [Link]
2279 NamePolicy=keep kernel database onboard slot path
2280 AlternativeNamesPolicy=database onboard slot path
2281 MACAddressPolicy=persistent
2282 .fi
2283 .if n \{\
2284 .RE
2285 .\}
2286 .PP
2287 \fBExample\ \&2.\ \&/etc/systemd/network/10\-dmz\&.link\fR
2288 .PP
2289 This example assigns the fixed name
2290 "dmz0"
2291 to the interface with the MAC address 00:a0:de:63:7a:e6:
2292 .sp
2293 .if n \{\
2294 .RS 4
2295 .\}
2296 .nf
2297 [Match]
2298 MACAddress=00:a0:de:63:7a:e6
2299
2300 [Link]
2301 Name=dmz0
2302 .fi
2303 .if n \{\
2304 .RE
2305 .\}
2306 .PP
2307 \fINamePolicy=\fR
2308 is not set, so
2309 \fIName=\fR
2310 takes effect\&. We use the
2311 "10\-"
2312 prefix to order this file early in the list\&. Note that it needs to be before
2313 99\-default\&.link, i\&.e\&. it needs a numerical prefix, to have any effect at all\&.
2314 .PP
2315 \fBExample\ \&3.\ \&(Re\-)applying a \&.link file to an interface\fR
2316 .PP
2317 After a new \&.link file has been created, or an existing \&.link file modified, the new settings may be applied to the matching interface with the following commands:
2318 .sp
2319 .if n \{\
2320 .RS 4
2321 .\}
2322 .nf
2323 $ sudo udevadm control \-\-reload
2324 $ sudo ip link set eth0 down
2325 $ sudo udevadm trigger \-\-verbose \-\-settle \-\-action add /sys/class/net/eth0
2326 .fi
2327 .if n \{\
2328 .RE
2329 .\}
2330 .PP
2331 You may also need to stop the service that manages the network interface, e\&.g\&.
2332 \fBsystemd-networkd.service\fR(8)
2333 or
2334 NetworkManager\&.service
2335 before the above operation, and then restart the service after that\&. For more details about
2336 \fBudevadm\fR
2337 command, see
2338 \fBudevadm\fR(8)\&.
2339 .PP
2340 \fBExample\ \&4.\ \&Debugging \fINamePolicy=\fR assignments\fR
2341 .sp
2342 .if n \{\
2343 .RS 4
2344 .\}
2345 .nf
2346 $ sudo SYSTEMD_LOG_LEVEL=debug udevadm test\-builtin net_setup_link /sys/class/net/hub0
2347 \&...
2348 Parsed configuration file /usr/lib/systemd/network/99\-default\&.link
2349 Parsed configuration file /etc/systemd/network/10\-eth0\&.link
2350 ID_NET_DRIVER=cdc_ether
2351 Config file /etc/systemd/network/10\-eth0\&.link applies to device hub0
2352 link_config: autonegotiation is unset or enabled, the speed and duplex are not writable\&.
2353 hub0: Device has name_assign_type=4
2354 Using default interface naming scheme \*(Aqv240\*(Aq\&.
2355 hub0: Policies did not yield a name, using specified Name=hub0\&.
2356 ID_NET_LINK_FILE=/etc/systemd/network/10\-eth0\&.link
2357 ID_NET_NAME=hub0
2358 \&...
2359 .fi
2360 .if n \{\
2361 .RE
2362 .\}
2363 .PP
2364 Explicit
2365 \fIName=\fR
2366 configuration wins in this case\&.
2367 .sp
2368 .if n \{\
2369 .RS 4
2370 .\}
2371 .nf
2372 sudo SYSTEMD_LOG_LEVEL=debug udevadm test\-builtin net_setup_link /sys/class/net/enp0s31f6
2373 \&...
2374 Parsed configuration file /usr/lib/systemd/network/99\-default\&.link
2375 Parsed configuration file /etc/systemd/network/10\-eth0\&.link
2376 Created link configuration context\&.
2377 ID_NET_DRIVER=e1000e
2378 Config file /usr/lib/systemd/network/99\-default\&.link applies to device enp0s31f6
2379 link_config: autonegotiation is unset or enabled, the speed and duplex are not writable\&.
2380 enp0s31f6: Device has name_assign_type=4
2381 Using default interface naming scheme \*(Aqv240\*(Aq\&.
2382 enp0s31f6: Policy *keep*: keeping existing userspace name
2383 enp0s31f6: Device has addr_assign_type=0
2384 enp0s31f6: MAC on the device already matches policy *persistent*
2385 ID_NET_LINK_FILE=/usr/lib/systemd/network/99\-default\&.link
2386 \&...
2387 .fi
2388 .if n \{\
2389 .RE
2390 .\}
2391 .PP
2392 In this case, the interface was already renamed, so the
2393 \fBkeep\fR
2394 policy specified as the first option in
2395 99\-default\&.link
2396 means that the existing name is preserved\&. If
2397 \fBkeep\fR
2398 was removed, or if were in boot before the renaming has happened, we might get the following instead:
2399 .sp
2400 .if n \{\
2401 .RS 4
2402 .\}
2403 .nf
2404 enp0s31f6: Policy *path* yields "enp0s31f6"\&.
2405 enp0s31f6: Device has addr_assign_type=0
2406 enp0s31f6: MAC on the device already matches policy *persistent*
2407 ID_NET_LINK_FILE=/usr/lib/systemd/network/99\-default\&.link
2408 ID_NET_NAME=enp0s31f6
2409 \&...
2410 .fi
2411 .if n \{\
2412 .RE
2413 .\}
2414 .PP
2415 Please note that the details of output are subject to change\&.
2416 .PP
2417 \fBExample\ \&5.\ \&/etc/systemd/network/10\-internet\&.link\fR
2418 .PP
2419 This example assigns the fixed name
2420 "internet0"
2421 to the interface with the device path
2422 "pci\-0000:00:1a\&.0\-*":
2423 .sp
2424 .if n \{\
2425 .RS 4
2426 .\}
2427 .nf
2428 [Match]
2429 Path=pci\-0000:00:1a\&.0\-*
2430
2431 [Link]
2432 Name=internet0
2433 .fi
2434 .if n \{\
2435 .RE
2436 .\}
2437 .PP
2438 \fBExample\ \&6.\ \&/etc/systemd/network/25\-wireless\&.link\fR
2439 .PP
2440 Here\*(Aqs an overly complex example that shows the use of a large number of [Match] and [Link] settings\&.
2441 .sp
2442 .if n \{\
2443 .RS 4
2444 .\}
2445 .nf
2446 [Match]
2447 MACAddress=12:34:56:78:9a:bc
2448 Driver=brcmsmac
2449 Path=pci\-0000:02:00\&.0\-*
2450 Type=wlan
2451 Virtualization=no
2452 Host=my\-laptop
2453 Architecture=x86\-64
2454
2455 [Link]
2456 Name=wireless0
2457 MTUBytes=1450
2458 BitsPerSecond=10M
2459 WakeOnLan=magic
2460 MACAddress=cb:a9:87:65:43:21
2461 .fi
2462 .if n \{\
2463 .RE
2464 .\}
2465 .SH "SEE ALSO"
2466 .PP
2467 \fBsystemd-udevd.service\fR(8), \fBudevadm\fR(8), \fBsystemd.netdev\fR(5), \fBsystemd.network\fR(5), \fBsystemd-network-generator.service\fR(8)
2468 .SH "NOTES"
2469 .IP " 1." 4
2470 ๐Ÿ’ฃ๐Ÿ’ฅ๐Ÿงจ๐Ÿ’ฅ๐Ÿ’ฅ๐Ÿ’ฃ Please note that those configuration files must be available at all times. If
2471 /usr/local/
2472 is a separate partition, it may not be available during early boot, and must not be used for configuration.
2473 .IP " 2." 4
2474 System and Service Credentials
2475 .RS 4
2476 \%https://systemd.io/CREDENTIALS
2477 .RE