]>
Commit | Line | Data |
---|---|---|
60f067b4 | 1 | '\" t |
e3bff60a | 2 | .TH "SYSTEMD\&.NETDEV" "5" "" "systemd 220" "systemd.network" |
60f067b4 JS |
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.netdev \- Virtual Network Device configuration | |
24 | .SH "SYNOPSIS" | |
25 | .PP | |
26 | \fInetdev\fR\&.netdev | |
27 | .SH "DESCRIPTION" | |
28 | .PP | |
29 | Network setup is performed by | |
30 | \fBsystemd-networkd\fR(8)\&. | |
31 | .PP | |
32 | Virtual Network Device files must have the extension | |
5eef597e | 33 | \&.netdev; other extensions are ignored\&. Virtual network devices are created as soon as networkd is started\&. If a netdev with the specified name already exists, networkd will use that as\-is rather than create its own\&. Note that the settings of the pre\-existing netdev will not be changed by networkd\&. |
60f067b4 JS |
34 | .PP |
35 | The | |
36 | \&.netdev | |
37 | files are read from the files located in the system network directory | |
38 | /usr/lib/systemd/network, the volatile runtime network directory | |
39 | /run/systemd/network | |
40 | and the local administration network directory | |
41 | /etc/systemd/network\&. All configuration files are collectively sorted and processed in lexical order, regardless of the directories in which they live\&. However, files with identical filenames replace each other\&. Files in | |
42 | /etc | |
43 | have the highest priority, files in | |
44 | /run | |
45 | take precedence over files with the same name in | |
46 | /usr/lib\&. This can be used to override a system\-supplied configuration file with a local file if needed; a symlink in | |
47 | /etc | |
48 | with the same name as a configuration file in | |
49 | /usr/lib, pointing to | |
50 | /dev/null, disables the configuration file entirely\&. | |
e735f4d4 MP |
51 | .SH "SUPPORTED NETDEV KINDS" |
52 | .PP | |
53 | The following kinds of virtual network devices may be configured in | |
54 | \&.netdev | |
55 | files: | |
56 | .sp | |
57 | .it 1 an-trap | |
58 | .nr an-no-space-flag 1 | |
59 | .nr an-break-flag 1 | |
60 | .br | |
61 | .B Table\ \&1.\ \&Supported kinds of virtual network devices | |
62 | .TS | |
63 | allbox tab(:); | |
64 | lB lB. | |
65 | T{ | |
66 | Kind | |
67 | T}:T{ | |
68 | Description | |
69 | T} | |
70 | .T& | |
71 | l l | |
72 | l l | |
73 | l l | |
74 | l l | |
75 | l l | |
76 | l l | |
77 | l l | |
78 | l l | |
79 | l l | |
80 | l l | |
81 | l l | |
82 | l l | |
83 | l l | |
84 | l l | |
85 | l l | |
86 | l l | |
87 | l l | |
e3bff60a | 88 | l l |
e735f4d4 MP |
89 | l l. |
90 | T{ | |
91 | \fIbond\fR | |
92 | T}:T{ | |
93 | A bond device is an aggregation of all its slave devices\&. See \m[blue]\fBLinux Ethernet Bonding Driver HOWTO\fR\m[]\&\s-2\u[1]\d\s+2 for details\&.Local configuration | |
94 | T} | |
95 | T{ | |
96 | \fIbridge\fR | |
97 | T}:T{ | |
e3bff60a | 98 | A bridge device is a software switch, each of its slave devices and the bridge itself are ports of the switch\&. |
e735f4d4 MP |
99 | T} |
100 | T{ | |
101 | \fIdummy\fR | |
102 | T}:T{ | |
103 | A dummy device drops all packets sent to it\&. | |
104 | T} | |
105 | T{ | |
106 | \fIgre\fR | |
107 | T}:T{ | |
108 | A Level 3 GRE tunnel over IPv4\&. See \m[blue]\fBRFC 2784\fR\m[]\&\s-2\u[2]\d\s+2 for details\&. | |
109 | T} | |
110 | T{ | |
111 | \fIgretap\fR | |
112 | T}:T{ | |
113 | A Level 2 GRE tunnel over IPv4\&. | |
114 | T} | |
115 | T{ | |
116 | \fIip6gre\fR | |
117 | T}:T{ | |
118 | A Level 3 GRE tunnel over IPv6\&. | |
119 | T} | |
120 | T{ | |
121 | \fIip6tnl\fR | |
122 | T}:T{ | |
123 | An IPv4 or IPv6 tunnel over IPv6 | |
124 | T} | |
125 | T{ | |
126 | \fIip6gretap\fR | |
127 | T}:T{ | |
128 | An Level 2 GRE tunnel over IPv6\&. | |
129 | T} | |
130 | T{ | |
131 | \fIipip\fR | |
132 | T}:T{ | |
133 | An IPv4 over IPv4 tunnel\&. | |
134 | T} | |
135 | T{ | |
136 | \fIipvlan\fR | |
137 | T}:T{ | |
138 | An ipvlan device is a stacked device which receives packets from its underlying device based on IP address filtering\&. | |
139 | T} | |
140 | T{ | |
141 | \fImacvlan\fR | |
142 | T}:T{ | |
143 | A macvlan device is a stacked device which receives packets from its underlying device based on MAC address filtering\&. | |
144 | T} | |
145 | T{ | |
146 | \fIsit\fR | |
147 | T}:T{ | |
148 | An IPv6 over IPv4 tunnel\&. | |
149 | T} | |
150 | T{ | |
151 | \fItap\fR | |
152 | T}:T{ | |
153 | A persistent Level 2 tunnel between a network device and a device node\&. | |
154 | T} | |
155 | T{ | |
156 | \fItun\fR | |
157 | T}:T{ | |
158 | A persistent Level 3 tunnel between a network device and a device node\&. | |
159 | T} | |
160 | T{ | |
161 | \fIveth\fR | |
162 | T}:T{ | |
163 | An ethernet tunnel between a pair of network devices\&. | |
164 | T} | |
165 | T{ | |
166 | \fIvlan\fR | |
167 | T}:T{ | |
168 | A VLAN is a stacked device which receives packets from its underlying device based on VLAN tagging\&. See \m[blue]\fBIEEE 802\&.1Q\fR\m[]\&\s-2\u[3]\d\s+2 for details\&. | |
169 | T} | |
170 | T{ | |
171 | \fIvti\fR | |
172 | T}:T{ | |
173 | An IPv4 over IPSec tunnel\&. | |
174 | T} | |
175 | T{ | |
e3bff60a MP |
176 | \fIvti6\fR |
177 | T}:T{ | |
178 | An IPv6 over IPSec tunnel\&. | |
179 | T} | |
180 | T{ | |
e735f4d4 MP |
181 | \fIvxlan\fR |
182 | T}:T{ | |
183 | A virtual extensible LAN (vxlan), for connecting Cloud computing deployments\&. | |
184 | T} | |
185 | .TE | |
186 | .sp 1 | |
e842803a | 187 | .SH "[MATCH] SECTION OPTIONS" |
60f067b4 JS |
188 | .PP |
189 | A virtual network device is only created if the | |
190 | "[Match]" | |
191 | section matches the current environment, or if the section is empty\&. The following keys are accepted: | |
192 | .PP | |
193 | \fIHost=\fR | |
194 | .RS 4 | |
195 | Matches against the hostname or machine ID of the host\&. See | |
196 | "ConditionHost=" | |
197 | in | |
198 | \fBsystemd.unit\fR(5) | |
199 | for details\&. | |
200 | .RE | |
201 | .PP | |
202 | \fIVirtualization=\fR | |
203 | .RS 4 | |
204 | Checks whether the system is executed in a virtualized environment and optionally test whether it is a specific implementation\&. See | |
205 | "ConditionVirtualization=" | |
206 | in | |
207 | \fBsystemd.unit\fR(5) | |
208 | for details\&. | |
209 | .RE | |
210 | .PP | |
211 | \fIKernelCommandLine=\fR | |
212 | .RS 4 | |
213 | Checks whether a specific kernel command line option is set (or if prefixed with the exclamation mark unset)\&. See | |
214 | "ConditionKernelCommandLine=" | |
215 | in | |
216 | \fBsystemd.unit\fR(5) | |
217 | for details\&. | |
218 | .RE | |
219 | .PP | |
220 | \fIArchitecture=\fR | |
221 | .RS 4 | |
222 | Checks whether the system is running on a specific architecture\&. See | |
223 | "ConditionArchitecture=" | |
224 | in | |
225 | \fBsystemd.unit\fR(5) | |
226 | for details\&. | |
227 | .RE | |
e842803a | 228 | .SH "[NETDEV] SECTION OPTIONS" |
60f067b4 JS |
229 | .PP |
230 | The | |
231 | "[NetDev]" | |
232 | section accepts the following keys: | |
233 | .PP | |
e842803a MB |
234 | \fIDescription=\fR |
235 | .RS 4 | |
236 | A free\-form description of the netdev\&. | |
237 | .RE | |
238 | .PP | |
60f067b4 JS |
239 | \fIName=\fR |
240 | .RS 4 | |
241 | The interface name used when creating the netdev\&. This option is compulsory\&. | |
242 | .RE | |
243 | .PP | |
244 | \fIKind=\fR | |
245 | .RS 4 | |
e735f4d4 MP |
246 | The netdev kind\&. This option is compulsory\&. See the |
247 | "Supported netdev kinds" | |
248 | section for the valid keys\&. | |
60f067b4 JS |
249 | .RE |
250 | .PP | |
e842803a MB |
251 | \fIMTUBytes=\fR |
252 | .RS 4 | |
e3bff60a | 253 | 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\&. This key is not currently supported for |
5eef597e MP |
254 | "tun" |
255 | or | |
256 | "tap" | |
257 | devices\&. | |
e842803a MB |
258 | .RE |
259 | .PP | |
260 | \fIMACAddress=\fR | |
261 | .RS 4 | |
262 | The MAC address to use for the device\&. If none is given, one is generated based on the interface name and the | |
e3bff60a | 263 | \fBmachine-id\fR(5)\&. This key is not currently supported for |
5eef597e MP |
264 | "tun" |
265 | or | |
266 | "tap" | |
267 | devices\&. | |
e842803a MB |
268 | .RE |
269 | .SH "[VLAN] SECTION OPTIONS" | |
270 | .PP | |
60f067b4 JS |
271 | The |
272 | "[VLAN]" | |
273 | section only applies for netdevs of kind | |
274 | "vlan", and accepts the following key: | |
275 | .PP | |
276 | \fIId=\fR | |
277 | .RS 4 | |
278 | The VLAN ID to use\&. An integer in the range 0\(en4094\&. This option is compulsory\&. | |
279 | .RE | |
e842803a | 280 | .SH "[MACVLAN] SECTION OPTIONS" |
60f067b4 JS |
281 | .PP |
282 | The | |
283 | "[MACVLAN]" | |
284 | section only applies for netdevs of kind | |
285 | "macvlan", and accepts the following key: | |
286 | .PP | |
287 | \fIMode=\fR | |
288 | .RS 4 | |
289 | The MACVLAN mode to use\&. The supported options are | |
290 | "private", | |
291 | "vepa", | |
e735f4d4 | 292 | "bridge", and |
60f067b4 JS |
293 | "passthru"\&. |
294 | .RE | |
e735f4d4 MP |
295 | .SH "[IPVLAN] SECTION OPTIONS" |
296 | .PP | |
297 | The | |
298 | "[IPVLAN]" | |
299 | section only applies for netdevs of kind | |
300 | "ipvlan", and accepts the following key: | |
301 | .PP | |
302 | \fIMode=\fR | |
303 | .RS 4 | |
304 | The IPVLAN mode to use\&. The supported options are | |
305 | "L2" | |
306 | and | |
307 | "L3"\&. | |
308 | .RE | |
e842803a MB |
309 | .SH "[VXLAN] SECTION OPTIONS" |
310 | .PP | |
311 | The | |
312 | "[VXLAN]" | |
313 | section only applies for netdevs of kind | |
e735f4d4 | 314 | "vxlan", and accepts the following keys: |
e842803a MB |
315 | .PP |
316 | \fIId=\fR | |
317 | .RS 4 | |
318 | The VXLAN ID to use\&. | |
319 | .RE | |
320 | .PP | |
321 | \fIGroup=\fR | |
322 | .RS 4 | |
323 | An assigned multicast group IP address\&. | |
324 | .RE | |
325 | .PP | |
326 | \fITOS=\fR | |
327 | .RS 4 | |
328 | The Type Of Service byte value for a vxlan interface\&. | |
329 | .RE | |
330 | .PP | |
331 | \fITTL=\fR | |
332 | .RS 4 | |
333 | A fixed Time To Live N on Virtual eXtensible Local Area Network packets\&. N is a number in the range 1\-255\&. 0 is a special value meaning that packets inherit the TTL value\&. | |
334 | .RE | |
335 | .PP | |
336 | \fIMacLearning=\fR | |
337 | .RS 4 | |
338 | A boolean\&. When true, enables dynamic MAC learning to discover remote MAC addresses\&. | |
339 | .RE | |
f47781d8 MP |
340 | .PP |
341 | \fIFDBAgeingSec=\fR | |
342 | .RS 4 | |
343 | The lifetime of Forwarding Database entry learnt by the kernel in seconds\&. | |
344 | .RE | |
345 | .PP | |
346 | \fIARPProxy=\fR | |
347 | .RS 4 | |
348 | A boolean\&. When true, enables ARP proxy\&. | |
349 | .RE | |
350 | .PP | |
351 | \fIL2MissNotification=\fR | |
352 | .RS 4 | |
353 | A boolean\&. When true, enables netlink LLADDR miss notifications\&. | |
354 | .RE | |
355 | .PP | |
356 | \fIL3MissNotification=\fR | |
357 | .RS 4 | |
358 | A boolean\&. When true, enables netlink IP ADDR miss notifications\&. | |
359 | .RE | |
360 | .PP | |
361 | \fIRouteShortCircuit=\fR | |
362 | .RS 4 | |
363 | A boolean\&. When true route short circuit is turned on\&. | |
364 | .RE | |
e3bff60a MP |
365 | .PP |
366 | \fIUDPCheckSum=\fR | |
367 | .RS 4 | |
368 | A boolean\&. When true transmitting UDP checksums when doing VXLAN/IPv4 is turned on\&. | |
369 | .RE | |
370 | .PP | |
371 | \fIUDP6ZeroChecksumTx=\fR | |
372 | .RS 4 | |
373 | A boolean\&. When true sending zero checksums in VXLAN/IPv6 is turned on\&. | |
374 | .RE | |
375 | .PP | |
376 | \fIUDP6ZeroCheckSumRx=\fR | |
377 | .RS 4 | |
378 | A boolean\&. When true receiving zero checksums in VXLAN/IPv6 is turned on\&. | |
379 | .RE | |
e842803a MB |
380 | .SH "[TUNNEL] SECTION OPTIONS" |
381 | .PP | |
382 | The | |
383 | "[Tunnel]" | |
384 | section only applies for netdevs of kind | |
385 | "ipip", | |
386 | "sit", | |
e735f4d4 MP |
387 | "gre", |
388 | "gretap", | |
389 | "ip6gre", | |
390 | "ip6gretap", | |
e3bff60a MP |
391 | "vti", |
392 | "vti6", and | |
e735f4d4 | 393 | "ip6tnl" |
e842803a MB |
394 | and accepts the following keys: |
395 | .PP | |
396 | \fILocal=\fR | |
397 | .RS 4 | |
398 | A static local address for tunneled packets\&. It must be an address on another interface of this host\&. | |
399 | .RE | |
400 | .PP | |
401 | \fIRemote=\fR | |
402 | .RS 4 | |
403 | The remote endpoint of the tunnel\&. | |
404 | .RE | |
405 | .PP | |
406 | \fITOS=\fR | |
407 | .RS 4 | |
408 | The Type Of Service byte value for a tunnel interface\&. For details about the TOS see the | |
e735f4d4 | 409 | \m[blue]\fBType of Service in the Internet Protocol Suite\fR\m[]\&\s-2\u[4]\d\s+2 |
e842803a MB |
410 | document\&. |
411 | .RE | |
412 | .PP | |
413 | \fITTL=\fR | |
414 | .RS 4 | |
415 | A fixed Time To Live N on tunneled packets\&. N is a number in the range 1\-255\&. 0 is a special value meaning that packets inherit the TTL value\&. The default value for IPv4 tunnels is: inherit\&. The default value for IPv6 tunnels is: 64\&. | |
416 | .RE | |
417 | .PP | |
418 | \fIDiscoverPathMTU=\fR | |
419 | .RS 4 | |
420 | A boolean\&. When true, enables Path MTU Discovery on the tunnel\&. | |
421 | .RE | |
e735f4d4 MP |
422 | .PP |
423 | \fIMode=\fR | |
424 | .RS 4 | |
425 | An | |
426 | "ip6tnl" | |
427 | tunnels can have three modes | |
428 | "ip6ip6" | |
429 | for IPv6 over IPv6, | |
430 | "ipip6" | |
431 | for IPv4 over IPv6 or | |
432 | "any" | |
433 | for either\&. | |
434 | .RE | |
e842803a MB |
435 | .SH "[PEER] SECTION OPTIONS" |
436 | .PP | |
437 | The | |
438 | "[Peer]" | |
439 | section only applies for netdevs of kind | |
440 | "veth" | |
441 | and accepts the following key: | |
442 | .PP | |
443 | \fIName=\fR | |
444 | .RS 4 | |
445 | The interface name used when creating the netdev\&. This option is compulsory\&. | |
446 | .RE | |
447 | .PP | |
448 | \fIMACAddress=\fR | |
449 | .RS 4 | |
450 | The peer MACAddress, if not set it is generated in the same way as the MAC address of the main interface\&. | |
451 | .RE | |
452 | .SH "[TUN] SECTION OPTIONS" | |
453 | .PP | |
454 | The | |
455 | "[Tun]" | |
456 | section only applies for netdevs of kind | |
457 | "tun", and accepts the following keys: | |
458 | .PP | |
459 | \fIOneQueue=\fR | |
460 | .RS 4 | |
461 | Takes a boolean argument\&. Configures whether all packets are queued at the device (enabled), or a fixed number of packets are queued at the device and the rest at the | |
462 | "qdisc"\&. Defaults to | |
463 | "no"\&. | |
464 | .RE | |
465 | .PP | |
466 | \fIMultiQueue=\fR | |
467 | .RS 4 | |
468 | Takes a boolean argument\&. Configures whether to use multiple file descriptors (queues) to parallelize packets sending and receiving\&. Defaults to | |
469 | "no"\&. | |
470 | .RE | |
471 | .PP | |
472 | \fIPacketInfo=\fR | |
473 | .RS 4 | |
e3bff60a | 474 | Takes a boolean argument\&. Configures whether packets should be prepended with four extra bytes (two flag bytes and two protocol bytes)\&. If disabled it indicates that the packets will be pure IP packets\&. Defaults to |
e842803a MB |
475 | "no"\&. |
476 | .RE | |
477 | .PP | |
478 | \fIUser=\fR | |
479 | .RS 4 | |
480 | User to grant access to the | |
481 | /dev/net/tun | |
482 | device\&. | |
483 | .RE | |
484 | .PP | |
485 | \fIGroup=\fR | |
486 | .RS 4 | |
487 | Group to grant access to the | |
488 | /dev/net/tun | |
489 | device\&. | |
490 | .RE | |
491 | .SH "[TAP] SECTION OPTIONS" | |
492 | .PP | |
493 | The | |
494 | "[Tap]" | |
495 | section only applies for netdevs of kind | |
496 | "tap", and accepts the same keys as the | |
497 | "[Tun]" | |
498 | section\&. | |
5eef597e MP |
499 | .SH "[BOND] SECTION OPTIONS" |
500 | .PP | |
501 | The | |
502 | "[Bond]" | |
503 | section accepts the following key: | |
504 | .PP | |
505 | \fIMode=\fR | |
506 | .RS 4 | |
507 | Specifies one of the bonding policies\&. The default is | |
508 | "balance\-rr" | |
509 | (round robin)\&. Possible values are | |
510 | "balance\-rr", | |
511 | "active\-backup", | |
512 | "balance\-xor", | |
513 | "broadcast", | |
514 | "802\&.3ad", | |
515 | "balance\-tlb", and | |
516 | "balance\-alb"\&. | |
517 | .RE | |
518 | .PP | |
519 | \fITransmitHashPolicy=\fR | |
520 | .RS 4 | |
521 | Selects the transmit hash policy to use for slave selection in balance\-xor, 802\&.3ad, and tlb modes\&. Possible values are | |
522 | "layer2", | |
523 | "layer3+4", | |
524 | "layer2+3", | |
525 | "encap2+3", | |
526 | "802\&.3ad", and | |
527 | "encap3+4"\&. | |
528 | .RE | |
529 | .PP | |
530 | \fILACPTransmitRate=\fR | |
531 | .RS 4 | |
532 | Specifies the rate with which link partner transmits Link Aggregation Control Protocol Data Unit packets in 802\&.3ad mode\&. Possible values are | |
533 | "slow", which requests partner to transmit LACPDUs every 30 seconds, and | |
534 | "fast", which requests partner to transmit LACPDUs every second\&. The default value is | |
535 | "slow"\&. | |
536 | .RE | |
537 | .PP | |
538 | \fIMIIMonitorSec=\fR | |
539 | .RS 4 | |
540 | Specifies the frequency that Media Independent Interface link monitoring will occur\&. A value of zero disables MII link monitoring\&. This values is rounded down to the nearest millisecond\&. The default value is 0\&. | |
541 | .RE | |
542 | .PP | |
543 | \fIUpDelaySec=\fR | |
544 | .RS 4 | |
545 | Specifies the delay before a link is enabled after a link up status has been detected\&. This value is rounded down to a multiple of MIIMonitorSec\&. The default value is 0\&. | |
546 | .RE | |
547 | .PP | |
548 | \fIDownDelaySec=\fR | |
549 | .RS 4 | |
550 | Specifies the delay before a link is disabled after a link down status has been detected\&. This value is rounded down to a multiple of MIIMonitorSec\&. The default value is 0\&. | |
551 | .RE | |
e3bff60a MP |
552 | .PP |
553 | \fILearnPacketIntervalSec=\fR | |
554 | .RS 4 | |
555 | Specifies the number of seconds between instances where the bonding driver sends learning packets to each slaves peer switch\&. The valid range is 1 \- 0x7fffffff; the default value is 1\&. This Option has effect only in balance\-tlb and balance\-alb modes\&. | |
556 | .RE | |
557 | .PP | |
558 | \fIAdSelect=\fR | |
559 | .RS 4 | |
560 | Specifies the 802\&.3ad aggregation selection logic to use\&. Possible values are | |
561 | "stable", | |
562 | "bandwidth", | |
563 | "count" | |
564 | .RE | |
565 | .PP | |
566 | \fIFailOverMACPolicy=\fR | |
567 | .RS 4 | |
568 | Specifies whether active\-backup mode should set all slaves to the same MAC address at enslavement or, when enabled, perform special handling of the bond\*(Aqs MAC address in accordance with the selected policy\&. The default policy is none\&. Possible values are | |
569 | "none", | |
570 | "active", | |
571 | "follow" | |
572 | .RE | |
573 | .PP | |
574 | \fIARPValidate=\fR | |
575 | .RS 4 | |
576 | Specifies whether or not ARP probes and replies should be validated in any mode that supports ARP monitoring, or whether non\-ARP traffic should be filtered (disregarded) for link monitoring purposes\&. Possible values are | |
577 | "none", | |
578 | "active", | |
579 | "backup", | |
580 | "all" | |
581 | .RE | |
582 | .PP | |
583 | \fIARPIntervalSec=\fR | |
584 | .RS 4 | |
585 | Specifies the ARP link monitoring frequency in milliseconds\&. A value of 0 disables ARP monitoring\&. The default value is 0\&. | |
586 | .RE | |
587 | .PP | |
588 | \fIARPIPTargets=\fR | |
589 | .RS 4 | |
590 | Specifies the IP addresses to use as ARP monitoring peers when ARPIntervalSec is greater than 0\&. These are the targets of the ARP request sent to determine the health of the link to the targets\&. Specify these values in ipv4 dotted decimal format\&. At least one IP address must be given for ARP monitoring to function\&. The maximum number of targets that can be specified is 16\&. The default value is no IP addresses\&. | |
591 | .RE | |
592 | .PP | |
593 | \fIARPAllTargets=\fR | |
594 | .RS 4 | |
595 | Specifies the quantity of ARPIPTargets that must be reachable in order for the ARP monitor to consider a slave as being up\&. This option affects only active\-backup mode for slaves with ARPValidate enabled\&. Possible values are | |
596 | "any", | |
597 | "all" | |
598 | .RE | |
599 | .PP | |
600 | \fIPrimaryReselectPolicy=\fR | |
601 | .RS 4 | |
602 | Specifies the reselection policy for the primary slave\&. This affects how the primary slave is chosen to become the active slave when failure of the active slave or recovery of the primary slave occurs\&. This option is designed to prevent flip\-flopping between the primary slave and other slaves\&. Possible values are | |
603 | "always", | |
604 | "better", | |
605 | "failure" | |
606 | .RE | |
607 | .PP | |
608 | \fIResendIGMP=\fR | |
609 | .RS 4 | |
610 | Specifies the number of IGMP membership reports to be issued after a failover event\&. One membership report is issued immediately after the failover, subsequent packets are sent in each 200ms interval\&. The valid range is (0 \- 255)\&. Defaults to 1\&. A value of 0 prevents the IGMP membership report from being issued in response to the failover event\&. | |
611 | .RE | |
612 | .PP | |
613 | \fIPacketsPerSlave=\fR | |
614 | .RS 4 | |
615 | Specify the number of packets to transmit through a slave before moving to the next one\&. When set to 0 then a slave is chosen at random\&.The valid range is (0 \- 65535)\&. Defaults to 1\&. This option has effect only in balance\-rr mode\&. | |
616 | .RE | |
617 | .PP | |
618 | \fIGratuitousARP=\fR | |
619 | .RS 4 | |
620 | Specify the number of peer notifications (gratuitous ARPs and unsolicited IPv6 Neighbor Advertisements) to be issued after a failover event\&. As soon as the link is up on the new slave a peer notification is sent on the bonding device and each VLAN sub\-device\&. This is repeated at each link monitor interval (ARPIntervalSec or MIIMonitorSec, whichever is active) if the number is greater than 1\&. The valid range is (0 \- 255)\&. Default value is 1\&. These options affect only the active\-backup mode\&. | |
621 | .RE | |
622 | .PP | |
623 | \fIAllSlavesActive=\fR | |
624 | .RS 4 | |
625 | A boolean\&. Specifies that duplicate frames (received on inactive ports) should be dropped false or delivered true\&. Normally, bonding will drop duplicate frames (received on inactive ports), which is desirable for most users\&. But there are some times it is nice to allow duplicate frames to be delivered\&. The default value is false (drop duplicate frames received on inactive ports)\&. | |
626 | .RE | |
627 | .PP | |
628 | \fIMinLinks=\fR | |
629 | .RS 4 | |
630 | Specifies the minimum number of links that must be active before asserting carrier\&. The default value is 0\&. | |
631 | .RE | |
632 | .PP | |
633 | For more detail information see | |
634 | \m[blue]\fBLinux Ethernet Bonding Driver HOWTO\fR\m[]\&\s-2\u[1]\d\s+2 | |
60f067b4 JS |
635 | .SH "EXAMPLE" |
636 | .PP | |
637 | \fBExample\ \&1.\ \&/etc/systemd/network/bridge.netdev\fR | |
638 | .sp | |
639 | .if n \{\ | |
640 | .RS 4 | |
641 | .\} | |
642 | .nf | |
643 | [NetDev] | |
644 | Name=bridge0 | |
645 | Kind=bridge | |
646 | .fi | |
647 | .if n \{\ | |
648 | .RE | |
649 | .\} | |
650 | .PP | |
651 | \fBExample\ \&2.\ \&/etc/systemd/network/vlan1.netdev\fR | |
652 | .sp | |
653 | .if n \{\ | |
654 | .RS 4 | |
655 | .\} | |
656 | .nf | |
657 | [Match] | |
658 | Virtualization=no | |
659 | ||
660 | [NetDev] | |
661 | Name=vlan1 | |
662 | Kind=vlan | |
663 | ||
664 | [VLAN] | |
665 | Id=1 | |
666 | .fi | |
667 | .if n \{\ | |
668 | .RE | |
669 | .\} | |
e842803a MB |
670 | .PP |
671 | \fBExample\ \&3.\ \&/etc/systemd/network/ipip.netdev\fR | |
672 | .sp | |
673 | .if n \{\ | |
674 | .RS 4 | |
675 | .\} | |
676 | .nf | |
677 | [NetDev] | |
678 | Name=ipip\-tun | |
679 | Kind=ipip | |
680 | MTUBytes=1480 | |
681 | ||
682 | [Tunnel] | |
683 | Local=192\&.168\&.223\&.238 | |
684 | Remote=192\&.169\&.224\&.239 | |
685 | TTL=64 | |
686 | .fi | |
687 | .if n \{\ | |
688 | .RE | |
689 | .\} | |
690 | .PP | |
691 | \fBExample\ \&4.\ \&/etc/systemd/network/tap.netdev\fR | |
692 | .sp | |
693 | .if n \{\ | |
694 | .RS 4 | |
695 | .\} | |
696 | .nf | |
697 | [NetDev] | |
698 | Name=tap\-test | |
699 | Kind=tap | |
700 | ||
701 | [Tap] | |
702 | MultiQueue=true | |
703 | PacketInfo=true | |
704 | .fi | |
705 | .if n \{\ | |
706 | .RE | |
707 | .\} | |
708 | .PP | |
709 | \fBExample\ \&5.\ \&/etc/systemd/network/sit.netdev\fR | |
710 | .sp | |
711 | .if n \{\ | |
712 | .RS 4 | |
713 | .\} | |
714 | .nf | |
715 | [NetDev] | |
716 | Name=sit\-tun | |
717 | Kind=sit | |
718 | MTUBytes=1480 | |
719 | ||
720 | [Tunnel] | |
721 | Local=10\&.65\&.223\&.238 | |
722 | Remote=10\&.65\&.223\&.239 | |
723 | .fi | |
724 | .if n \{\ | |
725 | .RE | |
726 | .\} | |
727 | .PP | |
728 | \fBExample\ \&6.\ \&/etc/systemd/network/gre.netdev\fR | |
729 | .sp | |
730 | .if n \{\ | |
731 | .RS 4 | |
732 | .\} | |
733 | .nf | |
734 | [NetDev] | |
735 | Name=gre\-tun | |
736 | Kind=gre | |
737 | MTUBytes=1480 | |
738 | ||
739 | [Tunnel] | |
740 | Local=10\&.65\&.223\&.238 | |
741 | Remote=10\&.65\&.223\&.239 | |
742 | .fi | |
743 | .if n \{\ | |
744 | .RE | |
745 | .\} | |
746 | .PP | |
747 | \fBExample\ \&7.\ \&/etc/systemd/network/vti.netdev\fR | |
748 | .sp | |
749 | .if n \{\ | |
750 | .RS 4 | |
751 | .\} | |
752 | .nf | |
753 | [NetDev] | |
754 | Name=vti\-tun | |
755 | Kind=vti | |
756 | MTUBytes=1480 | |
757 | ||
758 | [Tunnel] | |
759 | Local=10\&.65\&.223\&.238 | |
760 | Remote=10\&.65\&.223\&.239 | |
761 | .fi | |
762 | .if n \{\ | |
763 | .RE | |
764 | .\} | |
765 | .PP | |
766 | \fBExample\ \&8.\ \&/etc/systemd/network/veth.netdev\fR | |
767 | .sp | |
768 | .if n \{\ | |
769 | .RS 4 | |
770 | .\} | |
771 | .nf | |
772 | [NetDev] | |
773 | Name=veth\-test | |
774 | Kind=veth | |
775 | ||
776 | [Peer] | |
777 | Name=veth\-peer | |
778 | .fi | |
779 | .if n \{\ | |
780 | .RE | |
781 | .\} | |
782 | .PP | |
783 | \fBExample\ \&9.\ \&/etc/systemd/network/dummy.netdev\fR | |
784 | .sp | |
785 | .if n \{\ | |
786 | .RS 4 | |
787 | .\} | |
788 | .nf | |
789 | [NetDev] | |
790 | Name=dummy\-test | |
791 | Kind=dummy | |
792 | MACAddress=12:34:56:78:9a:bc | |
793 | .fi | |
794 | .if n \{\ | |
795 | .RE | |
796 | .\} | |
60f067b4 JS |
797 | .SH "SEE ALSO" |
798 | .PP | |
799 | \fBsystemd\fR(1), | |
800 | \fBsystemd-networkd\fR(8), | |
e735f4d4 | 801 | \fBsystemd.link\fR(5), |
60f067b4 | 802 | \fBsystemd.network\fR(5) |
e842803a MB |
803 | .SH "NOTES" |
804 | .IP " 1." 4 | |
e735f4d4 MP |
805 | Linux Ethernet Bonding Driver HOWTO |
806 | .RS 4 | |
807 | \%https://www.kernel.org/doc/Documentation/networking/bonding.txt | |
808 | .RE | |
809 | .IP " 2." 4 | |
810 | RFC 2784 | |
811 | .RS 4 | |
812 | \%https://tools.ietf.org/html/rfc2784 | |
813 | .RE | |
814 | .IP " 3." 4 | |
815 | IEEE 802.1Q | |
816 | .RS 4 | |
817 | \%http://www.ieee802.org/1/pages/802.1Q.html | |
818 | .RE | |
819 | .IP " 4." 4 | |
e842803a MB |
820 | Type of Service in the Internet Protocol Suite |
821 | .RS 4 | |
822 | \%http://tools.ietf.org/html/rfc1349 | |
823 | .RE |