]> git.ipfire.org Git - thirdparty/systemd.git/blame - man/systemd-networkd.service.xml
travis: add more ASan options
[thirdparty/systemd.git] / man / systemd-networkd.service.xml
CommitLineData
46b0925d 1<?xml version='1.0'?> <!--*-nxml-*-->
3a54a157 2<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
12b42c76 3 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
0307f791 4<!-- SPDX-License-Identifier: LGPL-2.1+ -->
46b0925d 5
2b70d172 6<refentry id="systemd-networkd.service" conditional='ENABLE_NETWORKD'>
46b0925d 7
798d3a52
ZJS
8 <refentryinfo>
9 <title>systemd-networkd.service</title>
10 <productname>systemd</productname>
798d3a52
ZJS
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>
12b42c76 26 <para><filename>/usr/lib/systemd/systemd-networkd</filename></para>
798d3a52
ZJS
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>To configure low-level link settings independently of
37 networks, see
38 <citerefentry><refentrytitle>systemd.link</refentrytitle><manvolnum>5</manvolnum></citerefentry>.</para>
39
1c126944
ZJS
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>
44
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>
56
57 <para>When <filename>systemd-networkd</filename> exits, it generally leaves
58 existing network devices and configuration intact. This makes it possible to
bb01aab6 59 transition from the initramfs and to restart the service without breaking
1c126944
ZJS
60 connectivity. This also means that when configuration is updated and
61 <filename>systemd-networkd</filename> is restarted, netdev interfaces for
62 which configuration was removed will not be dropped, and may need to be
63 cleaned up manually.</para>
798d3a52
ZJS
64 </refsect1>
65
66 <refsect1><title>Configuration Files</title>
67 <para>The configuration files are read from the files located in the
12b42c76 68 system network directory <filename>/usr/lib/systemd/network</filename>,
798d3a52
ZJS
69 the volatile runtime network directory
70 <filename>/run/systemd/network</filename> and the local administration
12b42c76 71 network directory <filename>/etc/systemd/network</filename>.</para>
798d3a52
ZJS
72
73 <para>Networks are configured in <filename>.network</filename>
74 files, see
75 <citerefentry><refentrytitle>systemd.network</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
76 and virtual network devices are configured in
77 <filename>.netdev</filename> files, see
78 <citerefentry><refentrytitle>systemd.netdev</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
79 </para>
80 </refsect1>
81
82 <refsect1>
83 <title>See Also</title>
84 <para>
85 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
86 <citerefentry><refentrytitle>systemd.link</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
87 <citerefentry><refentrytitle>systemd.network</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
88 <citerefentry><refentrytitle>systemd.netdev</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
89 <citerefentry><refentrytitle>systemd-networkd-wait-online.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>
90 </para>
91 </refsect1>
46b0925d
TG
92
93</refentry>