Section: systemd.link (5)
Network link configuration is performed by the net_setup_link udev builtin.
The link files are read from the files located in the system network directory /lib/systemd/network, the volatile runtime network directory /run/systemd/network, and the local administration network directory /etc/systemd/network. Link files must have the extension .link; other extensions are ignored. All link 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 /etc have the highest priority, files in /run take precedence over files with the same name in /lib. This can be used to override a system-supplied link file with a local file if needed; a symlink in /etc with the same name as a link file in /lib, pointing to /dev/null, disables the link file entirely.
The link file contains a "[Match]" section, which determines if a given link file may be applied to a given device; and 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.
A link file is said to match a device if each of the entries in the "[Match]" section matches, or if the section is empty. The following keys are accepted:
The "[Link]" section accepts the following keys:
Example 1. /etc/systemd/network/wireless.link
[Match] MACAddress=12:34:56:78:9a:bc Driver=brcmsmac Path=pci-0000:02:00.0-* Type=wlan Virtualization=no Host=my-laptop Architecture=x86-64 [Link] Name=wireless0 MTUBytes=1450 BitsPerSecond=10M WakeOnLan=magic MACAddress=cb:a9:87:65:43:21
Tutoriais de Tecnologia Web