| 1 |
<?xml version='1.0'?> |
| 2 |
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" |
| 3 |
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"> |
| 4 |
|
| 5 |
<!-- |
| 6 |
SPDX-License-Identifier: LGPL-2.1-or-later |
| 7 |
|
| 8 |
Copyright © 2014 Vinay Kulkarni |
| 9 |
--> |
| 10 |
|
| 11 |
<refentry id="networkd.conf" conditional='ENABLE_NETWORKD' |
| 12 |
xmlns:xi="http://www.w3.org/2001/XInclude"> |
| 13 |
<refentryinfo> |
| 14 |
<title>networkd.conf</title> |
| 15 |
<productname>systemd</productname> |
| 16 |
</refentryinfo> |
| 17 |
|
| 18 |
<refmeta> |
| 19 |
<refentrytitle>networkd.conf</refentrytitle> |
| 20 |
<manvolnum>5</manvolnum> |
| 21 |
</refmeta> |
| 22 |
|
| 23 |
<refnamediv> |
| 24 |
<refname>networkd.conf</refname> |
| 25 |
<refname>networkd.conf.d</refname> |
| 26 |
<refpurpose>Global Network configuration files</refpurpose> |
| 27 |
</refnamediv> |
| 28 |
|
| 29 |
<refsynopsisdiv> |
| 30 |
<para><simplelist> |
| 31 |
<member><filename>/etc/systemd/networkd.conf</filename></member> |
| 32 |
<member><filename>/run/systemd/networkd.conf</filename></member> |
| 33 |
<member><filename>/usr/local/lib/systemd/networkd.conf</filename></member> |
| 34 |
<member><filename>/usr/lib/systemd/networkd.conf</filename></member> |
| 35 |
<member><filename>/etc/systemd/networkd.conf.d/*.conf</filename></member> |
| 36 |
<member><filename>/run/systemd/networkd.conf.d/*.conf</filename></member> |
| 37 |
<member><filename>/usr/local/lib/systemd/networkd.conf.d/*.conf</filename></member> |
| 38 |
<member><filename>/usr/lib/systemd/networkd.conf.d/*.conf</filename></member> |
| 39 |
</simplelist></para> |
| 40 |
</refsynopsisdiv> |
| 41 |
|
| 42 |
<refsect1> |
| 43 |
<title>Description</title> |
| 44 |
|
| 45 |
<para>These configuration files control global network parameters.</para> |
| 46 |
</refsect1> |
| 47 |
|
| 48 |
<xi:include href="standard-conf.xml" xpointer="main-conf" /> |
| 49 |
|
| 50 |
<refsect1> |
| 51 |
<title>[Network] Section Options</title> |
| 52 |
|
| 53 |
<para>The following options are available in the [Network] section:</para> |
| 54 |
|
| 55 |
<variablelist class='network-directives'> |
| 56 |
<varlistentry> |
| 57 |
<term><varname>SpeedMeter=</varname></term> |
| 58 |
<listitem><para>Takes a boolean. If set to yes, then <command>systemd-networkd</command> |
| 59 |
measures the traffic of each interface, and |
| 60 |
<command>networkctl status <replaceable>INTERFACE</replaceable></command> shows the measured speed. |
| 61 |
Defaults to no.</para> |
| 62 |
|
| 63 |
<xi:include href="version-info.xml" xpointer="v244"/></listitem> |
| 64 |
</varlistentry> |
| 65 |
|
| 66 |
<varlistentry> |
| 67 |
<term><varname>SpeedMeterIntervalSec=</varname></term> |
| 68 |
<listitem><para>Specifies the time interval to calculate the traffic speed of each interface. |
| 69 |
If <varname>SpeedMeter=no</varname>, the value is ignored. Defaults to 10sec.</para> |
| 70 |
|
| 71 |
<xi:include href="version-info.xml" xpointer="v244"/></listitem> |
| 72 |
</varlistentry> |
| 73 |
|
| 74 |
<varlistentry> |
| 75 |
<term><varname>ManageForeignRoutingPolicyRules=</varname></term> |
| 76 |
<listitem><para>A boolean. When true, <command>systemd-networkd</command> will remove rules |
| 77 |
that are not configured in .network files (except for rules with protocol |
| 78 |
<literal>kernel</literal>). When false, it will not remove any foreign rules, keeping them even |
| 79 |
if they are not configured in a .network file. Defaults to yes. |
| 80 |
</para> |
| 81 |
|
| 82 |
<xi:include href="version-info.xml" xpointer="v249"/></listitem> |
| 83 |
</varlistentry> |
| 84 |
|
| 85 |
<varlistentry> |
| 86 |
<term><varname>ManageForeignRoutes=</varname></term> |
| 87 |
<listitem><para>A boolean. When true, <command>systemd-networkd</command> will remove routes |
| 88 |
that are not configured in .network files (except for routes with protocol |
| 89 |
<literal>kernel</literal>, <literal>dhcp</literal> when <varname>KeepConfiguration=</varname> |
| 90 |
is true or <literal>dhcp</literal>, and <literal>static</literal> when |
| 91 |
<varname>KeepConfiguration=</varname> is true or <literal>static</literal>). When false, it will |
| 92 |
not remove any foreign routes, keeping them even if they are not configured in a .network file. |
| 93 |
Defaults to yes.</para> |
| 94 |
|
| 95 |
<xi:include href="version-info.xml" xpointer="v246"/></listitem> |
| 96 |
</varlistentry> |
| 97 |
|
| 98 |
<varlistentry> |
| 99 |
<term><varname>ManageForeignNextHops=</varname></term> |
| 100 |
<listitem><para>A boolean. When true, <command>systemd-networkd</command> will remove nexthops |
| 101 |
that are not configured in .network files (except for routes with protocol |
| 102 |
<literal>kernel</literal>). When false, it will |
| 103 |
not remove any foreign nexthops, keeping them even if they are not configured in a .network file. |
| 104 |
Defaults to yes.</para> |
| 105 |
|
| 106 |
<xi:include href="version-info.xml" xpointer="v256"/></listitem> |
| 107 |
</varlistentry> |
| 108 |
|
| 109 |
<varlistentry> |
| 110 |
<term><varname>RouteTable=</varname></term> |
| 111 |
<listitem><para>Defines the route table name. Takes a whitespace-separated list of the pairs of |
| 112 |
route table name and number. The route table name and number in each pair are separated with a |
| 113 |
colon, i.e., <literal><replaceable>name</replaceable>:<replaceable>number</replaceable></literal>. |
| 114 |
The route table name must not be <literal>default</literal>, <literal>main</literal>, or |
| 115 |
<literal>local</literal>, as these route table names are predefined with route table number 253, |
| 116 |
254, and 255, respectively. The route table number must be an integer in the range 1…4294967295, |
| 117 |
except for predefined numbers 253, 254, and 255. This setting can be specified multiple times. |
| 118 |
If an empty string is specified, then the list specified earlier are cleared. Defaults to unset. |
| 119 |
</para> |
| 120 |
|
| 121 |
<xi:include href="version-info.xml" xpointer="v248"/></listitem> |
| 122 |
</varlistentry> |
| 123 |
|
| 124 |
<varlistentry> |
| 125 |
<term><varname>IPv4Forwarding=</varname></term> |
| 126 |
<listitem> |
| 127 |
<para>Configures IPv4 packet forwarding for the system. Takes a boolean value. This controls the |
| 128 |
<filename>net.ipv4.conf.default.forwarding</filename> and |
| 129 |
<filename>net.ipv4.conf.all.forwarding</filename> sysctl options. See |
| 130 |
<ulink url="https://docs.kernel.org/networking/ip-sysctl.html">IP Sysctl</ulink> |
| 131 |
for more details about the sysctl options. Defaults to unset and the sysctl options will not be |
| 132 |
changed.</para> |
| 133 |
|
| 134 |
<para>If an interface is configured with a .network file that enables <varname>IPMasquerade=</varname> |
| 135 |
for IPv4 (that is, <literal>ipv4</literal> or <literal>both</literal>), this setting is implied |
| 136 |
unless explicitly specified. See <varname>IPMasquerade=</varname> in |
| 137 |
<citerefentry><refentrytitle>systemd.network</refentrytitle><manvolnum>5</manvolnum></citerefentry> |
| 138 |
for more details.</para> |
| 139 |
|
| 140 |
<xi:include href="version-info.xml" xpointer="v256"/> |
| 141 |
</listitem> |
| 142 |
</varlistentry> |
| 143 |
|
| 144 |
<varlistentry> |
| 145 |
<term><varname>IPv6Forwarding=</varname></term> |
| 146 |
<listitem> |
| 147 |
<para>Configures IPv6 packet forwarding for the system. Takes a boolean value. This controls the |
| 148 |
<filename>net.ipv6.conf.default.forwarding</filename> and |
| 149 |
<filename>net.ipv6.conf.all.forwarding</filename> sysctl options. See |
| 150 |
<ulink url="https://docs.kernel.org/networking/ip-sysctl.html">IP Sysctl</ulink> |
| 151 |
for more details about the sysctl options. Defaults to unset and the sysctl options will not be |
| 152 |
changed.</para> |
| 153 |
|
| 154 |
<para>If an interface is configured with a .network file that enables <varname>IPMasquerade=</varname> |
| 155 |
for IPv6 (that is, <literal>ipv6</literal> or <literal>both</literal>), this setting is implied |
| 156 |
unless explicitly specified. See <varname>IPMasquerade=</varname> in |
| 157 |
<citerefentry><refentrytitle>systemd.network</refentrytitle><manvolnum>5</manvolnum></citerefentry> |
| 158 |
for more details.</para> |
| 159 |
|
| 160 |
<xi:include href="version-info.xml" xpointer="v256"/> |
| 161 |
</listitem> |
| 162 |
</varlistentry> |
| 163 |
|
| 164 |
<varlistentry> |
| 165 |
<term><varname>IPv6PrivacyExtensions=</varname></term> |
| 166 |
<listitem> |
| 167 |
<para>Specifies the default value for per-network <varname>IPv6PrivacyExtensions=</varname>. |
| 168 |
Takes a boolean or the special values <literal>prefer-public</literal> and |
| 169 |
<literal>kernel</literal>. See for details in |
| 170 |
<citerefentry><refentrytitle>systemd.network</refentrytitle><manvolnum>5</manvolnum></citerefentry>. |
| 171 |
Defaults to <literal>no</literal>.</para> |
| 172 |
|
| 173 |
<xi:include href="version-info.xml" xpointer="v254"/> |
| 174 |
</listitem> |
| 175 |
</varlistentry> |
| 176 |
|
| 177 |
<varlistentry> |
| 178 |
<term><varname>UseDomains=</varname></term> |
| 179 |
<listitem> |
| 180 |
<para>Specifies the network- and protocol-independent default value for the same settings in |
| 181 |
[IPv6AcceptRA], [DHCPv4], and [DHCPv6] sections below. Takes a boolean, or the special value |
| 182 |
<option>route</option>. See the same setting in |
| 183 |
<citerefentry><refentrytitle>systemd.network</refentrytitle><manvolnum>5</manvolnum></citerefentry>. |
| 184 |
Defaults to <literal>no</literal>.</para> |
| 185 |
|
| 186 |
<xi:include href="version-info.xml" xpointer="v256"/> |
| 187 |
</listitem> |
| 188 |
</varlistentry> |
| 189 |
</variablelist> |
| 190 |
</refsect1> |
| 191 |
|
| 192 |
<refsect1> |
| 193 |
<title>[IPv6AcceptRA] Section Options</title> |
| 194 |
|
| 195 |
<para>This section configures the default setting of the Neighbor Discovery. The following options are |
| 196 |
available in the [IPv6AcceptRA] section:</para> |
| 197 |
|
| 198 |
<variablelist class='network-directives'> |
| 199 |
<varlistentry> |
| 200 |
<term><varname>UseDomains=</varname></term> |
| 201 |
<listitem> |
| 202 |
<para>Specifies the network-independent default value for the same setting in the [IPv6AcceptRA] |
| 203 |
section in |
| 204 |
<citerefentry><refentrytitle>systemd.network</refentrytitle><manvolnum>5</manvolnum></citerefentry>. |
| 205 |
Takes a boolean, or the special value <option>route</option>. When unspecified, the value specified |
| 206 |
in the [Network] section in |
| 207 |
<citerefentry><refentrytitle>networkd.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>, |
| 208 |
which defaults to <literal>no</literal>, will be used.</para> |
| 209 |
|
| 210 |
<xi:include href="version-info.xml" xpointer="v256"/> |
| 211 |
</listitem> |
| 212 |
</varlistentry> |
| 213 |
</variablelist> |
| 214 |
</refsect1> |
| 215 |
|
| 216 |
<refsect1> |
| 217 |
<title>[IPv6AddressLabel] Section Options</title> |
| 218 |
|
| 219 |
<para>An [IPv6AddressLabel] section accepts the following keys. Specify multiple [IPv6AddressLabel] |
| 220 |
sections to configure multiple address labels. IPv6 address labels are used for address selection. |
| 221 |
See <ulink url="https://tools.ietf.org/html/rfc3484">RFC 3484</ulink>. Precedence is managed by |
| 222 |
userspace, and only the label itself is stored in the kernel.</para> |
| 223 |
|
| 224 |
<variablelist class='network-directives'> |
| 225 |
<varlistentry> |
| 226 |
<term><varname>Label=</varname></term> |
| 227 |
<listitem> |
| 228 |
<para>The label for the prefix, an unsigned integer in the range 0…4294967294. 0xffffffff is |
| 229 |
reserved. This setting is mandatory.</para> |
| 230 |
|
| 231 |
<xi:include href="version-info.xml" xpointer="v257"/> |
| 232 |
</listitem> |
| 233 |
</varlistentry> |
| 234 |
|
| 235 |
<varlistentry> |
| 236 |
<term><varname>Prefix=</varname></term> |
| 237 |
<listitem> |
| 238 |
<para>IPv6 prefix is an address with a prefix length, separated by a slash |
| 239 |
<literal>/</literal> character. This setting is mandatory.</para> |
| 240 |
|
| 241 |
<xi:include href="version-info.xml" xpointer="v257"/> |
| 242 |
</listitem> |
| 243 |
</varlistentry> |
| 244 |
</variablelist> |
| 245 |
</refsect1> |
| 246 |
|
| 247 |
<refsect1> |
| 248 |
<title>[DHCPv4] Section Options</title> |
| 249 |
|
| 250 |
<para>This section configures the default configurations of DHCPv4 client. If the DHCPv4 client is |
| 251 |
enabled on an interface, then the configurations below will be used by default unless explicitly |
| 252 |
specified in the corresponding <filename>.network</filename> file. See also |
| 253 |
<citerefentry><refentrytitle>systemd.network</refentrytitle><manvolnum>5</manvolnum></citerefentry>. |
| 254 |
</para> |
| 255 |
|
| 256 |
<para>The following options are understood:</para> |
| 257 |
|
| 258 |
<variablelist class='network-directives'> |
| 259 |
<varlistentry> |
| 260 |
<term><varname>ClientIdentifier=</varname></term> |
| 261 |
<listitem> |
| 262 |
<para>Specifies the default DHCPv4 client identifier to be used. Takes one of <option>mac</option> |
| 263 |
or <option>duid</option>. If set to <option>mac</option>, the MAC address of each link will be used. |
| 264 |
If set to <option>duid</option>, an RFC4361-compliant Client ID, which is the combination of IAID |
| 265 |
and DUID, is used. IAID can be configured by <varname>IAID=</varname> in each matching |
| 266 |
<filename>.network</filename> file. DUID can be configured by <varname>DUIDType=</varname> and |
| 267 |
<varname>DUIDRawData=</varname>. Defaults to <option>duid</option>.</para> |
| 268 |
|
| 269 |
<xi:include href="version-info.xml" xpointer="v258"/> |
| 270 |
</listitem> |
| 271 |
</varlistentry> |
| 272 |
|
| 273 |
<varlistentry> |
| 274 |
<term><varname>DUIDType=</varname></term> |
| 275 |
<listitem><para>Specifies how the DUID should be generated. See |
| 276 |
<ulink url="https://tools.ietf.org/html/rfc3315#section-9">RFC 3315</ulink> |
| 277 |
for a description of all the options.</para> |
| 278 |
|
| 279 |
<para>This takes an integer in the range 0…65535, or one of the following string values: |
| 280 |
<variablelist> |
| 281 |
<varlistentry> |
| 282 |
<term><option>vendor</option></term> |
| 283 |
<listitem><para>If <literal>DUIDType=vendor</literal>, then the DUID value will be generated using |
| 284 |
<literal>43793</literal> as the vendor identifier (systemd) and hashed contents of |
| 285 |
<citerefentry><refentrytitle>machine-id</refentrytitle><manvolnum>5</manvolnum></citerefentry>. |
| 286 |
This is the default if <varname>DUIDType=</varname> is not specified. |
| 287 |
</para> |
| 288 |
|
| 289 |
<xi:include href="version-info.xml" xpointer="v230"/></listitem> |
| 290 |
</varlistentry> |
| 291 |
|
| 292 |
<varlistentry> |
| 293 |
<term><option>uuid</option></term> |
| 294 |
<listitem><para>If <literal>DUIDType=uuid</literal>, and <varname>DUIDRawData=</varname> is not set, |
| 295 |
then the product UUID is used as a DUID value. If a system does not have valid product UUID, then |
| 296 |
an application-specific |
| 297 |
<citerefentry><refentrytitle>machine-id</refentrytitle><manvolnum>5</manvolnum></citerefentry> |
| 298 |
is used as a DUID value. About the application-specific machine ID, see |
| 299 |
<citerefentry><refentrytitle>sd_id128_get_machine_app_specific</refentrytitle><manvolnum>3</manvolnum></citerefentry>. |
| 300 |
</para> |
| 301 |
|
| 302 |
<xi:include href="version-info.xml" xpointer="v230"/></listitem> |
| 303 |
</varlistentry> |
| 304 |
|
| 305 |
<varlistentry> |
| 306 |
<term><option>link-layer-time[:<replaceable>TIME</replaceable>]</option></term> |
| 307 |
<term><option>link-layer</option></term> |
| 308 |
<listitem><para>If <literal>link-layer-time</literal> or <literal>link-layer</literal> is specified, |
| 309 |
then the MAC address of the interface is used as a DUID value. The value <literal>link-layer-time</literal> |
| 310 |
can take additional time value after a colon, e.g. <literal>link-layer-time:2018-01-23 12:34:56 UTC</literal>. |
| 311 |
The default time value is <literal>2000-01-01 00:00:00 UTC</literal>. |
| 312 |
</para> |
| 313 |
|
| 314 |
<xi:include href="version-info.xml" xpointer="v240"/></listitem> |
| 315 |
</varlistentry> |
| 316 |
</variablelist> |
| 317 |
</para> |
| 318 |
|
| 319 |
<para>In all cases, <varname>DUIDRawData=</varname> can be used to override the |
| 320 |
actual DUID value that is used.</para> |
| 321 |
|
| 322 |
<xi:include href="version-info.xml" xpointer="v230"/></listitem> |
| 323 |
</varlistentry> |
| 324 |
|
| 325 |
<varlistentry> |
| 326 |
<term><varname>DUIDRawData=</varname></term> |
| 327 |
<listitem><para>Specifies the DHCP DUID value as a single newline-terminated, hexadecimal string, with each |
| 328 |
byte separated by <literal>:</literal>. The DUID that is sent is composed of the DUID type specified by |
| 329 |
<varname>DUIDType=</varname> and the value configured here.</para> |
| 330 |
|
| 331 |
<para>The DUID value specified here overrides the DUID that |
| 332 |
<citerefentry><refentrytitle>systemd-networkd.service</refentrytitle><manvolnum>8</manvolnum></citerefentry> |
| 333 |
generates from the machine ID. To configure DUID per-network, see |
| 334 |
<citerefentry><refentrytitle>systemd.network</refentrytitle><manvolnum>5</manvolnum></citerefentry>. |
| 335 |
The configured DHCP DUID should conform to the specification in |
| 336 |
<ulink url="http://tools.ietf.org/html/rfc3315#section-9">RFC 3315</ulink>, |
| 337 |
<ulink url="http://tools.ietf.org/html/rfc6355">RFC 6355</ulink>. To configure IAID, see |
| 338 |
<citerefentry><refentrytitle>systemd.network</refentrytitle><manvolnum>5</manvolnum> |
| 339 |
</citerefentry>.</para> |
| 340 |
|
| 341 |
<example> |
| 342 |
<title>A <option>DUIDType=vendor</option> with a custom value</title> |
| 343 |
|
| 344 |
<programlisting>DUIDType=vendor |
| 345 |
DUIDRawData=00:00:ab:11:f9:2a:c2:77:29:f9:5c:00</programlisting> |
| 346 |
|
| 347 |
<para>This specifies a 14 byte DUID, with the type DUID-EN (<literal>00:02</literal>), enterprise number |
| 348 |
43793 (<literal>00:00:ab:11</literal>), and identifier value <literal>f9:2a:c2:77:29:f9:5c:00</literal>. |
| 349 |
</para> |
| 350 |
</example> |
| 351 |
|
| 352 |
<xi:include href="version-info.xml" xpointer="v230"/> |
| 353 |
</listitem> |
| 354 |
</varlistentry> |
| 355 |
|
| 356 |
<varlistentry> |
| 357 |
<term><varname>UseDomains=</varname></term> |
| 358 |
<listitem> |
| 359 |
<para>Same as the one in the [IPv6AcceptRA] section, but applied for DHCPv4 protocol.</para> |
| 360 |
|
| 361 |
<xi:include href="version-info.xml" xpointer="v256"/> |
| 362 |
</listitem> |
| 363 |
</varlistentry> |
| 364 |
</variablelist> |
| 365 |
</refsect1> |
| 366 |
|
| 367 |
<refsect1> |
| 368 |
<title>[DHCPv6] Section Options</title> |
| 369 |
|
| 370 |
<para>This section configures the default configurations of DHCPv6 client. If the DHCPv6 client is |
| 371 |
enabled on an interface, then the configurations below will be used by default unless explicitly |
| 372 |
specified in the corresponding <filename>.network</filename> file. See also |
| 373 |
<citerefentry><refentrytitle>systemd.network</refentrytitle><manvolnum>5</manvolnum></citerefentry>. |
| 374 |
</para> |
| 375 |
|
| 376 |
<para>The following options are understood:</para> |
| 377 |
|
| 378 |
<variablelist class='network-directives'> |
| 379 |
<varlistentry> |
| 380 |
<term><varname>DUIDType=</varname></term> |
| 381 |
<term><varname>DUIDRawData=</varname></term> |
| 382 |
<listitem><para>As in the [DHCPv4] section.</para> |
| 383 |
|
| 384 |
<xi:include href="version-info.xml" xpointer="v249"/></listitem> |
| 385 |
</varlistentry> |
| 386 |
|
| 387 |
<varlistentry> |
| 388 |
<term><varname>UseDomains=</varname></term> |
| 389 |
<listitem><para>As in the [DHCPv4] section.</para> |
| 390 |
|
| 391 |
<xi:include href="version-info.xml" xpointer="v256"/></listitem> |
| 392 |
</varlistentry> |
| 393 |
</variablelist> |
| 394 |
</refsect1> |
| 395 |
|
| 396 |
<refsect1> |
| 397 |
<title>[DHCPRelay] Section Options</title> |
| 398 |
<para>The [DHCPRelay] section contains host-wide settings for the DHCP relay agent.</para> |
| 399 |
|
| 400 |
<variablelist class='network-directives'> |
| 401 |
|
| 402 |
<varlistentry> |
| 403 |
<term><varname>ServerAddress=</varname></term> |
| 404 |
<listitem> |
| 405 |
<para>Specifies the IPv4 address of the upstream DHCP server. This is required for the host to act |
| 406 |
as a DHCP relay agent.</para> |
| 407 |
|
| 408 |
<xi:include href="version-info.xml" xpointer="v261"/> |
| 409 |
</listitem> |
| 410 |
</varlistentry> |
| 411 |
|
| 412 |
<varlistentry> |
| 413 |
<term><varname>OverrideServerIdentifier=</varname></term> |
| 414 |
<listitem> |
| 415 |
<para>Takes a boolean value. When enabled, the Server Identifier Override sub-option and the Relay |
| 416 |
Agent Flags sub-option in the Relay Agent Information option will be appended to the DHCP message |
| 417 |
forwarded to the upstream DHCP server. Defaults to false.</para> |
| 418 |
|
| 419 |
<xi:include href="version-info.xml" xpointer="v261"/> |
| 420 |
</listitem> |
| 421 |
</varlistentry> |
| 422 |
|
| 423 |
<varlistentry> |
| 424 |
<term><varname>RemoteId=</varname></term> |
| 425 |
<listitem> |
| 426 |
<para>Specifies the remote ID, which is typically used by DHCP servers to identify the DHCP relay |
| 427 |
agent. Takes a data type and data separated with a colon |
| 428 |
(<literal><replaceable>type</replaceable>:<replaceable>value</replaceable></literal>). The type |
| 429 |
takes one of <literal>uint8</literal>, <literal>uint16</literal>, <literal>uint32</literal>, |
| 430 |
<literal>ipv4address</literal>, <literal>ipv6address</literal>, or <literal>string</literal>. |
| 431 |
Special characters in the data string may be escaped using |
| 432 |
<ulink url="https://en.wikipedia.org/wiki/Escape_sequences_in_C#Table_of_escape_sequences">C-style escapes</ulink>. |
| 433 |
If unset, a UUID generated from the local machine ID will be used.</para> |
| 434 |
|
| 435 |
<xi:include href="version-info.xml" xpointer="v261"/> |
| 436 |
</listitem> |
| 437 |
</varlistentry> |
| 438 |
|
| 439 |
<varlistentry> |
| 440 |
<term><varname>ExtraOption=</varname></term> |
| 441 |
<listitem> |
| 442 |
<para>Specifies an extra sub-option in the Relay Agent Information option, which is appended to |
| 443 |
DHCP messages forwarded to the upstream DHCP server. Takes a sub-option code, data type, and data |
| 444 |
separated with a colon |
| 445 |
(<literal><replaceable>code</replaceable>:<replaceable>type</replaceable>:<replaceable>value</replaceable></literal>). |
| 446 |
The code is an integer in 1…254. See <varname>RemoteId=</varname> in the above for the acceptable |
| 447 |
type and data. This setting can be specified multiple times. When an empty string is specified, |
| 448 |
all previous assignments are cleared. Defaults to unset, and no extra sub-option will be appended. |
| 449 |
</para> |
| 450 |
|
| 451 |
<xi:include href="version-info.xml" xpointer="v261"/> |
| 452 |
</listitem> |
| 453 |
</varlistentry> |
| 454 |
</variablelist> |
| 455 |
</refsect1> |
| 456 |
|
| 457 |
<refsect1> |
| 458 |
<title>[DHCPServer] Section Options</title> |
| 459 |
|
| 460 |
<para>This section configures the default setting of the DHCP server. The following options are available |
| 461 |
in the [DHCPServer] section:</para> |
| 462 |
|
| 463 |
<variablelist class='network-directives'> |
| 464 |
<varlistentry> |
| 465 |
<term><varname>PersistLeases=</varname></term> |
| 466 |
<listitem> |
| 467 |
<para>Specifies the default value for per-network <varname>PersistLeases=</varname>. |
| 468 |
Takes a boolean or special value <literal>runtime</literal>. See for details in |
| 469 |
<citerefentry><refentrytitle>systemd.network</refentrytitle><manvolnum>5</manvolnum></citerefentry>. |
| 470 |
Defaults to <literal>yes</literal>.</para> |
| 471 |
|
| 472 |
<xi:include href="version-info.xml" xpointer="v256"/> |
| 473 |
</listitem> |
| 474 |
</varlistentry> |
| 475 |
</variablelist> |
| 476 |
</refsect1> |
| 477 |
|
| 478 |
<refsect1> |
| 479 |
<title>See Also</title> |
| 480 |
<para><simplelist type="inline"> |
| 481 |
<member><citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry></member> |
| 482 |
<member><citerefentry><refentrytitle>systemd.network</refentrytitle><manvolnum>5</manvolnum></citerefentry></member> |
| 483 |
<member><citerefentry><refentrytitle>systemd-networkd.service</refentrytitle><manvolnum>8</manvolnum></citerefentry></member> |
| 484 |
<member><citerefentry><refentrytitle>machine-id</refentrytitle><manvolnum>5</manvolnum></citerefentry></member> |
| 485 |
<member><citerefentry><refentrytitle>sd_id128_get_machine_app_specific</refentrytitle><manvolnum>3</manvolnum></citerefentry></member> |
| 486 |
</simplelist></para> |
| 487 |
</refsect1> |
| 488 |
|
| 489 |
</refentry> |