{"id":4637,"date":"2022-12-20T18:09:23","date_gmt":"2022-12-20T21:09:23","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/networkd-conf-man5\/"},"modified":"2022-12-20T18:09:23","modified_gmt":"2022-12-20T21:09:23","slug":"networkd-conf-man5","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/networkd-conf-man5\/","title":{"rendered":"NETWORKD.CONF (man5)"},"content":{"rendered":"<h1 align=\"center\">NETWORKD.CONF<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#CONFIGURATION DIRECTORIES AND PRECEDENCE\">CONFIGURATION DIRECTORIES AND PRECEDENCE<\/a><br \/> <a href=\"#[NETWORK] SECTION OPTIONS\">[NETWORK] SECTION OPTIONS<\/a><br \/> <a href=\"#[DHCP] SECTION OPTIONS\">[DHCP] SECTION OPTIONS<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#NOTES\">NOTES<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">networkd.conf, networkd.conf.d \u2212 Global Network configuration files<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">\/etc\/systemd\/networkd.conf<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">\/etc\/systemd\/networkd.conf.d\/*.conf<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">\/usr\/lib\/systemd\/networkd.conf.d\/*.conf<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">These configuration files control global network parameters. Currently the DHCP Unique Identifier (DUID).<\/p>\n<h2>CONFIGURATION DIRECTORIES AND PRECEDENCE <a name=\"CONFIGURATION DIRECTORIES AND PRECEDENCE\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The default configuration is defined during compilation, so a configuration file is only needed when it is necessary to deviate from those defaults. By default, the configuration file in \/etc\/systemd\/ contains commented out entries showing the defaults as a guide to the administrator. This file can be edited to create local overrides.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">When packages need to customize the configuration, they can install configuration snippets in \/usr\/lib\/systemd\/*.conf.d\/ or \/usr\/local\/lib\/systemd\/*.conf.d\/. The main configuration file is read before any of the configuration directories, and has the lowest precedence; entries in a file in any configuration directory override entries in the single configuration file. Files in the *.conf.d\/ configuration subdirectories are sorted by their filename in lexicographic order, regardless of in which of the subdirectories they reside. When multiple files specify the same option, for options which accept just a single value, the entry in the file with the lexicographically latest name takes precedence. For options which accept a list of values, entries are collected as they occur in files sorted lexicographically.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Files in \/etc\/ are reserved for the local administrator, who may use this logic to override the configuration files installed by vendor packages. It is recommended to prefix all filenames in those subdirectories with a two\u2212digit number and a dash, to simplify the ordering of the files.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">To disable a configuration file supplied by the vendor, the recommended way is to place a symlink to \/dev\/null in the configuration directory in \/etc\/, with the same filename as the vendor configuration file.<\/p>\n<h2>[NETWORK] SECTION OPTIONS <a name=\"[NETWORK] SECTION OPTIONS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The following options are available in the [Network] section:<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>SpeedMeter=<\/i><\/p>\n<p style=\"margin-left:17%;\">Takes a boolean. If set to yes, then <b>systemd\u2212networkd<\/b> measures the traffic of each interface, and <b>networkctl status<\/b> <i>INTERFACE<\/i> shows the measured speed. Defaults to no.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>SpeedMeterIntervalSec=<\/i><\/p>\n<p style=\"margin-left:17%;\">Specifies the time interval to calculate the traffic speed of each interface. If <i>SpeedMeter=no<\/i>, the value is ignored. Defaults to 10sec.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>ManageForeignRoutes=<\/i><\/p>\n<p style=\"margin-left:17%;\">A boolean. When true, <b>systemd\u2212networkd<\/b> will store any routes configured by other tools in its memory. When false, <b>systemd\u2212networkd<\/b> will not manage the foreign routes, thus they are kept even if <i>KeepConfiguration=<\/i> is false. Defaults to yes.<\/p>\n<h2>[DHCP] SECTION OPTIONS <a name=\"[DHCP] SECTION OPTIONS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">This section configures the DHCP Unique Identifier (DUID) value used by DHCP protocol. DHCPv6 client protocol sends the DHCP Unique Identifier and the interface Identity Association Identifier (IAID) to a DHCP server when acquiring a dynamic IPv6 address. DHCPv4 client protocol sends IAID and DUID to the DHCP server when acquiring a dynamic IPv4 address if <b>ClientIdentifier=duid<\/b>. IAID and DUID allows a DHCP server to uniquely identify the machine and the interface requesting a DHCP IP. To configure IAID and ClientIdentifier, see <b>systemd.network<\/b>(5).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The following options are understood:<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>DUIDType=<\/i><\/p>\n<p style=\"margin-left:17%;\">Specifies how the DUID should be generated. See <b><font color=\"#0000FF\">RFC 3315<\/font><\/b> <small><font color=\"#000000\">[1]<\/font><\/small> <font color=\"#000000\">for a description of all the options.<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\">The following values are understood:<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\"><b>vendor<\/b><\/font><\/p>\n<p style=\"margin-left:23%;\"><font color=\"#000000\">If &#8220;DUIDType=vendor&#8221;, then the DUID value will be generated using &#8220;43793&#8221; as the vendor identifier (systemd) and hashed contents of <b>machine-id<\/b>(5). This is the default if <i>DUIDType=<\/i> is not specified.<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\"><b>uuid<\/b><\/font><\/p>\n<p style=\"margin-left:23%;\"><font color=\"#000000\">If &#8220;DUIDType=uuid&#8221;, and <i>DUIDRawData=<\/i> is not set, then the product UUID is used as a DUID value. If a system does not have valid product UUID, then an application\u2212specific <b>machine-id<\/b>(5) is used as a DUID value. About the application\u2212specific machine ID, see <b>sd_id128_get_machine_app_specific<\/b>(3).<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\"><b>link\u2212layer\u2212time[:<\/b><i>TIME<\/i><b>]<\/b>, <b>link\u2212layer<\/b><\/font><\/p>\n<p style=\"margin-left:23%;\"><font color=\"#000000\">If &#8220;link\u2212layer\u2212time&#8221; or &#8220;link\u2212layer&#8221; is specified, then the MAC address of the interface is used as a DUID value. The value &#8220;link\u2212layer\u2212time&#8221; can take additional time value after a colon, e.g. &#8220;link\u2212layer\u2212time:2018\u221201\u221223 12:34:56 UTC&#8221;. The default time value is &#8220;2000\u221201\u221201 00:00:00 UTC&#8221;.<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\">In all cases, <i>DUIDRawData=<\/i> can be used to override the actual DUID value that is used.<\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\"><i>DUIDRawData=<\/i><\/font><\/p>\n<p style=\"margin-left:17%;\"><font color=\"#000000\">Specifies the DHCP DUID value as a single newline\u2212terminated, hexadecimal string, with each byte separated by &#8220;:&#8221;. The DUID that is sent is composed of the DUID type specified by <i>DUIDType=<\/i> and the value configured here.<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\">The DUID value specified here overrides the DUID that <b>systemd-networkd.service<\/b>(8) generates from the machine ID. To configure DUID per\u2212network, see <b>systemd.network<\/b>(5). The configured DHCP DUID should conform to the specification in<\/font> <b><font color=\"#0000FF\">RFC 3315<\/font><\/b> <small><font color=\"#000000\">[2]<\/font><\/small> <font color=\"#000000\">,<\/font> <b><font color=\"#0000FF\">RFC 6355<\/font><\/b> <small><font color=\"#000000\">[3]<\/font><\/small> <font color=\"#000000\">. To configure IAID, see <b>systemd.network<\/b>(5).<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\"><b>Example\u00a01.\u00a0A DUIDType=vendor with a custom value<\/b><\/font><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><font color=\"#000000\">DUIDType=vendor <br \/> DUIDRawData=00:00:ab:11:f9:2a:c2:77:29:f9:5c:00<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\">This specifies a 14 byte DUID, with the type DUID\u2212EN (&#8220;00:02&#8221;), enterprise number 43793 (&#8220;00:00:ab:11&#8221;), and identifier value &#8220;f9:2a:c2:77:29:f9:5c:00&#8221;.<\/font><\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\"><b>systemd<\/b>(1), <b>systemd.network<\/b>(5), <b>systemd-networkd.service<\/b>(8), <b>machine-id<\/b>(5), <b>sd_id128_get_machine_app_specific<\/b>(3)<\/font><\/p>\n<h2>NOTES <a name=\"NOTES\"><\/a> <\/h2>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"12%\"><\/td>\n<td width=\"3%\">\n<p style=\"margin-top: 1em\"><font color=\"#000000\">1.<\/font><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"12%\">\n<p style=\"margin-top: 1em\"><font color=\"#000000\">RFC 3315<\/font><\/p>\n<\/td>\n<td width=\"71%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:17%;\"><font color=\"#000000\">https:\/\/tools.ietf.org\/html\/rfc3315#section-9<\/font><\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"12%\"><\/td>\n<td width=\"3%\">\n<p style=\"margin-top: 1em\"><font color=\"#000000\">2.<\/font><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"12%\">\n<p style=\"margin-top: 1em\"><font color=\"#000000\">RFC 3315<\/font><\/p>\n<\/td>\n<td width=\"71%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:17%;\"><font color=\"#000000\">http:\/\/tools.ietf.org\/html\/rfc3315#section-9<\/font><\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"12%\"><\/td>\n<td width=\"3%\">\n<p style=\"margin-top: 1em\"><font color=\"#000000\">3.<\/font><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"12%\">\n<p style=\"margin-top: 1em\"><font color=\"#000000\">RFC 6355<\/font><\/p>\n<\/td>\n<td width=\"71%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:17%;\"><font color=\"#000000\">http:\/\/tools.ietf.org\/html\/rfc6355<\/font><\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  networkd.conf, networkd.conf.d \u2212 Global Network configuration files <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[959],"tags":[961,1291,1575],"class_list":["post-4637","post","type-post","status-publish","format-standard","hentry","category-5-formatos-de-ficheros","tag-961","tag-man5","tag-networkd"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4637","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=4637"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4637\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=4637"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=4637"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=4637"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}