конфигурация сети (Network configuration)
Описание (Description)
A plain ini-style text file that encodes network configuration
for matching network interfaces, used by systemd-networkd(8). See
systemd.syntax(7) for a general description of the syntax.
The main network file must have the extension .network; other
extensions are ignored. Networks are applied to links whenever
the links appear.
The .network files are read from the files located in the system
network directories /usr/lib/systemd/network and
/usr/local/lib/systemd/network, the volatile runtime network
directory /run/systemd/network and the local administration
network directory /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 /etc/ have
the highest priority, files in /run/ take precedence over files
with the same name under /usr/. This can be used to override a
system-supplied configuration 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 /dev/null disables the configuration
file entirely (it is "masked").
Along with the network file foo.network, a "drop-in" directory
foo.network.d/ may exist. All files with the suffix ".conf" 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.
In addition to /etc/systemd/network, drop-in ".d" directories can
be placed in /usr/lib/systemd/network or /run/systemd/network
directories. Drop-in files in /etc/ take precedence over those in
/run/ which in turn take precedence over those in /usr/lib/.
Drop-in files under any of these directories take precedence over
the main network file wherever located.