]>
Commit | Line | Data |
---|---|---|
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> | |
253 | <para>An ordered, space-separated list of policies by which | |
254 | the interface name should be set. | |
255 | <literal>NamePolicy</literal> may be disabled by specifying | |
256 | <literal>net.ifnames=0</literal> on the kernel command line. | |
257 | Each of the policies may fail, and the first successful one | |
258 | is used. The name is not set directly, but is exported to | |
259 | udev as the property <literal>ID_NET_NAME</literal>, which | |
260 | is, by default, used by a udev rule to set | |
261 | <literal>NAME</literal>. If the name has already been set by | |
262 | userspace, no renaming is performed. The available policies | |
263 | are:</para> | |
1ff28eae | 264 | |
798d3a52 ZJS |
265 | <variablelist> |
266 | <varlistentry> | |
267 | <term><literal>kernel</literal></term> | |
268 | <listitem> | |
269 | <para>If the kernel claims that the name it has set | |
270 | for a device is predictable, then no renaming is | |
271 | performed.</para> | |
272 | </listitem> | |
273 | </varlistentry> | |
274 | <varlistentry> | |
275 | <term><literal>database</literal></term> | |
276 | <listitem> | |
277 | <para>The name is set based on entries in the udev's | |
278 | Hardware Database with the key | |
279 | <literal>ID_NET_NAME_FROM_DATABASE</literal>. | |
280 | </para> | |
281 | </listitem> | |
282 | </varlistentry> | |
283 | <varlistentry> | |
284 | <term><literal>onboard</literal></term> | |
285 | <listitem> | |
286 | <para>The name is set based on information given by | |
287 | the firmware for on-board devices, as exported by the | |
288 | udev property <literal>ID_NET_NAME_ONBOARD</literal>. | |
289 | </para> | |
290 | </listitem> | |
291 | </varlistentry> | |
292 | <varlistentry> | |
293 | <term><literal>slot</literal></term> | |
294 | <listitem> | |
295 | <para>The name is set based on information given by | |
296 | the firmware for hot-plug devices, as exported by the | |
297 | udev property <literal>ID_NET_NAME_SLOT</literal>. | |
298 | </para> | |
299 | </listitem> | |
300 | </varlistentry> | |
301 | <varlistentry> | |
302 | <term><literal>path</literal></term> | |
303 | <listitem> | |
304 | <para>The name is set based on the device's physical | |
305 | location, as exported by the udev property | |
306 | <literal>ID_NET_NAME_PATH</literal>.</para> | |
307 | </listitem> | |
308 | </varlistentry> | |
309 | <varlistentry> | |
310 | <term><literal>mac</literal></term> | |
311 | <listitem> | |
312 | <para>The name is set based on the device's persistent | |
313 | MAC address, as exported by the udev property | |
314 | <literal>ID_NET_NAME_MAC</literal>.</para> | |
315 | </listitem> | |
316 | </varlistentry> | |
317 | </variablelist> | |
318 | </listitem> | |
319 | </varlistentry> | |
320 | <varlistentry> | |
321 | <term><varname>Name=</varname></term> | |
322 | <listitem> | |
323 | <para>The interface name to use in case all the | |
324 | policies specified in | |
325 | <varname>NamePolicy=</varname> fail, or in case | |
326 | <varname>NamePolicy=</varname> is missing or | |
327 | disabled.</para> | |
1b934761 ZJS |
328 | |
329 | <para>Note that specifying a name that the kernel might use for another | |
330 | interface (for example <literal>eth0</literal>) is dangerous because the | |
331 | name assignment done by udev will race with the assignment done by the | |
332 | kernel, and only one interface may use the name. Depending on the order of | |
333 | operations, either udev or the kernel will win, making the naming | |
334 | unpredictable. It is best to use some different prefix, for example | |
335 | <literal>internal0</literal>/<literal>external0</literal> or | |
336 | <literal>lan0</literal>/<literal>lan1</literal>/<literal>lan3</literal>. | |
337 | </para> | |
798d3a52 ZJS |
338 | </listitem> |
339 | </varlistentry> | |
340 | <varlistentry> | |
341 | <term><varname>MTUBytes=</varname></term> | |
342 | <listitem> | |
343 | <para>The maximum transmission unit in bytes to set for the | |
344 | device. The usual suffixes K, M, G, are supported and are | |
345 | understood to the base of 1024.</para> | |
346 | </listitem> | |
347 | </varlistentry> | |
348 | <varlistentry> | |
349 | <term><varname>BitsPerSecond=</varname></term> | |
350 | <listitem> | |
351 | <para>The speed to set for the device, the value is rounded | |
352 | down to the nearest Mbps. The usual suffixes K, M, G, are | |
353 | supported and are understood to the base of 1000.</para> | |
354 | </listitem> | |
355 | </varlistentry> | |
356 | <varlistentry> | |
357 | <term><varname>Duplex=</varname></term> | |
358 | <listitem> | |
359 | <para>The duplex mode to set for the device. The accepted | |
360 | values are <literal>half</literal> and | |
361 | <literal>full</literal>.</para> | |
362 | </listitem> | |
363 | </varlistentry> | |
a39f92d3 SS |
364 | <varlistentry> |
365 | <term><varname>AutoNegotiation=</varname></term> | |
366 | <listitem> | |
9b6ffef3 | 367 | <para>Takes a boolean. If set to yes, automatic negotiation of transmission parameters is enabled. |
a39f92d3 SS |
368 | Autonegotiation is a procedure by which two connected ethernet devices choose |
369 | common transmission parameters, such as speed, duplex mode, and flow control. | |
9b6ffef3 | 370 | When unset, the kernel's default will be used.</para> |
a39f92d3 | 371 | |
6cf0a204 SS |
372 | <para>Note that if autonegotiation is enabled, speed, duplex and advertise settings are |
373 | read-only. If autonegotation is disabled, speed, duplex and advertise settings are writable | |
a39f92d3 SS |
374 | if the driver supports multiple link modes.</para> |
375 | </listitem> | |
376 | </varlistentry> | |
798d3a52 ZJS |
377 | <varlistentry> |
378 | <term><varname>WakeOnLan=</varname></term> | |
379 | <listitem> | |
380 | <para>The Wake-on-LAN policy to set for the device. The | |
381 | supported values are:</para> | |
1ff28eae | 382 | |
798d3a52 ZJS |
383 | <variablelist> |
384 | <varlistentry> | |
385 | <term><literal>phy</literal></term> | |
386 | <listitem> | |
387 | <para>Wake on PHY activity.</para> | |
388 | </listitem> | |
389 | </varlistentry> | |
617da14c SS |
390 | <varlistentry> |
391 | <term><literal>unicast</literal></term> | |
392 | <listitem> | |
393 | <para>Wake on unicast messages.</para> | |
394 | </listitem> | |
395 | </varlistentry> | |
396 | <varlistentry> | |
397 | <term><literal>multicast</literal></term> | |
398 | <listitem> | |
399 | <para>Wake on multicast messages.</para> | |
400 | </listitem> | |
401 | </varlistentry> | |
402 | <varlistentry> | |
403 | <term><literal>broadcast</literal></term> | |
404 | <listitem> | |
405 | <para>Wake on broadcast messages.</para> | |
406 | </listitem> | |
407 | </varlistentry> | |
408 | <varlistentry> | |
409 | <term><literal>arp</literal></term> | |
410 | <listitem> | |
411 | <para>Wake on ARP.</para> | |
412 | </listitem> | |
413 | </varlistentry> | |
798d3a52 ZJS |
414 | <varlistentry> |
415 | <term><literal>magic</literal></term> | |
416 | <listitem> | |
417 | <para>Wake on receipt of a magic packet. | |
418 | </para> | |
419 | </listitem> | |
420 | </varlistentry> | |
617da14c SS |
421 | <varlistentry> |
422 | <term><literal>secureon</literal></term> | |
423 | <listitem> | |
424 | <para>Enable secureon(tm) password for MagicPacket(tm). | |
425 | </para> | |
426 | </listitem> | |
427 | </varlistentry> | |
798d3a52 ZJS |
428 | <varlistentry> |
429 | <term><literal>off</literal></term> | |
430 | <listitem> | |
431 | <para>Never wake.</para> | |
432 | </listitem> | |
433 | </varlistentry> | |
434 | </variablelist> | |
c605bd00 ZJS |
435 | |
436 | <para>Defaults to <literal>off</literal>.</para> | |
798d3a52 ZJS |
437 | </listitem> |
438 | </varlistentry> | |
593022fa SS |
439 | <varlistentry> |
440 | <term><varname>Port=</varname></term> | |
441 | <listitem> | |
442 | <para>The port option is used to select the device port. The | |
443 | supported values are:</para> | |
444 | ||
445 | <variablelist> | |
446 | <varlistentry> | |
447 | <term><literal>tp</literal></term> | |
448 | <listitem> | |
449 | <para>An Ethernet interface using Twisted-Pair cable as the medium.</para> | |
450 | </listitem> | |
451 | </varlistentry> | |
452 | <varlistentry> | |
453 | <term><literal>aui</literal></term> | |
454 | <listitem> | |
455 | <para>Attachment Unit Interface (AUI). Normally used with hubs. | |
456 | </para> | |
457 | </listitem> | |
458 | </varlistentry> | |
459 | <varlistentry> | |
460 | <term><literal>bnc</literal></term> | |
461 | <listitem> | |
462 | <para>An Ethernet interface using BNC connectors and co-axial cable.</para> | |
463 | </listitem> | |
464 | </varlistentry> | |
465 | <varlistentry> | |
466 | <term><literal>mii</literal></term> | |
467 | <listitem> | |
468 | <para>An Ethernet interface using a Media Independent Interface (MII).</para> | |
469 | </listitem> | |
470 | </varlistentry> | |
471 | <varlistentry> | |
472 | <term><literal>fibre</literal></term> | |
473 | <listitem> | |
474 | <para>An Ethernet interface using Optical Fibre as the medium.</para> | |
475 | </listitem> | |
476 | </varlistentry> | |
477 | </variablelist> | |
478 | </listitem> | |
479 | </varlistentry> | |
6cf0a204 SS |
480 | <varlistentry> |
481 | <term><varname>Advertise=</varname></term> | |
482 | <listitem> | |
483 | <para>This sets what speeds and duplex modes of operation are advertised for auto-negotiation. | |
484 | The supported values are: | |
485 | ||
486 | <table> | |
487 | <title>Supported advertise values</title> | |
488 | <tgroup cols='3'> | |
489 | <colspec colname='Advertise' /> | |
490 | <colspec colname='Speed' /> | |
491 | <colspec colname='Duplex Mode' /> | |
492 | ||
493 | <thead><row> | |
494 | <entry>Advertise</entry> | |
495 | <entry>Speed (Mbps)</entry> | |
496 | <entry>Duplex Mode</entry> | |
497 | </row></thead> | |
498 | <tbody> | |
499 | ||
500 | <row><entry><literal>10baset-half</literal></entry> | |
501 | <entry>10</entry><entry>half</entry></row> | |
502 | ||
503 | <row><entry><literal>10baset-full</literal></entry> | |
504 | <entry>10</entry><entry>full</entry></row> | |
505 | ||
506 | <row><entry><literal>100baset-half</literal></entry> | |
507 | <entry>100</entry><entry>half</entry></row> | |
508 | ||
509 | <row><entry><literal>100baset-full</literal></entry> | |
510 | <entry>100</entry><entry>full</entry></row> | |
511 | ||
512 | <row><entry><literal>1000baset-half</literal></entry> | |
513 | <entry>1000</entry><entry>half</entry></row> | |
514 | ||
515 | <row><entry><literal>1000baset-full</literal></entry> | |
516 | <entry>1000</entry><entry>full</entry></row> | |
517 | ||
518 | <row><entry><literal>10000baset-full</literal></entry> | |
519 | <entry>10000</entry><entry>full</entry></row> | |
520 | ||
521 | <row><entry><literal>2500basex-full</literal></entry> | |
522 | <entry>2500</entry><entry>full</entry></row> | |
523 | ||
524 | <row><entry><literal>1000basekx-full</literal></entry> | |
525 | <entry>1000</entry><entry>full</entry></row> | |
526 | ||
527 | <row><entry><literal>10000basekx4-full</literal></entry> | |
528 | <entry>10000</entry><entry>full</entry></row> | |
529 | ||
530 | <row><entry><literal>10000basekr-full</literal></entry> | |
531 | <entry>10000</entry><entry>full</entry></row> | |
532 | ||
533 | <row><entry><literal>10000baser-fec</literal></entry> | |
534 | <entry>10000</entry><entry>full</entry></row> | |
535 | ||
536 | <row><entry><literal>20000basemld2-full</literal></entry> | |
537 | <entry>20000</entry><entry>full</entry></row> | |
538 | ||
539 | <row><entry><literal>20000basekr2-full</literal></entry> | |
540 | <entry>20000</entry><entry>full</entry></row> | |
541 | </tbody> | |
542 | </tgroup> | |
543 | </table> | |
544 | ||
545 | By default this is unset, i.e. all possible modes will be advertised. | |
546 | This option may be specified more than once, in which case all specified speeds and modes are advertised. | |
547 | If the empty string is assigned to this option, the list is reset, and all prior assignments have no effect. | |
548 | </para> | |
549 | </listitem> | |
550 | </varlistentry> | |
50725d10 SS |
551 | <varlistentry> |
552 | <term><varname>TCPSegmentationOffload=</varname></term> | |
553 | <listitem> | |
9b6ffef3 | 554 | <para>Takes a boolean. If set to true, the TCP Segmentation Offload (TSO) is enabled. |
025314d9 | 555 | When unset, the kernel's default will be used.</para> |
50725d10 | 556 | </listitem> |
ffa69a04 SS |
557 | </varlistentry> |
558 | <varlistentry> | |
559 | <term><varname>TCP6SegmentationOffload=</varname></term> | |
560 | <listitem> | |
9b6ffef3 | 561 | <para>Takes a boolean. If set to true, the TCP6 Segmentation Offload (tx-tcp6-segmentation) is enabled. |
025314d9 | 562 | When unset, the kernel's default will be used.</para> |
ffa69a04 | 563 | </listitem> |
50725d10 SS |
564 | </varlistentry> |
565 | <varlistentry> | |
566 | <term><varname>GenericSegmentationOffload=</varname></term> | |
567 | <listitem> | |
9b6ffef3 | 568 | <para>Takes a boolean. If set to true, the Generic Segmentation Offload (GSO) is enabled. |
025314d9 | 569 | When unset, the kernel's default will be used.</para> |
50725d10 SS |
570 | </listitem> |
571 | </varlistentry> | |
f7ea90fb SS |
572 | <varlistentry> |
573 | <term><varname>GenericReceiveOffload=</varname></term> | |
574 | <listitem> | |
9b6ffef3 | 575 | <para>Takes a boolean. If set to true, the Generic Receive Offload (GRO) is enabled. |
025314d9 | 576 | When unset, the kernel's default will be used.</para> |
f7ea90fb SS |
577 | </listitem> |
578 | </varlistentry> | |
579 | <varlistentry> | |
580 | <term><varname>LargeReceiveOffload=</varname></term> | |
581 | <listitem> | |
9b6ffef3 | 582 | <para>Takes a boolean. If set to true, the Large Receive Offload (LRO) is enabled. |
025314d9 | 583 | When unset, the kernel's default will be used.</para> |
f7ea90fb SS |
584 | </listitem> |
585 | </varlistentry> | |
5f945202 SS |
586 | <varlistentry> |
587 | <term><varname>RxChannels=</varname></term> | |
588 | <listitem> | |
589 | <para>Sets the number of receive channels (a number between 1 and 4294967295) .</para> | |
590 | </listitem> | |
591 | </varlistentry> | |
592 | <varlistentry> | |
593 | <term><varname>TxChannels=</varname></term> | |
594 | <listitem> | |
595 | <para>Sets the number of transmit channels (a number between 1 and 4294967295).</para> | |
596 | </listitem> | |
597 | </varlistentry> | |
598 | <varlistentry> | |
599 | <term><varname>OtherChannels=</varname></term> | |
600 | <listitem> | |
601 | <para>Sets the number of other channels (a number between 1 and 4294967295).</para> | |
602 | </listitem> | |
603 | </varlistentry> | |
604 | <varlistentry> | |
605 | <term><varname>CombinedChannels=</varname></term> | |
606 | <listitem> | |
607 | <para>Sets the number of combined set channels (a number between 1 and 4294967295).</para> | |
608 | </listitem> | |
609 | </varlistentry> | |
798d3a52 ZJS |
610 | </variablelist> |
611 | </refsect1> | |
1ff28eae | 612 | |
798d3a52 | 613 | <refsect1> |
b97e7fab LP |
614 | <title>Examples</title> |
615 | ||
616 | <example> | |
617 | <title>/usr/lib/systemd/network/99-default.link</title> | |
618 | ||
619 | <para>The link file <filename>99-default.link</filename> that is | |
620 | shipped with systemd defines the default naming policy for | |
621 | links.</para> | |
622 | ||
623 | <programlisting>[Link] | |
624 | NamePolicy=kernel database onboard slot path | |
625 | MACAddressPolicy=persistent</programlisting> | |
626 | </example> | |
627 | ||
628 | <example> | |
629 | <title>/etc/systemd/network/10-dmz.link</title> | |
630 | ||
631 | <para>This example assigns the fixed name | |
632 | <literal>dmz0</literal> to the interface with the MAC address | |
633 | 00:a0:de:63:7a:e6:</para> | |
634 | ||
635 | <programlisting>[Match] | |
636 | MACAddress=00:a0:de:63:7a:e6 | |
637 | ||
638 | [Link] | |
639 | Name=dmz0</programlisting> | |
640 | </example> | |
641 | ||
642 | <example> | |
643 | <title>/etc/systemd/network/10-internet.link</title> | |
644 | ||
645 | <para>This example assigns the fixed name | |
646 | <literal>internet0</literal> to the interface with the device | |
647 | path <literal>pci-0000:00:1a.0-*</literal>:</para> | |
648 | ||
649 | <programlisting>[Match] | |
650 | Path=pci-0000:00:1a.0-* | |
651 | ||
652 | [Link] | |
653 | Name=internet0</programlisting> | |
654 | </example> | |
655 | ||
798d3a52 | 656 | <example> |
6c1695be | 657 | <title>/etc/systemd/network/25-wireless.link</title> |
1ff28eae | 658 | |
b97e7fab LP |
659 | <para>Here's an overly complex example that shows the use of a large number of [Match] and [Link] settings.</para> |
660 | ||
798d3a52 | 661 | <programlisting>[Match] |
7abaad1a | 662 | MACAddress=12:34:56:78:9a:bc |
663 | Driver=brcmsmac | |
664 | Path=pci-0000:02:00.0-* | |
665 | Type=wlan | |
666 | Virtualization=no | |
667 | Host=my-laptop | |
668 | Architecture=x86-64 | |
1ff28eae | 669 | |
7abaad1a | 670 | [Link] |
671 | Name=wireless0 | |
672 | MTUBytes=1450 | |
673 | BitsPerSecond=10M | |
674 | WakeOnLan=magic | |
675 | MACAddress=cb:a9:87:65:43:21</programlisting> | |
798d3a52 ZJS |
676 | </example> |
677 | </refsect1> | |
1ff28eae | 678 | |
798d3a52 ZJS |
679 | <refsect1> |
680 | <title>See Also</title> | |
681 | <para> | |
682 | <citerefentry> | |
683 | <refentrytitle>systemd-udevd.service</refentrytitle><manvolnum>8</manvolnum> | |
684 | </citerefentry>, | |
685 | <citerefentry> | |
686 | <refentrytitle>udevadm</refentrytitle><manvolnum>8</manvolnum> | |
687 | </citerefentry>, | |
688 | <citerefentry> | |
689 | <refentrytitle>systemd.netdev</refentrytitle><manvolnum>5</manvolnum> | |
690 | </citerefentry>, | |
691 | <citerefentry> | |
692 | <refentrytitle>systemd.network</refentrytitle><manvolnum>5</manvolnum> | |
693 | </citerefentry> | |
694 | </para> | |
695 | </refsect1> | |
1ff28eae TG |
696 | |
697 | </refentry> |