1NETWORKD.CONF(5)                 networkd.conf                NETWORKD.CONF(5)
2
3
4

NAME

6       networkd.conf, networkd.conf.d - Global Network configuration files
7

SYNOPSIS

9       /etc/systemd/networkd.conf
10
11       /etc/systemd/networkd.conf.d/*.conf
12
13       /usr/lib/systemd/networkd.conf.d/*.conf
14

DESCRIPTION

16       These configuration files control global network parameters. Currently
17       the DHCP Unique Identifier (DUID).
18

CONFIGURATION DIRECTORIES AND PRECEDENCE

20       The default configuration is set during compilation, so configuration
21       is only needed when it is necessary to deviate from those defaults.
22       Initially, the main configuration file in /etc/systemd/ contains
23       commented out entries showing the defaults as a guide to the
24       administrator. Local overrides can be created by editing this file or
25       by creating drop-ins, as described below. Using drop-ins for local
26       configuration is recommended over modifications to the main
27       configuration file.
28
29       In addition to the "main" configuration file, drop-in configuration
30       snippets are read from /usr/lib/systemd/*.conf.d/,
31       /usr/local/lib/systemd/*.conf.d/, and /etc/systemd/*.conf.d/. Those
32       drop-ins have higher precedence and override the main configuration
33       file. Files in the *.conf.d/ configuration subdirectories are sorted by
34       their filename in lexicographic order, regardless of in which of the
35       subdirectories they reside. When multiple files specify the same
36       option, for options which accept just a single value, the entry in the
37       file sorted last takes precedence, and for options which accept a list
38       of values, entries are collected as they occur in the sorted files.
39
40       When packages need to customize the configuration, they can install
41       drop-ins under /usr/. Files in /etc/ are reserved for the local
42       administrator, who may use this logic to override the configuration
43       files installed by vendor packages. Drop-ins have to be used to
44       override package drop-ins, since the main configuration file has lower
45       precedence. It is recommended to prefix all filenames in those
46       subdirectories with a two-digit number and a dash, to simplify the
47       ordering of the files.
48
49       To disable a configuration file supplied by the vendor, the recommended
50       way is to place a symlink to /dev/null in the configuration directory
51       in /etc/, with the same filename as the vendor configuration file.
52

[NETWORK] SECTION OPTIONS

54       The following options are available in the [Network] section:
55
56       SpeedMeter=
57           Takes a boolean. If set to yes, then systemd-networkd measures the
58           traffic of each interface, and networkctl status INTERFACE shows
59           the measured speed. Defaults to no.
60
61       SpeedMeterIntervalSec=
62           Specifies the time interval to calculate the traffic speed of each
63           interface. If SpeedMeter=no, the value is ignored. Defaults to
64           10sec.
65
66       ManageForeignRoutes=
67           A boolean. When true, systemd-networkd will store any routes
68           configured by other tools in its memory. When false,
69           systemd-networkd will not manage the foreign routes, thus they are
70           kept even if KeepConfiguration= is false. Defaults to yes.
71
72       RouteTable=
73           Defines the route table name. Takes a whitespace-separated list of
74           the pairs of route table name and number. The route table name and
75           number in each pair are separated with a colon, i.e.,
76           "name:number". The route table name must not be "default", "main",
77           or "local", as these route table names are predefined with route
78           table number 253, 254, and 255, respectively. The route table
79           number must be an integer in the range 1...4294967295. This setting
80           can be specified multiple times. If an empty string is specified,
81           then the list specified earlier are cleared. Defaults to unset.
82

[DHCP] SECTION OPTIONS

84       This section configures the DHCP Unique Identifier (DUID) value used by
85       DHCP protocol. DHCPv6 client protocol sends the DHCP Unique Identifier
86       and the interface Identity Association Identifier (IAID) to a DHCP
87       server when acquiring a dynamic IPv6 address. DHCPv4 client protocol
88       sends IAID and DUID to the DHCP server when acquiring a dynamic IPv4
89       address if ClientIdentifier=duid. IAID and DUID allows a DHCP server to
90       uniquely identify the machine and the interface requesting a DHCP IP.
91       To configure IAID and ClientIdentifier, see systemd.network(5).
92
93       The following options are understood:
94
95       DUIDType=
96           Specifies how the DUID should be generated. See RFC 3315[1] for a
97           description of all the options.
98
99           The following values are understood:
100
101           vendor
102               If "DUIDType=vendor", then the DUID value will be generated
103               using "43793" as the vendor identifier (systemd) and hashed
104               contents of machine-id(5). This is the default if DUIDType= is
105               not specified.
106
107           uuid
108               If "DUIDType=uuid", and DUIDRawData= is not set, then the
109               product UUID is used as a DUID value. If a system does not have
110               valid product UUID, then an application-specific machine-id(5)
111               is used as a DUID value. About the application-specific machine
112               ID, see sd_id128_get_machine_app_specific(3).
113
114           link-layer-time[:TIME], link-layer
115               If "link-layer-time" or "link-layer" is specified, then the MAC
116               address of the interface is used as a DUID value. The value
117               "link-layer-time" can take additional time value after a colon,
118               e.g.  "link-layer-time:2018-01-23 12:34:56 UTC". The default
119               time value is "2000-01-01 00:00:00 UTC".
120
121           In all cases, DUIDRawData= can be used to override the actual DUID
122           value that is used.
123
124       DUIDRawData=
125           Specifies the DHCP DUID value as a single newline-terminated,
126           hexadecimal string, with each byte separated by ":". The DUID that
127           is sent is composed of the DUID type specified by DUIDType= and the
128           value configured here.
129
130           The DUID value specified here overrides the DUID that systemd-
131           networkd.service(8) generates from the machine ID. To configure
132           DUID per-network, see systemd.network(5). The configured DHCP DUID
133           should conform to the specification in RFC 3315[2], RFC 6355[3]. To
134           configure IAID, see systemd.network(5).
135
136           Example 1. A DUIDType=vendor with a custom value
137
138               DUIDType=vendor
139               DUIDRawData=00:00:ab:11:f9:2a:c2:77:29:f9:5c:00
140
141           This specifies a 14 byte DUID, with the type DUID-EN ("00:02"),
142           enterprise number 43793 ("00:00:ab:11"), and identifier value
143           "f9:2a:c2:77:29:f9:5c:00".
144

SEE ALSO

146       systemd(1), systemd.network(5), systemd-networkd.service(8), machine-
147       id(5), sd_id128_get_machine_app_specific(3)
148

NOTES

150        1. RFC 3315
151           https://tools.ietf.org/html/rfc3315#section-9
152
153        2. RFC 3315
154           http://tools.ietf.org/html/rfc3315#section-9
155
156        3. RFC 6355
157           http://tools.ietf.org/html/rfc6355
158
159
160
161systemd 248                                                   NETWORKD.CONF(5)
Impressum