1:255.16-alt1
[systemd_ALT.git] / man / systemd-networkd.service.xml
blob12cd4c331bd0f87085d69d924070445687a544c1
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.2/docbookx.dtd">
4 <!-- SPDX-License-Identifier: LGPL-2.1-or-later -->
6 <refentry id="systemd-networkd.service" conditional='ENABLE_NETWORKD'>
8   <refentryinfo>
9     <title>systemd-networkd.service</title>
10     <productname>systemd</productname>
11   </refentryinfo>
13   <refmeta>
14     <refentrytitle>systemd-networkd.service</refentrytitle>
15     <manvolnum>8</manvolnum>
16   </refmeta>
18   <refnamediv>
19     <refname>systemd-networkd.service</refname>
20     <refname>systemd-networkd</refname>
21     <refpurpose>Network manager</refpurpose>
22   </refnamediv>
24   <refsynopsisdiv>
25     <para><filename>systemd-networkd.service</filename></para>
26     <para><filename>/usr/lib/systemd/systemd-networkd</filename></para>
27   </refsynopsisdiv>
29   <refsect1>
30     <title>Description</title>
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>
36     <para>To configure low-level link settings independently of
37     networks, see
38     <citerefentry><refentrytitle>systemd.link</refentrytitle><manvolnum>5</manvolnum></citerefentry>.</para>
40     <para><command>systemd-networkd</command> will create network devices based
41     on the configuration in
42     <citerefentry><refentrytitle>systemd.netdev</refentrytitle><manvolnum>5</manvolnum></citerefentry>
43     files, respecting the [Match] sections in those files.</para>
45     <para><command>systemd-networkd</command> will manage network addresses and
46     routes for any link for which it finds a <filename>.network</filename> file
47     with an appropriate [Match] section, see
48     <citerefentry><refentrytitle>systemd.network</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
49     For those links, it will flush existing network addresses and routes when
50     bringing up the device. Any links not matched by one of the
51     <filename>.network</filename> files will be ignored. It is also possible to
52     explicitly tell <filename>systemd-networkd</filename> to ignore a link by
53     using <varname>Unmanaged=yes</varname> option, see
54     <citerefentry><refentrytitle>systemd.network</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
55     </para>
57     <para>When <filename>systemd-networkd</filename> exits, it generally leaves existing network devices and
58     configuration intact. This makes it possible to transition from the initrd and to restart the service
59     without breaking connectivity. This also means that when configuration is updated and
60     <filename>systemd-networkd</filename> is restarted, netdev interfaces for which configuration was removed
61     will not be dropped, and may need to be cleaned up manually.</para>
63     <para><command>systemd-networkd</command> may be introspected and controlled at runtime using
64     <citerefentry><refentrytitle>networkctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>.
65     </para>
66   </refsect1>
68   <refsect1><title>Configuration Files</title>
69     <para>The configuration files are read from the files located in the
70     system network directory <filename>/usr/lib/systemd/network</filename>,
71     the volatile runtime network directory
72     <filename>/run/systemd/network</filename> and the local administration
73     network directory <filename>/etc/systemd/network</filename>.</para>
75     <para>Networks are configured in <filename>.network</filename>
76     files, see
77     <citerefentry><refentrytitle>systemd.network</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
78     and virtual network devices are configured in
79     <filename>.netdev</filename> files, see
80     <citerefentry><refentrytitle>systemd.netdev</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
81     </para>
82   </refsect1>
84   <refsect1>
85     <title>See Also</title>
86     <para>
87       <citerefentry><refentrytitle>networkctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
88       <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
89       <citerefentry><refentrytitle>systemd.link</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
90       <citerefentry><refentrytitle>systemd.network</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
91       <citerefentry><refentrytitle>systemd.netdev</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
92       <citerefentry><refentrytitle>systemd-networkd-wait-online.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
93       <citerefentry><refentrytitle>systemd-network-generator.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>
94     </para>
95   </refsect1>
97 </refentry>