Debian Codegraph @

man/systemd-networkd.service.xml

raw
1 <?xml version='1.0'?> <!--*-nxml-*-->
2 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
4 <!-- SPDX-License-Identifier: LGPL-2.1-or-later -->
5
6 <refentry id="systemd-networkd.service" conditional='ENABLE_NETWORKD'>
7
8 <refentryinfo>
9 <title>systemd-networkd.service</title>
10 <productname>systemd</productname>
11 </refentryinfo>
12
13 <refmeta>
14 <refentrytitle>systemd-networkd.service</refentrytitle>
15 <manvolnum>8</manvolnum>
16 </refmeta>
17
18 <refnamediv>
19 <refname>systemd-networkd.service</refname>
20 <refname>systemd-networkd</refname>
21 <refpurpose>Network manager</refpurpose>
22 </refnamediv>
23
24 <refsynopsisdiv>
25 <para><filename>systemd-networkd.service</filename></para>
26 <para><filename>/usr/lib/systemd/systemd-networkd</filename></para>
27 </refsynopsisdiv>
28
29 <refsect1>
30 <title>Description</title>
31
32 <para><command>systemd-networkd</command> is a system service that
33 manages networks. It detects and configures network devices as
34 they appear, as well as creating virtual network devices.</para>
35
36 <para>Certain low-level settings of physical network devices (e.g. device
37 names and altnames) as well as the creation of SR-IOV virtual functions on
38 physical network interfaces may be managed by
39 <citerefentry><refentrytitle>systemd-udevd</refentrytitle><manvolnum>8</manvolnum></citerefentry>
40 according to the contents of
41 <citerefentry><refentrytitle>systemd.link</refentrytitle><manvolnum>5</manvolnum></citerefentry>
42 files.</para>
43
44 <para><command>systemd-networkd</command> will create "virtual" network
45 devices (e.g. bridges and tunnels) based on the configuration in
46 <citerefentry><refentrytitle>systemd.netdev</refentrytitle><manvolnum>5</manvolnum></citerefentry>
47 files, respecting the [Match] sections in those files.</para>
48
49 <para><command>systemd-networkd</command> will manage network addresses and
50 routes for any link for which it finds a <filename>.network</filename> file
51 with an appropriate [Match] section, see
52 <citerefentry><refentrytitle>systemd.network</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
53 For those links, it will flush existing network addresses and routes when
54 bringing up the device (except when directed not to). Any links not matched
55 by one of the <filename>.network</filename> files will be ignored. It is
56 also possible to explicitly tell <filename>systemd-networkd</filename> to
57 ignore a link by using the <varname>Unmanaged=yes</varname> option, see
58 <citerefentry><refentrytitle>systemd.network</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
59 </para>
60
61 <para>When <filename>systemd-networkd</filename> exits, it generally leaves existing network devices and
62 configuration intact. This makes it possible to transition from the initrd and to restart the service
63 without breaking connectivity. This also means that when configuration is updated and
64 <filename>systemd-networkd</filename> is restarted, netdev interfaces for which configuration was removed
65 will not be dropped, and may need to be cleaned up manually.</para>
66
67 <para><command>systemd-networkd</command> may be introspected and controlled at runtime using
68 <citerefentry><refentrytitle>networkctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>.
69 </para>
70
71 <para>See
72 <citerefentry><refentrytitle>org.freedesktop.network1</refentrytitle><manvolnum>5</manvolnum></citerefentry>
73 and
74 <citerefentry><refentrytitle>org.freedesktop.LogControl1</refentrytitle><manvolnum>5</manvolnum></citerefentry>
75 for a description of the D-Bus API.</para>
76 </refsect1>
77
78 <refsect1><title>Configuration Files</title>
79 <para>The configuration files are read from the files located in the
80 system network directory <filename>/usr/lib/systemd/network</filename>,
81 the volatile runtime network directory
82 <filename>/run/systemd/network</filename> and the local administration
83 network directory <filename>/etc/systemd/network</filename>.</para>
84
85 <para>Networks are configured in <filename>.network</filename>
86 files, see
87 <citerefentry><refentrytitle>systemd.network</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
88 and virtual network devices are configured in
89 <filename>.netdev</filename> files, see
90 <citerefentry><refentrytitle>systemd.netdev</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
91 </para>
92 </refsect1>
93
94 <refsect1>
95 <title>See Also</title>
96 <para><simplelist type="inline">
97 <member><citerefentry><refentrytitle>networkctl</refentrytitle><manvolnum>1</manvolnum></citerefentry></member>
98 <member><citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry></member>
99 <member><citerefentry><refentrytitle>systemd.link</refentrytitle><manvolnum>5</manvolnum></citerefentry></member>
100 <member><citerefentry><refentrytitle>systemd.network</refentrytitle><manvolnum>5</manvolnum></citerefentry></member>
101 <member><citerefentry><refentrytitle>systemd.netdev</refentrytitle><manvolnum>5</manvolnum></citerefentry></member>
102 <member><citerefentry><refentrytitle>systemd-networkd-wait-online.service</refentrytitle><manvolnum>8</manvolnum></citerefentry></member>
103 <member><citerefentry><refentrytitle>systemd-network-generator.service</refentrytitle><manvolnum>8</manvolnum></citerefentry></member>
104 <member><citerefentry><refentrytitle>org.freedesktop.network1</refentrytitle><manvolnum>5</manvolnum></citerefentry></member>
105 </simplelist></para>
106 </refsect1>
107
108 </refentry>