.\" Automatically generated by Pandoc 2.17.1.1 .\" .\" Define V font for inline verbatim, using C font in formats .\" that render this, and otherwise B font. .ie "\f[CB]x\f[]"x" \{\ . ftr V B . ftr VI BI . ftr VB B . ftr VBI BI .\} .el \{\ . ftr V CR . ftr VI CI . ftr VB CB . ftr VBI CBI .\} .TH "YAML configuration" "5" "" "" "" .hy .SH NAME .PP netplan - YAML network configuration abstraction for various backends .SH SYNOPSIS .PP \f[B]netplan\f[R] [ \f[I]COMMAND\f[R] | help ] .SH COMMANDS .PP See \f[B]netplan help\f[R] for a list of available commands on this system. .SH DESCRIPTION .SS Introduction .PP Distribution installers, cloud instantiation, image builds for particular devices, or any other way to deploy an operating system put its desired network configuration into YAML configuration file(s). During early boot, the netplan \[dq]network renderer\[dq] runs which reads \f[V]/{lib,etc,run}/netplan/*.yaml\f[R] and writes configuration to \f[V]/run\f[R] to hand off control of devices to the specified networking daemon. .IP \[bu] 2 Configured devices get handled by systemd-networkd by default, unless explicitly marked as managed by a specific renderer (NetworkManager) .IP \[bu] 2 Devices not covered by the network config do not get touched at all. .IP \[bu] 2 Usable in initramfs (few dependencies and fast) .IP \[bu] 2 No persistent generated config, only original YAML config .IP \[bu] 2 Parser supports multiple config files to allow applications like libvirt or lxd to package up expected network config (\f[V]virbr0\f[R], \f[V]lxdbr0\f[R]), or to change the global default policy to use NetworkManager for everything. .IP \[bu] 2 Retains the flexibility to change backends/policy later or adjust to removing NetworkManager, as generated configuration is ephemeral. .SS General structure .PP netplan\[aq]s configuration files use the YAML (http://yaml.org/spec/1.1/current.html) format. All \f[V]/{lib,etc,run}/netplan/*.yaml\f[R] are considered. Lexicographically later files (regardless of in which directory they are) amend (new mapping keys) or override (same mapping keys) previous ones. A file in \f[V]/run/netplan\f[R] completely shadows a file with same name in \f[V]/etc/netplan\f[R], and a file in either of those directories shadows a file with the same name in \f[V]/lib/netplan\f[R]. .PP The top-level node in a netplan configuration file is a \f[V]network:\f[R] mapping that contains \f[V]version: 2\f[R] (the YAML currently being used by curtin, MaaS, etc. is version 1), and then device definitions grouped by their type, such as \f[V]ethernets:\f[R], \f[V]modems:\f[R], \f[V]wifis:\f[R], or \f[V]bridges:\f[R]. These are the types that our renderer can understand and are supported by our backends. .PP Each type block contains device definitions as a map where the keys (called \[dq]configuration IDs\[dq]) are defined as below. .SS Device configuration IDs .PP The key names below the per-device-type definition maps (like \f[V]ethernets:\f[R]) are called \[dq]ID\[dq]s. They must be unique throughout the entire set of configuration files. Their primary purpose is to serve as anchor names for composite devices, for example to enumerate the members of a bridge that is currently being defined. .PP (Since 0.97) If an interface is defined with an ID in a configuration file; it will be brought up by the applicable renderer. To not have netplan touch an interface at all, it should be completely omitted from the netplan configuration files. .PP There are two physically/structurally different classes of device definitions, and the ID field has a different interpretation for each: .PP Physical devices .RS .PP (Examples: ethernet, modem, wifi) These can dynamically come and go between reboots and even during runtime (hot plugging). In the generic case, they can be selected by \f[V]match:\f[R] rules on desired properties, such as name/name pattern, MAC address, driver, or device paths. In general these will match any number of devices (unless they refer to properties which are unique such as the full path or MAC address), so without further knowledge about the hardware these will always be considered as a group. .PP It is valid to specify no match rules at all, in which case the ID field is simply the interface name to be matched. This is mostly useful if you want to keep simple cases simple, and it\[aq]s how network device configuration has been done for a long time. .PP If there are \f[V]match\f[R]: rules, then the ID field is a purely opaque name which is only being used for references from definitions of compound devices in the config. .RE .PP Virtual devices .RS .PP (Examples: veth, bridge, bond, vrf) These are fully under the control of the config file(s) and the network stack. I. e. these devices are being created instead of matched. Thus \f[V]match:\f[R] and \f[V]set-name:\f[R] are not applicable for these, and the ID field is the name of the created virtual device. .RE .SS Properties for physical device types .PP \f[B]Note:\f[R] Some options will not work reliably for devices matched by name only and rendered by networkd, due to interactions with device renaming in udev. Match devices by MAC when setting options like: \f[V]wakeonlan\f[R] or \f[V]*-offload\f[R]. .IP \[bu] 2 \f[B]match\f[R] (mapping) .RS 2 .RS .PP This selects a subset of available physical devices by various hardware properties. The following configuration will then apply to all matching devices, as soon as they appear. \f[I]All\f[R] specified properties must match. .RE .IP \[bu] 2 \f[B]name\f[R] (scalar) .RS 2 .RS .PP Current interface name. Globs are supported, and the primary use case for matching on names, as selecting one fixed name can be more easily achieved with having no \f[V]match:\f[R] at all and just using the ID (see above). (\f[V]NetworkManager\f[R]: as of v1.14.0) .RE .RE .IP \[bu] 2 \f[B]macaddress\f[R] (scalar) .RS 2 .RS .PP Device\[aq]s 6-byte permanent MAC address in the form \[dq]XX:XX:XX:XX:XX:XX\[dq] or 20 bytes for InfiniBand devices (IPoIB). Globs are not allowed. This doesn\[aq]t match virtual MAC addresses for veth, bridge, bond, vlan, ... .RE .RE .IP \[bu] 2 \f[B]driver\f[R] (scalar or sequence of scalars) \[en] sequence since \f[B]0.104\f[R] .RS 2 .RS .PP Kernel driver name, corresponding to the \f[V]DRIVER\f[R] udev property. A sequence of globs is supported, any of which must match. Matching on driver is \f[I]only\f[R] supported with networkd. .RE .RE .PP Examples: .IP \[bu] 2 All cards on second PCI bus: .RS 2 .IP .nf \f[C] match: name: enp2* \f[R] .fi .RE .IP \[bu] 2 Fixed MAC address: .RS 2 .IP .nf \f[C] match: macaddress: 11:22:33:AA:BB:FF \f[R] .fi .RE .IP \[bu] 2 First card of driver \f[V]ixgbe\f[R]: .RS 2 .IP .nf \f[C] match: driver: ixgbe name: en*s0 \f[R] .fi .RE .IP \[bu] 2 First card with a driver matching \f[V]bcmgenet\f[R] or \f[V]smsc*\f[R]: .RS 2 .IP .nf \f[C] match: driver: [\[dq]bcmgenet\[dq], \[dq]smsc*\[dq]] name: en* \f[R] .fi .RE .RE .IP \[bu] 2 \f[B]set-name\f[R] (scalar) .RS 2 .RS .PP When matching on unique properties such as path or MAC, or with additional assumptions such as \[dq]there will only ever be one wifi device\[dq], match rules can be written so that they only match one device. Then this property can be used to give that device a more specific/desirable/nicer name than the default from udev\[aq]s ifnames. Any additional device that satisfies the match rules will then fail to get renamed and keep the original kernel name (and dmesg will show an error). .RE .RE .IP \[bu] 2 \f[B]wakeonlan\f[R] (bool) .RS 2 .RS .PP Enable wake on LAN. Off by default. .RE .RE .IP \[bu] 2 \f[B]emit-lldp\f[R] (bool) \[en] since \f[B]0.99\f[R] .RS 2 .RS .PP (networkd backend only) Whether to emit LLDP packets. Off by default. .RE .RE .IP \[bu] 2 \f[B]receive-checksum-offload\f[R] (bool) \[en] since \f[B]0.104\f[R] .RS 2 .RS .PP (networkd backend only) If set to true (false), the hardware offload for checksumming of ingress network packets is enabled (disabled). When unset, the kernel\[aq]s default will be used. .RE .RE .IP \[bu] 2 \f[B]transmit-checksum-offload\f[R] (bool) \[en] since \f[B]0.104\f[R] .RS 2 .RS .PP (networkd backend only) If set to true (false), the hardware offload for checksumming of egress network packets is enabled (disabled). When unset, the kernel\[aq]s default will be used. .RE .RE .IP \[bu] 2 \f[B]tcp-segmentation-offload\f[R] (bool) \[en] since \f[B]0.104\f[R] .RS 2 .RS .PP (networkd backend only) If set to true (false), the TCP Segmentation Offload (TSO) is enabled (disabled). When unset, the kernel\[aq]s default will be used. .RE .RE .IP \[bu] 2 \f[B]tcp6-segmentation-offload\f[R] (bool) \[en] since \f[B]0.104\f[R] .RS 2 .RS .PP (networkd backend only) If set to true (false), the TCP6 Segmentation Offload (tx-tcp6-segmentation) is enabled (disabled). When unset, the kernel\[aq]s default will be used. .RE .RE .IP \[bu] 2 \f[B]generic-segmentation-offload\f[R] (bool) \[en] since \f[B]0.104\f[R] .RS 2 .RS .PP (networkd backend only) If set to true (false), the Generic Segmentation Offload (GSO) is enabled (disabled). When unset, the kernel\[aq]s default will be used. .RE .RE .IP \[bu] 2 \f[B]generic-receive-offload\f[R] (bool) \[en] since \f[B]0.104\f[R] .RS 2 .RS .PP (networkd backend only) If set to true (false), the Generic Receive Offload (GRO) is enabled (disabled). When unset, the kernel\[aq]s default will be used. .RE .RE .IP \[bu] 2 \f[B]large-receive-offload\f[R] (bool) \[en] since \f[B]0.104\f[R] .RS 2 .RS .PP (networkd backend only) If set to true (false), the Large Receive Offload (LRO) is enabled (disabled). When unset, the kernel\[aq]s default will be used. .RE .RE .IP \[bu] 2 \f[B]openvswitch\f[R] (mapping) \[en] since \f[B]0.100\f[R] .RS 2 .RS .PP This provides additional configuration for the openvswitch network device. If Open vSwitch is not available on the system, netplan treats the presence of \f[V]openvswitch\f[R] configuration as an error. .PP Any supported network device that is declared with the \f[V]openvswitch\f[R] mapping (or any bond/bridge that includes an interface with an openvswitch configuration) will be created in openvswitch instead of the defined renderer. In the case of a \f[V]vlan\f[R] definition declared the same way, netplan will create a fake VLAN bridge in openvswitch with the requested \f[V]vlan\f[R] properties. .RE .IP \[bu] 2 \f[B]external-ids\f[R] (mapping) \[en] since \f[B]0.100\f[R] .RS 2 .RS .PP Passed-through directly to Open vSwitch .RE .RE .IP \[bu] 2 \f[B]other-config\f[R] (mapping) \[en] since \f[B]0.100\f[R] .RS 2 .RS .PP Passed-through directly to Open vSwitch .RE .RE .IP \[bu] 2 \f[B]lacp\f[R] (scalar) \[en] since \f[B]0.100\f[R] .RS 2 .RS .PP Valid for bond interfaces. Accepts \f[V]active\f[R], \f[V]passive\f[R] or \f[V]off\f[R] (the default). .RE .RE .IP \[bu] 2 \f[B]fail-mode\f[R] (scalar) \[en] since \f[B]0.100\f[R] .RS 2 .RS .PP Valid for bridge interfaces. Accepts \f[V]secure\f[R] or \f[V]standalone\f[R] (the default). .RE .RE .IP \[bu] 2 \f[B]mcast-snooping\f[R] (bool) \[en] since \f[B]0.100\f[R] .RS 2 .RS .PP Valid for bridge interfaces. False by default. .RE .RE .IP \[bu] 2 \f[B]protocols\f[R] (sequence of scalars) \[en] since \f[B]0.100\f[R] .RS 2 .RS .PP Valid for bridge interfaces or the network section. List of protocols to be used when negotiating a connection with the controller. Accepts \f[V]OpenFlow10\f[R], \f[V]OpenFlow11\f[R], \f[V]OpenFlow12\f[R], \f[V]OpenFlow13\f[R], \f[V]OpenFlow14\f[R], \f[V]OpenFlow15\f[R] and \f[V]OpenFlow16\f[R]. .RE .RE .IP \[bu] 2 \f[B]rstp\f[R] (bool) \[en] since \f[B]0.100\f[R] .RS 2 .RS .PP Valid for bridge interfaces. False by default. .RE .RE .IP \[bu] 2 \f[B]controller\f[R] (mapping) \[en] since \f[B]0.100\f[R] .RS 2 .RS .PP Valid for bridge interfaces. Specify an external OpenFlow controller. .RE .IP \[bu] 2 \f[B]addresses\f[R] (sequence of scalars) .RS 2 .RS .PP Set the list of addresses to use for the controller targets. The syntax of these addresses is as defined in ovs-vsctl(8). Example: addresses: \f[V][tcp:127.0.0.1:6653, \[dq]ssl:[fe80::1234%eth0]:6653\[dq]]\f[R] .RE .RE .IP \[bu] 2 \f[B]connection-mode\f[R] (scalar) .RS 2 .RS .PP Set the connection mode for the controller. Supported options are \f[V]in-band\f[R] and \f[V]out-of-band\f[R]. The default is \f[V]in-band\f[R]. .RE .RE .RE .IP \[bu] 2 \f[B]ports\f[R] (sequence of sequence of scalars) \[en] since \f[B]0.100\f[R] .RS 2 .RS .PP Open vSwitch patch ports. Each port is declared as a pair of names which can be referenced as interfaces in dependent virtual devices (bonds, bridges). .RE .PP Example: .IP .nf \f[C] openvswitch: ports: - [patch0-1, patch1-0] \f[R] .fi .RE .IP \[bu] 2 \f[B]ssl\f[R] (mapping) \[en] since \f[B]0.100\f[R] .RS 2 .RS .PP Valid for global \f[V]openvswitch\f[R] settings. Options for configuring SSL server endpoint for the switch. .RE .IP \[bu] 2 \f[B]ca-cert\f[R] (scalar) .RS 2 .RS .PP Path to a file containing the CA certificate to be used. .RE .RE .IP \[bu] 2 \f[B]certificate\f[R] (scalar) .RS 2 .RS .PP Path to a file containing the server certificate. .RE .RE .IP \[bu] 2 \f[B]private-key\f[R] (scalar) .RS 2 .RS .PP Path to a file containing the private key for the server. .RE .RE .RE .RE .SS Properties for all device types .IP \[bu] 2 \f[B]renderer\f[R] (scalar) .RS 2 .RS .PP Use the given networking backend for this definition. Currently supported are \f[V]networkd\f[R] and \f[V]NetworkManager\f[R]. This property can be specified globally in \f[V]network:\f[R], for a device type (in e. g. \f[V]ethernets:\f[R]) or for a particular device definition. Default is \f[V]networkd\f[R]. .PP (Since 0.99) The \f[V]renderer\f[R] property has one additional acceptable value for vlan objects (i. e. defined in \f[V]vlans:\f[R]): \f[V]sriov\f[R]. If a vlan is defined with the \f[V]sriov\f[R] renderer for an SR-IOV Virtual Function interface, this causes netplan to set up a hardware VLAN filter for it. There can be only one defined per VF. .RE .RE .IP \[bu] 2 \f[B]dhcp4\f[R] (bool) .RS 2 .RS .PP Enable DHCP for IPv4. Off by default. .RE .RE .IP \[bu] 2 \f[B]dhcp6\f[R] (bool) .RS 2 .RS .PP Enable DHCP for IPv6. Off by default. This covers both stateless DHCP - where the DHCP server supplies information like DNS nameservers but not the IP address - and stateful DHCP, where the server provides both the address and the other information. .PP If you are in an IPv6-only environment with completely stateless auto-configuration (SLAAC with RDNSS), this option can be set to cause the interface to be brought up. (Setting accept-ra alone is not sufficient.) Auto-configuration will still honor the contents of the router advertisement and only use DHCP if requested in the RA. .PP Note that \f[B]\f[VB]rdnssd\f[B]\f[R](8) is required to use RDNSS with networkd. No extra software is required for NetworkManager. .RE .RE .IP \[bu] 2 \f[B]ipv6-mtu\f[R] (scalar) \[en] since \f[B]0.98\f[R] > Set the IPv6 MTU (only supported with \f[V]networkd\f[R] backend). Note > that needing to set this is an unusual requirement. > > \f[B]Requires feature: ipv6-mtu\f[R] .IP \[bu] 2 \f[B]ipv6-privacy\f[R] (bool) .RS 2 .RS .PP Enable IPv6 Privacy Extensions (RFC 4941) for the specified interface, and prefer temporary addresses. Defaults to false - no privacy extensions. There is currently no way to have a private address but prefer the public address. .RE .RE .IP \[bu] 2 \f[B]link-local\f[R] (sequence of scalars) .RS 2 .RS .PP Configure the link-local addresses to bring up. Valid options are \[aq]ipv4\[aq] and \[aq]ipv6\[aq], which respectively allow enabling IPv4 and IPv6 link local addressing. If this field is not defined, the default is to enable only IPv6 link-local addresses. If the field is defined but configured as an empty set, IPv6 link-local addresses are disabled as well as IPv4 link- local addresses. .PP This feature enables or disables link-local addresses for a protocol, but the actual implementation differs per backend. On networkd, this directly changes the behavior and may add an extra address on an interface. When using the NetworkManager backend, enabling link-local has no effect if the interface also has DHCP enabled. .RE .PP Examples: .IP \[bu] 2 Enable only IPv4 link-local: \f[V]link-local: [ ipv4 ]\f[R] .IP \[bu] 2 Enable all link-local addresses: \f[V]link-local: [ ipv4, ipv6 ]\f[R] .IP \[bu] 2 Disable all link-local addresses: \f[V]link-local: [ ]\f[R] .RE .IP \[bu] 2 \f[B]ignore-carrier\f[R] (bool) \[en] since \f[B]0.104\f[R] .RS 2 .RS .PP (networkd backend only) Allow the specified interface to be configured even if it has no carrier. .RE .RE .IP \[bu] 2 \f[B]critical\f[R] (bool) .RS 2 .RS .PP Designate the connection as \[dq]critical to the system\[dq], meaning that special care will be taken by to not release the assigned IP when the daemon is restarted. (not recognized by NetworkManager) .RE .RE .IP \[bu] 2 \f[B]dhcp-identifier\f[R] (scalar) .RS 2 .RS .PP (networkd backend only) Sets the source of DHCPv4 client identifier. If \f[V]mac\f[R] is specified, the MAC address of the link is used. If this option is omitted, or if \f[V]duid\f[R] is specified, networkd will generate an RFC4361-compliant client identifier for the interface by combining the link\[aq]s IAID and DUID. .RE .RE .IP \[bu] 2 \f[B]dhcp4-overrides\f[R] (mapping) .RS 2 .RS .PP (networkd backend only) Overrides default DHCP behavior; see the \f[V]DHCP Overrides\f[R] section below. .RE .RE .IP \[bu] 2 \f[B]dhcp6-overrides\f[R] (mapping) .RS 2 .RS .PP (networkd backend only) Overrides default DHCP behavior; see the \f[V]DHCP Overrides\f[R] section below. .RE .RE .IP \[bu] 2 \f[B]accept-ra\f[R] (bool) .RS 2 .RS .PP Accept Router Advertisement that would have the kernel configure IPv6 by itself. When enabled, accept Router Advertisements. When disabled, do not respond to Router Advertisements. If unset use the host kernel default setting. .RE .RE .IP \[bu] 2 \f[B]addresses\f[R] (sequence of scalars and mappings) .RS 2 .RS .PP Add static addresses to the interface in addition to the ones received through DHCP or RA. Each sequence entry is in CIDR notation, i. e. of the form \f[V]addr/prefixlen\f[R]. \f[V]addr\f[R] is an IPv4 or IPv6 address as recognized by \f[B]\f[VB]inet_pton\f[B]\f[R](3) and \f[V]prefixlen\f[R] the number of bits of the subnet. .PP For virtual devices (bridges, bonds, vlan) if there is no address configured and DHCP is disabled, the interface may still be brought online, but will not be addressable from the network. .PP In addition to the addresses themselves one can specify configuration parameters as mappings. Current supported options are: .RE .IP \[bu] 2 \f[B]lifetime\f[R] (scalar) \[en] since \f[B]0.100\f[R] .RS 2 .RS .PP Default: \f[V]forever\f[R]. This can be \f[V]forever\f[R] or \f[V]0\f[R] and corresponds to the \f[V]PreferredLifetime\f[R] option in \f[V]systemd-networkd\f[R]\[aq]s Address section. Currently supported on the \f[V]networkd\f[R] backend only. .RE .RE .IP \[bu] 2 \f[B]label\f[R] (scalar) \[en] since \f[B]0.100\f[R] .RS 2 .RS .PP An IP address label, equivalent to the \f[V]ip address label\f[R] command. Currently supported on the \f[V]networkd\f[R] backend only. .RE .RE .PP Examples: .IP \[bu] 2 Simple: \f[V]addresses: [192.168.14.2/24, \[dq]2001:1::1/64\[dq]]\f[R] .IP \[bu] 2 Advanced: .RS 2 .IP .nf \f[C] ethernets: eth0: addresses: - \[dq]10.0.0.15/24\[dq]: lifetime: 0 label: \[dq]maas\[dq] - \[dq]2001:1::1/64\[dq] \f[R] .fi .RE .RE .IP \[bu] 2 \f[B]ipv6-address-generation\f[R] (scalar) \[en] since \f[B]0.99\f[R] .RS 2 .RS .PP Configure method for creating the address for use with RFC4862 IPv6 Stateless Address Auto-configuration (only supported with \f[V]NetworkManager\f[R] backend). Possible values are \f[V]eui64\f[R] or \f[V]stable-privacy\f[R]. .RE .RE .IP \[bu] 2 \f[B]ipv6-address-token\f[R] (scalar) \[en] since \f[B]0.100\f[R] .RS 2 .RS .PP Define an IPv6 address token for creating a static interface identifier for IPv6 Stateless Address Auto-configuration. This is mutually exclusive with \f[V]ipv6-address-generation\f[R]. .RE .RE .IP \[bu] 2 \f[B]gateway4\f[R], \f[B]gateway6\f[R] (scalar) .RS 2 .RS .PP Deprecated, see \f[V]Default routes\f[R]. Set default gateway for IPv4/6, for manual address configuration. This requires setting \f[V]addresses\f[R] too. Gateway IPs must be in a form recognized by \f[B]\f[VB]inet_pton\f[B]\f[R](3). There should only be a single gateway per IP address family set in your global config, to make it unambiguous. If you need multiple default routes, please define them via \f[V]routing-policy\f[R]. .RE .PP Examples .IP \[bu] 2 IPv4: \f[V]gateway4: 172.16.0.1\f[R] .IP \[bu] 2 IPv6: \f[V]gateway6: \[dq]2001:4::1\[dq]\f[R] .RE .IP \[bu] 2 \f[B]nameservers\f[R] (mapping) .RS 2 .RS .PP Set DNS servers and search domains, for manual address configuration. There are two supported fields: \f[V]addresses:\f[R] is a list of IPv4 or IPv6 addresses similar to \f[V]gateway*\f[R], and \f[V]search:\f[R] is a list of search domains. .RE .PP Example: .IP .nf \f[C] ethernets: id0: [...] nameservers: search: [lab, home] addresses: [8.8.8.8, \[dq]FEDC::1\[dq]] \f[R] .fi .RE .IP \[bu] 2 \f[B]macaddress\f[R] (scalar) .RS 2 .RS .PP Set the device\[aq]s MAC address. The MAC address must be in the form \[dq]XX:XX:XX:XX:XX:XX\[dq]. .PP \f[B]Note:\f[R] This will not work reliably for devices matched by name only and rendered by networkd, due to interactions with device renaming in udev. Match devices by MAC when setting MAC addresses. .RE .PP Example: .IP .nf \f[C] ethernets: id0: match: macaddress: 52:54:00:6b:3c:58 [...] macaddress: 52:54:00:6b:3c:59 \f[R] .fi .RE .IP \[bu] 2 \f[B]mtu\f[R] (scalar) .RS 2 .RS .PP Set the Maximum Transmission Unit for the interface. The default is 1500. Valid values depend on your network interface. .PP \f[B]Note:\f[R] This will not work reliably for devices matched by name only and rendered by networkd, due to interactions with device renaming in udev. Match devices by MAC when setting MTU. .RE .RE .IP \[bu] 2 \f[B]optional\f[R] (bool) .RS 2 .RS .PP An optional device is not required for booting. Normally, networkd will wait some time for device to become configured before proceeding with booting. However, if a device is marked as optional, networkd will not wait for it. This is \f[I]only\f[R] supported by networkd, and the default is false. .RE .PP Example: .IP .nf \f[C] ethernets: eth7: # this is plugged into a test network that is often # down - don\[aq]t wait for it to come up during boot. dhcp4: true optional: true \f[R] .fi .RE .IP \[bu] 2 \f[B]optional-addresses\f[R] (sequence of scalars) .RS 2 .RS .PP Specify types of addresses that are not required for a device to be considered online. This changes the behavior of backends at boot time to avoid waiting for addresses that are marked optional, and thus consider the interface as \[dq]usable\[dq] sooner. This does not disable these addresses, which will be brought up anyway. .RE .PP Example: .IP .nf \f[C] ethernets: eth7: dhcp4: true dhcp6: true optional-addresses: [ ipv4-ll, dhcp6 ] \f[R] .fi .RE .IP \[bu] 2 \f[B]activation-mode\f[R] (scalar) \[en] since \f[B]0.103\f[R] .RS 2 .RS .PP Allows specifying the management policy of the selected interface. By default, netplan brings up any configured interface if possible. Using the \f[V]activation-mode\f[R] setting users can override that behavior by either specifying \f[V]manual\f[R], to hand over control over the interface state to the administrator or (for networkd backend \f[I]only\f[R]) \f[V]off\f[R] to force the link in a down state at all times. Any interface with \f[V]activation-mode\f[R] defined is implicitly considered \f[V]optional\f[R]. Supported officially as of \f[V]networkd\f[R] v248+. .RE .PP Example: .IP .nf \f[C] ethernets: eth1: # this interface will not be put into an UP state automatically dhcp4: true activation-mode: manual \f[R] .fi .RE .IP \[bu] 2 \f[B]routes\f[R] (sequence of mappings) .RS 2 .RS .PP Configure static routing for the device; see the \f[V]Routing\f[R] section below. .RE .RE .IP \[bu] 2 \f[B]routing-policy\f[R] (sequence of mappings) .RS 2 .RS .PP Configure policy routing for the device; see the \f[V]Routing\f[R] section below. .RE .RE .IP \[bu] 2 \f[B]neigh-suppress\f[R] (scalar) \[en] since \f[B]0.105\f[R] .RS 2 .RS .PP Takes a boolean. Configures whether ARP and ND neighbor suppression is enabled for this port. When unset, the kernel\[aq]s default will be used. .RE .RE .SS DHCP Overrides .PP Several DHCP behavior overrides are available. Most currently only have any effect when using the \f[V]networkd\f[R] backend, with the exception of \f[V]use-routes\f[R] and \f[V]route-metric\f[R]. .PP Overrides only have an effect if the corresponding \f[V]dhcp4\f[R] or \f[V]dhcp6\f[R] is set to \f[V]true\f[R]. .PP If both \f[V]dhcp4\f[R] and \f[V]dhcp6\f[R] are \f[V]true\f[R], the \f[V]networkd\f[R] backend requires that \f[V]dhcp4-overrides\f[R] and \f[V]dhcp6-overrides\f[R] contain the same keys and values. If the values do not match, an error will be shown and the network configuration will not be applied. .PP When using the NetworkManager backend, different values may be specified for \f[V]dhcp4-overrides\f[R] and \f[V]dhcp6-overrides\f[R], and will be applied to the DHCP client processes as specified in the netplan YAML. .IP \[bu] 2 \f[B]dhcp4-overrides\f[R], \f[B]dhcp6-overrides\f[R] (mapping) .RS 2 .RS .PP The \f[V]dhcp4-overrides\f[R] and \[ga]dhcp6-override\[ga]\[ga] mappings override the default DHCP behavior. .RE .IP \[bu] 2 \f[B]use-dns\f[R] (bool) .RS 2 .RS .PP Default: \f[V]true\f[R]. When \f[V]true\f[R], the DNS servers received from the DHCP server will be used and take precedence over any statically configured ones. Currently only has an effect on the \f[V]networkd\f[R] backend. .RE .RE .IP \[bu] 2 \f[B]use-ntp\f[R] (bool) .RS 2 .RS .PP Default: \f[V]true\f[R]. When \f[V]true\f[R], the NTP servers received from the DHCP server will be used by systemd-timesyncd and take precedence over any statically configured ones. Currently only has an effect on the \f[V]networkd\f[R] backend. .RE .RE .IP \[bu] 2 \f[B]send-hostname\f[R] (bool) .RS 2 .RS .PP Default: \f[V]true\f[R]. When \f[V]true\f[R], the machine\[aq]s hostname will be sent to the DHCP server. Currently only has an effect on the \f[V]networkd\f[R] backend. .RE .RE .IP \[bu] 2 \f[B]use-hostname\f[R] (bool) .RS 2 .RS .PP Default: \f[V]true\f[R]. When \f[V]true\f[R], the hostname received from the DHCP server will be set as the transient hostname of the system. Currently only has an effect on the \f[V]networkd\f[R] backend. .RE .RE .IP \[bu] 2 \f[B]use-mtu\f[R] (bool) .RS 2 .RS .PP Default: \f[V]true\f[R]. When \f[V]true\f[R], the MTU received from the DHCP server will be set as the MTU of the network interface. When \f[V]false\f[R], the MTU advertised by the DHCP server will be ignored. Currently only has an effect on the \f[V]networkd\f[R] backend. .RE .RE .IP \[bu] 2 \f[B]hostname\f[R] (scalar) .RS 2 .RS .PP Use this value for the hostname which is sent to the DHCP server, instead of machine\[aq]s hostname. Currently only has an effect on the \f[V]networkd\f[R] backend. .RE .RE .IP \[bu] 2 \f[B]use-routes\f[R] (bool) .RS 2 .RS .PP Default: \f[V]true\f[R]. When \f[V]true\f[R], the routes received from the DHCP server will be installed in the routing table normally. When set to \f[V]false\f[R], routes from the DHCP server will be ignored: in this case, the user is responsible for adding static routes if necessary for correct network operation. This allows users to avoid installing a default gateway for interfaces configured via DHCP. Available for both the \f[V]networkd\f[R] and \f[V]NetworkManager\f[R] backends. .RE .RE .IP \[bu] 2 \f[B]route-metric\f[R] (scalar) .RS 2 .RS .PP Use this value for default metric for automatically-added routes. Use this to prioritize routes for devices by setting a lower metric on a preferred interface. Available for both the \f[V]networkd\f[R] and \f[V]NetworkManager\f[R] backends. .RE .RE .IP \[bu] 2 \f[B]use-domains\f[R] (scalar) \[en] since \f[B]0.98\f[R] .RS 2 .RS .PP Takes a boolean, or the special value \[dq]route\[dq]. When true, the domain name received from the DHCP server will be used as DNS search domain over this link, similar to the effect of the Domains= setting. If set to \[dq]route\[dq], the domain name received from the DHCP server will be used for routing DNS queries only, but not for searching, similar to the effect of the Domains= setting when the argument is prefixed with \[dq]\[ti]\[dq]. .PP \f[B]Requires feature: dhcp-use-domains\f[R] .RE .RE .RE .SS Routing .PP Complex routing is possible with netplan. Standard static routes as well as policy routing using routing tables are supported via the \f[V]networkd\f[R] backend. .PP These options are available for all types of interfaces. .SS Default routes .PP The most common need for routing concerns the definition of default routes to reach the wider Internet. Those default routes can only defined once per IP family and routing table. A typical example would look like the following: .IP .nf \f[C] eth0: [...] routes: - to: default # could be 0.0.0.0/0 optionally via: 10.0.0.1 metric: 100 on-link: true - to: default # could be ::/0 optionally via: cf02:de:ad:be:ef::2 eth1: [...] routes: - to: default via: 172.134.67.1 metric: 100 on-link: true # Not on the main routing table, # does not conflict with the eth0 default route table: 76 \f[R] .fi .IP \[bu] 2 \f[B]routes\f[R] (mapping) .RS 2 .RS .PP The \f[V]routes\f[R] block defines standard static routes for an interface. At least \f[V]to\f[R] must be specified. If type is \f[V]local\f[R] or \f[V]nat\f[R] a default scope of \f[V]host\f[R] is assumed. If type is \f[V]unicast\f[R] and no gateway (\f[V]via\f[R]) is given or type is \f[V]broadcast\f[R], \f[V]multicast\f[R] or \f[V]anycast\f[R] a default scope of \f[V]link\f[R] is assumed. Otherwise, a \f[V]global\f[R] scope is the default setting. .PP For \f[V]from\f[R], \f[V]to\f[R], and \f[V]via\f[R], both IPv4 and IPv6 addresses are recognized, and must be in the form \f[V]addr/prefixlen\f[R] or \f[V]addr\f[R]. .RE .IP \[bu] 2 \f[B]from\f[R] (scalar) .RS 2 .RS .PP Set a source IP address for traffic going through the route. (\f[V]NetworkManager\f[R]: as of v1.8.0) .RE .RE .IP \[bu] 2 \f[B]to\f[R] (scalar) .RS 2 .RS .PP Destination address for the route. .RE .RE .IP \[bu] 2 \f[B]via\f[R] (scalar) .RS 2 .RS .PP Address to the gateway to use for this route. .RE .RE .IP \[bu] 2 \f[B]on-link\f[R] (bool) .RS 2 .RS .PP When set to \[dq]true\[dq], specifies that the route is directly connected to the interface. (\f[V]NetworkManager\f[R]: as of v1.12.0 for IPv4 and v1.18.0 for IPv6) .RE .RE .IP \[bu] 2 \f[B]metric\f[R] (scalar) .RS 2 .RS .PP The relative priority of the route. Must be a positive integer value. .RE .RE .IP \[bu] 2 \f[B]type\f[R] (scalar) .RS 2 .RS .PP The type of route. Valid options are \[dq]unicast\[dq] (default), \[dq]anycast\[dq], \[dq]blackhole\[dq], \[dq]broadcast\[dq], \[dq]local\[dq], \[dq]multicast\[dq], \[dq]nat\[dq], \[dq]prohibit\[dq], \[dq]throw\[dq], \[dq]unreachable\[dq] or \[dq]xresolve\[dq]. .RE .RE .IP \[bu] 2 \f[B]scope\f[R] (scalar) .RS 2 .RS .PP The route scope, how wide-ranging it is to the network. Possible values are \[dq]global\[dq], \[dq]link\[dq], or \[dq]host\[dq]. Applies to IPv4 only. .RE .RE .IP \[bu] 2 \f[B]table\f[R] (scalar) .RS 2 .RS .PP The table number to use for the route. In some scenarios, it may be useful to set routes in a separate routing table. It may also be used to refer to routing policy rules which also accept a \f[V]table\f[R] parameter. Allowed values are positive integers starting from 1. Some values are already in use to refer to specific routing tables: see \f[V]/etc/iproute2/rt_tables\f[R]. (\f[V]NetworkManager\f[R]: as of v1.10.0) .RE .RE .IP \[bu] 2 \f[B]mtu\f[R] (scalar) \[en] since \f[B]0.101\f[R] .RS 2 .RS .PP The MTU to be used for the route, in bytes. Must be a positive integer value. .RE .RE .IP \[bu] 2 \f[B]congestion-window\f[R] (scalar) \[en] since \f[B]0.102\f[R] .RS 2 .RS .PP The congestion window to be used for the route, represented by number of segments. Must be a positive integer value. .RE .RE .IP \[bu] 2 \f[B]advertised-receive-window\f[R] (scalar) \[en] since \f[B]0.102\f[R] .RS 2 .RS .PP The receive window to be advertised for the route, represented by number of segments. Must be a positive integer value. .RE .RE .RE .IP \[bu] 2 \f[B]routing-policy\f[R] (mapping) .RS 2 .RS .PP The \f[V]routing-policy\f[R] block defines extra routing policy for a network, where traffic may be handled specially based on the source IP, firewall marking, etc. .PP For \f[V]from\f[R], \f[V]to\f[R], both IPv4 and IPv6 addresses are recognized, and must be in the form \f[V]addr/prefixlen\f[R] or \f[V]addr\f[R]. .RE .IP \[bu] 2 \f[B]from\f[R] (scalar) .RS 2 .RS .PP Set a source IP address to match traffic for this policy rule. .RE .RE .IP \[bu] 2 \f[B]to\f[R] (scalar) .RS 2 .RS .PP Match on traffic going to the specified destination. .RE .RE .IP \[bu] 2 \f[B]table\f[R] (scalar) .RS 2 .RS .PP The table number to match for the route. In some scenarios, it may be useful to set routes in a separate routing table. It may also be used to refer to routes which also accept a \f[V]table\f[R] parameter. Allowed values are positive integers starting from 1. Some values are already in use to refer to specific routing tables: see \f[V]/etc/iproute2/rt_tables\f[R]. .RE .RE .IP \[bu] 2 \f[B]priority\f[R] (scalar) .RS 2 .RS .PP Specify a priority for the routing policy rule, to influence the order in which routing rules are processed. A higher number means lower priority: rules are processed in order by increasing priority number. .RE .RE .IP \[bu] 2 \f[B]mark\f[R] (scalar) .RS 2 .RS .PP Have this routing policy rule match on traffic that has been marked by the iptables firewall with this value. Allowed values are positive integers starting from 1. .RE .RE .IP \[bu] 2 \f[B]type-of-service\f[R] (scalar) .RS 2 .RS .PP Match this policy rule based on the type of service number applied to the traffic. .RE .RE .RE .SS Authentication .PP Netplan supports advanced authentication settings for ethernet and wifi interfaces, as well as individual wifi networks, by means of the \f[V]auth\f[R] block. .IP \[bu] 2 \f[B]auth\f[R] (mapping) .RS 2 .RS .PP Specifies authentication settings for a device of type \f[V]ethernets:\f[R], or an \f[V]access-points:\f[R] entry on a \f[V]wifis:\f[R] device. .PP The \f[V]auth\f[R] block supports the following properties: .RE .IP \[bu] 2 \f[B]key-management\f[R] (scalar) .RS 2 .RS .PP The supported key management modes are \f[V]none\f[R] (no key management); \f[V]psk\f[R] (WPA with pre-shared key, common for home wifi); \f[V]eap\f[R] (WPA with EAP, common for enterprise wifi); and \f[V]802.1x\f[R] (used primarily for wired Ethernet connections). .RE .RE .IP \[bu] 2 \f[B]password\f[R] (scalar) .RS 2 .RS .PP The password string for EAP, or the pre-shared key for WPA-PSK. .RE .PP The following properties can be used if \f[V]key-management\f[R] is \f[V]eap\f[R] or \f[V]802.1x\f[R]: .RE .IP \[bu] 2 \f[B]method\f[R] (scalar) .RS 2 .RS .PP The EAP method to use. The supported EAP methods are \f[V]tls\f[R] (TLS), \f[V]peap\f[R] (Protected EAP), and \f[V]ttls\f[R] (Tunneled TLS). .RE .RE .IP \[bu] 2 \f[B]identity\f[R] (scalar) .RS 2 .RS .PP The identity to use for EAP. .RE .RE .IP \[bu] 2 \f[B]anonymous-identity\f[R] (scalar) .RS 2 .RS .PP The identity to pass over the unencrypted channel if the chosen EAP method supports passing a different tunnelled identity. .RE .RE .IP \[bu] 2 \f[B]ca-certificate\f[R] (scalar) .RS 2 .RS .PP Path to a file with one or more trusted certificate authority (CA) certificates. .RE .RE .IP \[bu] 2 \f[B]client-certificate\f[R] (scalar) .RS 2 .RS .PP Path to a file containing the certificate to be used by the client during authentication. .RE .RE .IP \[bu] 2 \f[B]client-key\f[R] (scalar) .RS 2 .RS .PP Path to a file containing the private key corresponding to \f[V]client-certificate\f[R]. .RE .RE .IP \[bu] 2 \f[B]client-key-password\f[R] (scalar) .RS 2 .RS .PP Password to use to decrypt the private key specified in \f[V]client-key\f[R] if it is encrypted. .RE .RE .IP \[bu] 2 \f[B]phase2-auth\f[R] (scalar) \[en] since \f[B]0.99\f[R] .RS 2 .RS .PP Phase 2 authentication mechanism. .RE .RE .RE .SS Properties for device type \f[V]ethernets:\f[R] .PP Ethernet device definitions, beyond common ones described above, also support some additional properties that can be used for SR-IOV devices. .IP \[bu] 2 \f[B]link\f[R] (scalar) \[en] since \f[B]0.99\f[R] .RS 2 .RS .PP (SR-IOV devices only) The \f[V]link\f[R] property declares the device as a Virtual Function of the selected Physical Function device, as identified by the given netplan id. .RE .PP Example: .IP .nf \f[C] ethernets: enp1: {...} enp1s16f1: link: enp1 \f[R] .fi .RE .IP \[bu] 2 \f[B]virtual-function-count\f[R] (scalar) \[en] since \f[B]0.99\f[R] .RS 2 .RS .PP (SR-IOV devices only) In certain special cases VFs might need to be configured outside of netplan. For such configurations \f[V]virtual-function-count\f[R] can be optionally used to set an explicit number of Virtual Functions for the given Physical Function. If unset, the default is to create only as many VFs as are defined in the netplan configuration. This should be used for special cases only. .PP \f[B]Requires feature: sriov\f[R] .RE .RE .IP \[bu] 2 \f[B]embedded-switch-mode\f[R] (scalar) \[en] since \f[B]0.104\f[R] .RS 2 .RS .PP (SR-IOV devices only) Change the operational mode of the embedded switch of a supported SmartNIC PCI device (e.g. Mellanox ConnectX-5). Possible values are \f[V]switchdev\f[R] or \f[V]legacy\f[R], if unspecified the vendor\[aq]s default configuration is used. .PP \f[B]Requires feature: eswitch-mode\f[R] .RE .RE .IP \[bu] 2 \f[B]delay-virtual-functions-rebind\f[R] (bool) \[en] since \f[B]0.104\f[R] .RS 2 .RS .PP (SR-IOV devices only) Delay rebinding of SR-IOV virtual functions to its driver after changing the embedded-switch-mode setting to a later stage. Can be enabled when bonding/VF LAG is in use. Defaults to \f[V]false\f[R]. .PP \f[B]Requires feature: eswitch-mode\f[R] .RE .RE .IP \[bu] 2 \f[B]infiniband-mode\f[R] (scalar) \[en] since \f[B]0.105\f[R] .RS 2 .RS .PP (InfiniBand devices only) Change the operational mode of a IPoIB device. Possible values are \f[V]datagram\f[R] or \f[V]connected\f[R]. If unspecified the kernel\[aq]s default configuration is used. .PP \f[B]Requires feature: infiniband\f[R] .RE .RE .SS Properties for device type \f[V]modems:\f[R] .PP GSM/CDMA modem configuration is only supported for the \f[V]NetworkManager\f[R] backend. \f[V]systemd-networkd\f[R] does not support modems. .PP \f[B]Requires feature: modems\f[R] .IP \[bu] 2 \f[B]apn\f[R] (scalar) \[en] since \f[B]0.99\f[R] .RS 2 .RS .PP Set the carrier APN (Access Point Name). This can be omitted if \f[V]auto-config\f[R] is enabled. .RE .RE .IP \[bu] 2 \f[B]auto-config\f[R] (bool) \[en] since \f[B]0.99\f[R] .RS 2 .RS .PP Specify whether to try and auto-configure the modem by doing a lookup of the carrier against the Mobile Broadband Provider database. This may not work for all carriers. .RE .RE .IP \[bu] 2 \f[B]device-id\f[R] (scalar) \[en] since \f[B]0.99\f[R] .RS 2 .RS .PP Specify the device ID (as given by the WWAN management service) of the modem to match. This can be found using \f[V]mmcli\f[R]. .RE .RE .IP \[bu] 2 \f[B]network-id\f[R] (scalar) \[en] since \f[B]0.99\f[R] .RS 2 .RS .PP Specify the Network ID (GSM LAI format). If this is specified, the device will not roam networks. .RE .RE .IP \[bu] 2 \f[B]number\f[R] (scalar) \[en] since \f[B]0.99\f[R] .RS 2 .RS .PP The number to dial to establish the connection to the mobile broadband network. (Deprecated for GSM) .RE .RE .IP \[bu] 2 \f[B]password\f[R] (scalar) \[en] since \f[B]0.99\f[R] .RS 2 .RS .PP Specify the password used to authenticate with the carrier network. This can be omitted if \f[V]auto-config\f[R] is enabled. .RE .RE .IP \[bu] 2 \f[B]pin\f[R] (scalar) \[en] since \f[B]0.99\f[R] .RS 2 .RS .PP Specify the SIM PIN to allow it to operate if a PIN is set. .RE .RE .IP \[bu] 2 \f[B]sim-id\f[R] (scalar) \[en] since \f[B]0.99\f[R] .RS 2 .RS .PP Specify the SIM unique identifier (as given by the WWAN management service) which this connection applies to. If given, the connection will apply to any device also allowed by \f[V]device-id\f[R] which contains a SIM card matching the given identifier. .RE .RE .IP \[bu] 2 \f[B]sim-operator-id\f[R] (scalar) \[en] since \f[B]0.99\f[R] .RS 2 .RS .PP Specify the MCC/MNC string (such as \[dq]310260\[dq] or \[dq]21601\[dq]) which identifies the carrier that this connection should apply to. If given, the connection will apply to any device also allowed by \f[V]device-id\f[R] and \f[V]sim-id\f[R] which contains a SIM card provisioned by the given operator. .RE .RE .IP \[bu] 2 \f[B]username\f[R] (scalar) \[en] since \f[B]0.99\f[R] .RS 2 .RS .PP Specify the username used to authenticate with the carrier network. This can be omitted if \f[V]auto-config\f[R] is enabled. .RE .RE .SS Properties for device type \f[V]wifis:\f[R] .PP Note that \f[V]systemd-networkd\f[R] does not natively support wifi, so you need wpasupplicant installed if you let the \f[V]networkd\f[R] renderer handle wifi. .IP \[bu] 2 \f[B]access-points\f[R] (mapping) .RS 2 .RS .PP This provides pre-configured connections to NetworkManager. Note that users can of course select other access points/SSIDs. The keys of the mapping are the SSIDs, and the values are mappings with the following supported properties: .RE .IP \[bu] 2 \f[B]password\f[R] (scalar) .RS 2 .RS .PP Enable WPA/WPA2 authentication and set the passphrase for it. If neither this nor an \f[V]auth\f[R] block are given, the network is assumed to be open. The setting .IP .nf \f[C] password: \[dq]S3kr1t\[dq] \f[R] .fi .PP is equivalent to .IP .nf \f[C] auth: key-management: psk password: \[dq]S3kr1t\[dq] \f[R] .fi .RE .RE .IP \[bu] 2 \f[B]mode\f[R] (scalar) .RS 2 .RS .PP Possible access point modes are \f[V]infrastructure\f[R] (the default), \f[V]ap\f[R] (create an access point to which other devices can connect), and \f[V]adhoc\f[R] (peer to peer networks without a central access point). \f[V]ap\f[R] is only supported with NetworkManager. .RE .RE .IP \[bu] 2 \f[B]bssid\f[R] (scalar) \[en] since \f[B]0.99\f[R] .RS 2 .RS .PP If specified, directs the device to only associate with the given access point. .RE .RE .IP \[bu] 2 \f[B]band\f[R] (scalar) \[en] since \f[B]0.99\f[R] .RS 2 .RS .PP Possible bands are \f[V]5GHz\f[R] (for 5GHz 802.11a) and \f[V]2.4GHz\f[R] (for 2.4GHz 802.11), do not restrict the 802.11 frequency band of the network if unset (the default). .RE .RE .IP \[bu] 2 \f[B]channel\f[R] (scalar) \[en] since \f[B]0.99\f[R] .RS 2 .RS .PP Wireless channel to use for the Wi-Fi connection. Because channel numbers overlap between bands, this property takes effect only if the \f[V]band\f[R] property is also set. .RE .RE .IP \[bu] 2 \f[B]hidden\f[R] (bool) \[en] since \f[B]0.100\f[R] .RS 2 .RS .PP Set to \f[V]true\f[R] to change the SSID scan technique for connecting to hidden WiFi networks. Note this may have slower performance compared to \f[V]false\f[R] (the default) when connecting to publicly broadcast SSIDs. .RE .RE .RE .IP \[bu] 2 \f[B]wakeonwlan\f[R] (sequence of scalars) \[en] since \f[B]0.99\f[R] .RS 2 .RS .PP This enables WakeOnWLan on supported devices. Not all drivers support all options. May be any combination of \f[V]any\f[R], \f[V]disconnect\f[R], \f[V]magic_pkt\f[R], \f[V]gtk_rekey_failure\f[R], \f[V]eap_identity_req\f[R], \f[V]four_way_handshake\f[R], \f[V]rfkill_release\f[R] or \f[V]tcp\f[R] (NetworkManager only). Or the exclusive \f[V]default\f[R] flag (the default). .RE .RE .IP \[bu] 2 \f[B]regulatory-domain\f[R] (scalar) \[en] since \f[B]0.105\f[R] .RS 2 .RS .PP This can be used to define the radio\[aq]s regulatory domain, to make use of additional WiFi channels outside the \[dq]world domain\[dq]. Takes an ISO / IEC 3166 country code (like \f[V]GB\f[R]) or \f[V]00\f[R] to reset to the \[dq]world domain\[dq]. See wireless-regdb (https://git.kernel.org/pub/scm/linux/kernel/git/sforshee/wireless-regdb.git/tree/db.txt) for available values. .PP \f[B]Requires dependency: iw\f[R], if it is to be used outside the \f[V]networkd\f[R] (wpa_supplicant) backend. .RE .RE .SS Properties for device type \f[V]bridges:\f[R] .IP \[bu] 2 \f[B]interfaces\f[R] (sequence of scalars) .RS 2 .RS .PP All devices matching this ID list will be added to the bridge. This may be an empty list, in which case the bridge will be brought online with no member interfaces. .RE .PP Example: .IP .nf \f[C] ethernets: switchports: match: {name: \[dq]enp2*\[dq]} [...] bridges: br0: interfaces: [switchports] \f[R] .fi .RE .IP \[bu] 2 \f[B]parameters\f[R] (mapping) .RS 2 .RS .PP Customization parameters for special bridging options. Time intervals may need to be expressed as a number of seconds or milliseconds: the default value type is specified below. If necessary, time intervals can be qualified using a time suffix (such as \[dq]s\[dq] for seconds, \[dq]ms\[dq] for milliseconds) to allow for more control over its behavior. .RE .IP \[bu] 2 \f[B]ageing-time\f[R], \f[B]aging-time\f[R] (scalar) .RS 2 .RS .PP Set the period of time to keep a MAC address in the forwarding database after a packet is received. This maps to the AgeingTimeSec= property when the networkd renderer is used. If no time suffix is specified, the value will be interpreted as seconds. .RE .RE .IP \[bu] 2 \f[B]priority\f[R] (scalar) .RS 2 .RS .PP Set the priority value for the bridge. This value should be a number between \f[V]0\f[R] and \f[V]65535\f[R]. Lower values mean higher priority. The bridge with the higher priority will be elected as the root bridge. .RE .RE .IP \[bu] 2 \f[B]port-priority\f[R] (scalar) .RS 2 .RS .PP Set the port priority to . The priority value is a number between \f[V]0\f[R] and \f[V]63\f[R]. This metric is used in the designated port and root port selection algorithms. .RE .RE .IP \[bu] 2 \f[B]forward-delay\f[R] (scalar) .RS 2 .RS .PP Specify the period of time the bridge will remain in Listening and Learning states before getting to the Forwarding state. This field maps to the ForwardDelaySec= property for the networkd renderer. If no time suffix is specified, the value will be interpreted as seconds. .RE .RE .IP \[bu] 2 \f[B]hello-time\f[R] (scalar) .RS 2 .RS .PP Specify the interval between two hello packets being sent out from the root and designated bridges. Hello packets communicate information about the network topology. When the networkd renderer is used, this maps to the HelloTimeSec= property. If no time suffix is specified, the value will be interpreted as seconds. .RE .RE .IP \[bu] 2 \f[B]max-age\f[R] (scalar) .RS 2 .RS .PP Set the maximum age of a hello packet. If the last hello packet is older than that value, the bridge will attempt to become the root bridge. This maps to the MaxAgeSec= property when the networkd renderer is used. If no time suffix is specified, the value will be interpreted as seconds. .RE .RE .IP \[bu] 2 \f[B]path-cost\f[R] (scalar) .RS 2 .RS .PP Set the cost of a path on the bridge. Faster interfaces should have a lower cost. This allows a finer control on the network topology so that the fastest paths are available whenever possible. .RE .RE .IP \[bu] 2 \f[B]stp\f[R] (bool) .RS 2 .RS .PP Define whether the bridge should use Spanning Tree Protocol. The default value is \[dq]true\[dq], which means that Spanning Tree should be used. .RE .RE .RE .SS Properties for device type \f[V]bonds:\f[R] .IP \[bu] 2 \f[B]interfaces\f[R] (sequence of scalars) .RS 2 .RS .PP All devices matching this ID list will be added to the bond. .RE .PP Example: .IP .nf \f[C] ethernets: switchports: match: {name: \[dq]enp2*\[dq]} [...] bonds: bond0: interfaces: [switchports] \f[R] .fi .RE .IP \[bu] 2 \f[B]parameters\f[R] (mapping) .RS 2 .RS .PP Customization parameters for special bonding options. Time intervals may need to be expressed as a number of seconds or milliseconds: the default value type is specified below. If necessary, time intervals can be qualified using a time suffix (such as \[dq]s\[dq] for seconds, \[dq]ms\[dq] for milliseconds) to allow for more control over its behavior. .RE .IP \[bu] 2 \f[B]mode\f[R] (scalar) .RS 2 .RS .PP Set the bonding mode used for the interfaces. The default is \f[V]balance-rr\f[R] (round robin). Possible values are \f[V]balance-rr\f[R], \f[V]active-backup\f[R], \f[V]balance-xor\f[R], \f[V]broadcast\f[R], \f[V]802.3ad\f[R], \f[V]balance-tlb\f[R], and \f[V]balance-alb\f[R]. For Open vSwitch \f[V]active-backup\f[R] and the additional modes \f[V]balance-tcp\f[R] and \f[V]balance-slb\f[R] are supported. .RE .RE .IP \[bu] 2 \f[B]lacp-rate\f[R] (scalar) .RS 2 .RS .PP Set the rate at which LACPDUs are transmitted. This is only useful in 802.3ad mode. Possible values are \f[V]slow\f[R] (30 seconds, default), and \f[V]fast\f[R] (every second). .RE .RE .IP \[bu] 2 \f[B]mii-monitor-interval\f[R] (scalar) .RS 2 .RS .PP Specifies the interval for MII monitoring (verifying if an interface of the bond has carrier). The default is \f[V]0\f[R]; which disables MII monitoring. This is equivalent to the MIIMonitorSec= field for the networkd backend. If no time suffix is specified, the value will be interpreted as milliseconds. .RE .RE .IP \[bu] 2 \f[B]min-links\f[R] (scalar) .RS 2 .RS .PP The minimum number of links up in a bond to consider the bond interface to be up. .RE .RE .IP \[bu] 2 \f[B]transmit-hash-policy\f[R] (scalar) .RS 2 .RS .PP Specifies the transmit hash policy for the selection of ports. This is only useful in balance-xor, 802.3ad and balance-tlb modes. Possible values are \f[V]layer2\f[R], \f[V]layer3+4\f[R], \f[V]layer2+3\f[R], \f[V]encap2+3\f[R], and \f[V]encap3+4\f[R]. .RE .RE .IP \[bu] 2 \f[B]ad-select\f[R] (scalar) .RS 2 .RS .PP Set the aggregation selection mode. Possible values are \f[V]stable\f[R], \f[V]bandwidth\f[R], and \f[V]count\f[R]. This option is only used in 802.3ad mode. .RE .RE .IP \[bu] 2 \f[B]all-members-active\f[R] (bool) \[en] since \f[B]0.106\f[R] .RS 2 .RS .PP If the bond should drop duplicate frames received on inactive ports, set this option to \f[V]false\f[R]. If they should be delivered, set this option to \f[V]true\f[R]. The default value is false, and is the desirable behavior in most situations. .PP Alias: \f[B]all-slaves-active\f[R] .RE .RE .IP \[bu] 2 \f[B]arp-interval\f[R] (scalar) .RS 2 .RS .PP Set the interval value for how frequently ARP link monitoring should happen. The default value is \f[V]0\f[R], which disables ARP monitoring. For the networkd backend, this maps to the ARPIntervalSec= property. If no time suffix is specified, the value will be interpreted as milliseconds. .RE .RE .IP \[bu] 2 \f[B]arp-ip-targets\f[R] (sequence of scalars) .RS 2 .RS .PP IPs of other hosts on the link which should be sent ARP requests in order to validate that a port is up. This option is only used when \f[V]arp-interval\f[R] is set to a value other than \f[V]0\f[R]. At least one IP address must be given for ARP link monitoring to function. Only IPv4 addresses are supported. You can specify up to 16 IP addresses. The default value is an empty list. .RE .RE .IP \[bu] 2 \f[B]arp-validate\f[R] (scalar) .RS 2 .RS .PP Configure how ARP replies are to be validated when using ARP link monitoring. Possible values are \f[V]none\f[R], \f[V]active\f[R], \f[V]backup\f[R], and \f[V]all\f[R]. .RE .RE .IP \[bu] 2 \f[B]arp-all-targets\f[R] (scalar) .RS 2 .RS .PP Specify whether to use any ARP IP target being up as sufficient for a port to be considered up; or if all the targets must be up. This is only used for \f[V]active-backup\f[R] mode when \f[V]arp-validate\f[R] is enabled. Possible values are \f[V]any\f[R] and \f[V]all\f[R]. .RE .RE .IP \[bu] 2 \f[B]up-delay\f[R] (scalar) .RS 2 .RS .PP Specify the delay before enabling a link once the link is physically up. The default value is \f[V]0\f[R]. This maps to the UpDelaySec= property for the networkd renderer. This option is only valid for the miimon link monitor. If no time suffix is specified, the value will be interpreted as milliseconds. .RE .RE .IP \[bu] 2 \f[B]down-delay\f[R] (scalar) .RS 2 .RS .PP Specify the delay before disabling a link once the link has been lost. The default value is \f[V]0\f[R]. This maps to the DownDelaySec= property for the networkd renderer. This option is only valid for the miimon link monitor. If no time suffix is specified, the value will be interpreted as milliseconds. .RE .RE .IP \[bu] 2 \f[B]fail-over-mac-policy\f[R] (scalar) .RS 2 .RS .PP Set whether to set all ports to the same MAC address when adding them to the bond, or how else the system should handle MAC addresses. The possible values are \f[V]none\f[R], \f[V]active\f[R], and \f[V]follow\f[R]. .RE .RE .IP \[bu] 2 \f[B]gratuitous-arp\f[R] (scalar) .RS 2 .RS .PP Specify how many ARP packets to send after failover. Once a link is up on a new port, a notification is sent and possibly repeated if this value is set to a number greater than \f[V]1\f[R]. The default value is \f[V]1\f[R] and valid values are between \f[V]1\f[R] and \f[V]255\f[R]. This only affects \f[V]active-backup\f[R] mode. .PP For historical reasons, the misspelling \f[V]gratuitious-arp\f[R] is also accepted and has the same function. .RE .RE .IP \[bu] 2 \f[B]packets-per-member\f[R] (scalar) \[en] since \f[B]0.106\f[R] .RS 2 .RS .PP In \f[V]balance-rr\f[R] mode, specifies the number of packets to transmit on a port before switching to the next. When this value is set to \f[V]0\f[R], ports are chosen at random. Allowable values are between \f[V]0\f[R] and \f[V]65535\f[R]. The default value is \f[V]1\f[R]. This setting is only used in \f[V]balance-rr\f[R] mode. .PP Alias: \f[B]packets-per-slave\f[R] .RE .RE .IP \[bu] 2 \f[B]primary-reselect-policy\f[R] (scalar) .RS 2 .RS .PP Set the reselection policy for the primary port. On failure of the active port, the system will use this policy to decide how the new active port will be chosen and how recovery will be handled. The possible values are \f[V]always\f[R], \f[V]better\f[R], and \f[V]failure\f[R]. .RE .RE .IP \[bu] 2 \f[B]resend-igmp\f[R] (scalar) .RS 2 .RS .PP In modes \f[V]balance-rr\f[R], \f[V]active-backup\f[R], \f[V]balance-tlb\f[R] and \f[V]balance-alb\f[R], a failover can switch IGMP traffic from one port to another. .PP This parameter specifies how many IGMP membership reports are issued on a failover event. Values range from 0 to 255. 0 disables sending membership reports. Otherwise, the first membership report is sent on failover and subsequent reports are sent at 200ms intervals. .RE .RE .IP \[bu] 2 \f[B]learn-packet-interval\f[R] (scalar) .RS 2 .RS .PP Specify the interval between sending learning packets to each port. The value range is between \f[V]1\f[R] and \f[V]0x7fffffff\f[R]. The default value is \f[V]1\f[R]. This option only affects \f[V]balance-tlb\f[R] and \f[V]balance-alb\f[R] modes. Using the networkd renderer, this field maps to the LearnPacketIntervalSec= property. If no time suffix is specified, the value will be interpreted as seconds. .RE .RE .IP \[bu] 2 \f[B]primary\f[R] (scalar) .RS 2 .RS .PP Specify a device to be used as a primary port, or preferred device to use as a port for the bond (i.e. the preferred device to send data through), whenever it is available. This only affects \f[V]active-backup\f[R], \f[V]balance-alb\f[R], and \f[V]balance-tlb\f[R] modes. .RE .RE .RE .SS Properties for device type \f[V]tunnels:\f[R] .PP Tunnels allow traffic to pass as if it was between systems on the same local network, although systems may be far from each other but reachable via the Internet. They may be used to support IPv6 traffic on a network where the ISP does not provide the service, or to extend and \[dq]connect\[dq] separate local networks. Please see for more general information about tunnels. .IP \[bu] 2 \f[B]mode\f[R] (scalar) .RS 2 .RS .PP Defines the tunnel mode. Valid options are \f[V]sit\f[R], \f[V]gre\f[R], \f[V]ip6gre\f[R], \f[V]ipip\f[R], \f[V]ipip6\f[R], \f[V]ip6ip6\f[R], \f[V]vti\f[R], \f[V]vti6\f[R], \f[V]wireguard\f[R] and \f[V]vxlan\f[R]. Additionally, the \f[V]networkd\f[R] backend also supports \f[V]gretap\f[R] and \f[V]ip6gretap\f[R] modes. In addition, the \f[V]NetworkManager\f[R] backend supports \f[V]isatap\f[R] tunnels. .RE .RE .IP \[bu] 2 \f[B]local\f[R] (scalar) .RS 2 .RS .PP Defines the address of the local endpoint of the tunnel. (For VXLAN) This should match one of the parent\[aq]s IP addresses or make use of the networkd special values. .RE .RE .IP \[bu] 2 \f[B]remote\f[R] (scalar) .RS 2 .RS .PP Defines the address of the remote endpoint of the tunnel or multicast group IP address for VXLAN. .RE .RE .IP \[bu] 2 \f[B]ttl\f[R] (scalar) \[en] since \f[B]0.103\f[R] .RS 2 .RS .PP Defines the Time To Live (TTL) of the tunnel. Takes a number in the range \f[V]1..255\f[R]. .RE .RE .IP \[bu] 2 \f[B]key\f[R] (scalar or mapping) .RS 2 .RS .PP Define keys to use for the tunnel. The key can be a number or a dotted quad (an IPv4 address). For \f[V]wireguard\f[R] it can be a base64-encoded private key or (as of \f[V]networkd\f[R] v242+) an absolute path to a file, containing the private key (since 0.100). It is used for identification of IP transforms. This is only required for \f[V]vti\f[R] and \f[V]vti6\f[R] when using the networkd backend. .PP This field may be used as a scalar (meaning that a single key is specified and to be used for input, output and private key), or as a mapping, where you can further specify \f[V]input\f[R]/\f[V]output\f[R]/\f[V]private\f[R]. .RE .IP \[bu] 2 \f[B]input\f[R] (scalar) .RS 2 .RS .PP The input key for the tunnel .RE .RE .IP \[bu] 2 \f[B]output\f[R] (scalar) .RS 2 .RS .PP The output key for the tunnel .RE .RE .IP \[bu] 2 \f[B]private\f[R] (scalar) \[en] since \f[B]0.100\f[R] .RS 2 .RS .PP A base64-encoded private key required for WireGuard tunnels. When the \f[V]systemd-networkd\f[R] backend (v242+) is used, this can also be an absolute path to a file containing the private key. .RE .RE .RE .IP \[bu] 2 \f[B]keys\f[R] (scalar or mapping) .RS 2 .RS .PP Alternate name for the \f[V]key\f[R] field. See above. .RE .PP Examples: .IP .nf \f[C] tunnels: tun0: mode: gre local: ... remote: ... keys: input: 1234 output: 5678 \f[R] .fi .IP .nf \f[C] tunnels: tun0: mode: vti6 local: ... remote: ... key: 59568549 \f[R] .fi .IP .nf \f[C] tunnels: wg0: mode: wireguard addresses: [...] peers: - keys: public: rlbInAj0qV69CysWPQY7KEBnKxpYCpaWqOs/dLevdWc= shared: /path/to/shared.key ... key: mNb7OIIXTdgW4khM7OFlzJ+UPs7lmcWHV7xjPgakMkQ= \f[R] .fi .IP .nf \f[C] tunnels: wg0: mode: wireguard addresses: [...] peers: - keys: public: rlbInAj0qV69CysWPQY7KEBnKxpYCpaWqOs/dLevdWc= ... keys: private: /path/to/priv.key \f[R] .fi .RE .PP WireGuard specific keys: .IP \[bu] 2 \f[B]mark\f[R] (scalar) \[en] since \f[B]0.100\f[R] .RS 2 .RS .PP Firewall mark for outgoing WireGuard packets from this interface, optional. .RE .RE .IP \[bu] 2 \f[B]port\f[R] (scalar) \[en] since \f[B]0.100\f[R] .RS 2 .RS .PP UDP port to listen at or \f[V]auto\f[R]. Optional, defaults to \f[V]auto\f[R]. .RE .RE .IP \[bu] 2 \f[B]peers\f[R] (sequence of mappings) \[en] since \f[B]0.100\f[R] .RS 2 .RS .PP A list of peers, each having keys documented below. .RE .PP Example: .IP .nf \f[C] tunnels: wg0: mode: wireguard key: /path/to/private.key mark: 42 port: 5182 peers: - keys: public: rlbInAj0qV69CysWPQY7KEBnKxpYCpaWqOs/dLevdWc= allowed-ips: [0.0.0.0/0, \[dq]2001:fe:ad:de:ad:be:ef:1/24\[dq]] keepalive: 23 endpoint: 1.2.3.4:5 - keys: public: M9nt4YujIOmNrRmpIRTmYSfMdrpvE7u6WkG8FY8WjG4= shared: /some/shared.key allowed-ips: [10.10.10.20/24] keepalive: 22 endpoint: 5.4.3.2:1 \f[R] .fi .IP \[bu] 2 \f[B]endpoint\f[R] (scalar) \[en] since \f[B]0.100\f[R] .RS 2 .RS .PP Remote endpoint IPv4/IPv6 address or a hostname, followed by a colon and a port number. .RE .RE .IP \[bu] 2 \f[B]allowed-ips\f[R] (sequence of scalars) \[en] since \f[B]0.100\f[R] .RS 2 .RS .PP A list of IP (v4 or v6) addresses with CIDR masks from which this peer is allowed to send incoming traffic and to which outgoing traffic for this peer is directed. The catch-all 0.0.0.0/0 may be specified for matching all IPv4 addresses, and ::/0 may be specified for matching all IPv6 addresses. .RE .RE .IP \[bu] 2 \f[B]keepalive\f[R] (scalar) \[en] since \f[B]0.100\f[R] .RS 2 .RS .PP An interval in seconds, between 1 and 65535 inclusive, of how often to send an authenticated empty packet to the peer for the purpose of keeping a stateful firewall or NAT mapping valid persistently. Optional. .RE .RE .IP \[bu] 2 \f[B]keys\f[R] (mapping) \[en] since \f[B]0.100\f[R] .RS 2 .RS .PP Define keys to use for the WireGuard peers. .PP This field can be used as a mapping, where you can further specify the \f[V]public\f[R] and \f[V]shared\f[R] keys. .RE .IP \[bu] 2 \f[B]public\f[R] (scalar) \[en] since \f[B]0.100\f[R] .RS 2 .RS .PP A base64-encoded public key, required for WireGuard peers. .RE .RE .IP \[bu] 2 \f[B]shared\f[R] (scalar) \[en] since \f[B]0.100\f[R] .RS 2 .RS .PP A base64-encoded preshared key. Optional for WireGuard peers. When the \f[V]systemd-networkd\f[R] backend (v242+) is used, this can also be an absolute path to a file containing the preshared key. .RE .RE .RE .RE .PP VXLAN specific keys: .IP \[bu] 2 \f[B]id\f[R] (scalar) \[en] since \f[B]0.105\f[R] .RS 2 .RS .PP The VXLAN Network Identifier (VNI or VXLAN Segment ID). Takes a number in the range \f[V]1..16777215\f[R]. .RE .RE .IP \[bu] 2 \f[B]link\f[R] (scalar) \[en] since \f[B]0.105\f[R] .RS 2 .RS .PP netplan ID of the parent device definition to which this VXLAN gets connected. .RE .RE .IP \[bu] 2 \f[B]type-of-service\f[R] (scalar) \[en] since \f[B]0.105\f[R] .RS 2 .RS .PP The Type Of Service byte value for a vxlan interface. .RE .RE .IP \[bu] 2 \f[B]mac-learning\f[R] (scalar) \[en] since \f[B]0.105\f[R] .RS 2 .RS .PP Takes a boolean. When \f[V]true\f[R], enables dynamic MAC learning to discover remote MAC addresses. .RE .RE .IP \[bu] 2 \f[B]ageing\f[R], \f[B]aging\f[R] (scalar) \[en] since \f[B]0.105\f[R] .RS 2 .RS .PP The lifetime of Forwarding Database entry learned by the kernel, in seconds. .RE .RE .IP \[bu] 2 \f[B]limit\f[R] (scalar) \[en] since \f[B]0.105\f[R] .RS 2 .RS .PP Configures maximum number of FDB entries. .RE .RE .IP \[bu] 2 \f[B]arp-proxy\f[R] (scalar) \[en] since \f[B]0.105\f[R] .RS 2 .RS .PP Takes a boolean. When \f[V]true\f[R], bridge-connected VXLAN tunnel endpoint answers ARP requests from the local bridge on behalf of remote Distributed Overlay Virtual Ethernet (DOVE) clients. Defaults to \f[V]false\f[R]. .RE .RE .IP \[bu] 2 \f[B]notifications\f[R] (sequence of scalars) \[en] since \f[B]0.105\f[R] .RS 2 .RS .PP Takes the flags \f[V]l2-miss\f[R] and \f[V]l3-miss\f[R] to enable netlink LLADDR and/or netlink IP address miss notifications. .RE .RE .IP \[bu] 2 \f[B]short-circuit\f[R] (scalar) \[en] since \f[B]0.105\f[R] .RS 2 .RS .PP Takes a boolean. When \f[V]true\f[R], route short circuiting is turned on. .RE .RE .IP \[bu] 2 \f[B]checksums\f[R] (sequence of scalars) \[en] since \f[B]0.105\f[R] .RS 2 .RS .PP Takes the flags \f[V]udp\f[R], \f[V]zero-udp6-tx\f[R], \f[V]zero-udp6-rx\f[R], \f[V]remote-tx\f[R] and \f[V]remote-rx\f[R] to enable transmitting UDP checksums in VXLAN/IPv4, send/receive zero checksums in VXLAN/IPv6 and enable sending/receiving checksum offloading in VXLAN. .RE .RE .IP \[bu] 2 \f[B]extensions\f[R] (sequence of scalars) \[en] since \f[B]0.105\f[R] .RS 2 .RS .PP Takes the flags \f[V]group-policy\f[R] and \f[V]generic-protocol\f[R] to enable the \[dq]Group Policy\[dq] and/or \[dq]Generic Protocol\[dq] VXLAN extensions. .RE .RE .IP \[bu] 2 \f[B]port\f[R] (scalar) \[en] since \f[B]0.105\f[R] .RS 2 .RS .PP Configures the default destination UDP port. If the destination port is not specified then Linux kernel default will be used. Set to \f[V]4789\f[R] to get the IANA assigned value. .RE .RE .IP \[bu] 2 \f[B]port-range\f[R] (sequence of scalars) \[en] since \f[B]0.105\f[R] .RS 2 .RS .PP Configures the source port range for the VXLAN. The kernel assigns the source UDP port based on the flow to help the receiver to do load balancing. When this option is not set, the normal range of local UDP ports is used. Uses the form \f[V][LOWER, UPPER]\f[R]. .RE .RE .IP \[bu] 2 \f[B]flow-label\f[R] (scalar) \[en] since \f[B]0.105\f[R] .RS 2 .RS .PP Specifies the flow label to use in outgoing packets. The valid range is \f[V]0-1048575\f[R]. .RE .RE .IP \[bu] 2 \f[B]do-not-fragment\f[R] (scalar) \[en] since \f[B]0.105\f[R] .RS 2 .RS .PP Allows setting the IPv4 Do not Fragment (DF) bit in outgoing packets. Takes a boolean value. When unset, the kernel\[aq]s default will be used. .RE .RE .SS Properties for device type \f[V]vlans:\f[R] .IP \[bu] 2 \f[B]id\f[R] (scalar) .RS 2 .RS .PP VLAN ID, a number between \f[V]0\f[R] and \f[V]4094\f[R]. .RE .RE .IP \[bu] 2 \f[B]link\f[R] (scalar) .RS 2 .RS .PP netplan ID of the underlying device definition on which this VLAN gets created. .RE .RE .PP Example: .IP .nf \f[C] ethernets: eno1: {...} vlans: en-intra: id: 1 link: eno1 dhcp4: yes en-vpn: id: 2 link: eno1 addresses: [...] \f[R] .fi .SS Properties for device type \f[V]vrfs:\f[R] .IP \[bu] 2 \f[B]table\f[R] (scalar) \[en] since \f[B]0.105\f[R] .RS 2 .RS .PP The numeric routing table identifier. This setting is compulsory. .RE .RE .IP \[bu] 2 \f[B]interfaces\f[R] (sequence of scalars) \[en] since \f[B]0.105\f[R] .RS 2 .RS .PP All devices matching this ID list will be added to the vrf. This may be an empty list, in which case the vrf will be brought online with no member interfaces. .RE .RE .IP \[bu] 2 \f[B]routes\f[R] (sequence of mappings) \[en] since \f[B]0.105\f[R] .RS 2 .RS .PP Configure static routing for the device; see the \f[V]Routing\f[R] section. The \f[V]table\f[R] value is implicitly set to the VRF\[aq]s \f[V]table\f[R]. .RE .RE .IP \[bu] 2 \f[B]routing-policy\f[R] (sequence of mappings) \[en] since \f[B]0.105\f[R] .RS 2 .RS .PP Configure policy routing for the device; see the \f[V]Routing\f[R] section. The \f[V]table\f[R] value is implicitly set to the VRF\[aq]s \f[V]table\f[R]. .RE .RE .PP Example: .IP .nf \f[C] vrfs: vrf20: table: 20 interfaces: [ br0 ] routes: - to: default via: 10.10.10.3 routing-policy: - from: 10.10.10.42 [...] bridges: br0: interfaces: [] \f[R] .fi .SS Properties for device type \f[V]nm-devices:\f[R] .PP The \f[V]nm-devices\f[R] device type is for internal use only and should not be used in normal configuration files. It enables a fallback mode for unsupported settings, using the \f[V]passthrough\f[R] mapping. .SS Backend-specific configuration parameters .PP In addition to the other fields available to configure interfaces, some backends may require to record some of their own parameters in netplan, especially if the netplan definitions are generated automatically by the consumer of that backend. Currently, this is only used with \f[V]NetworkManager\f[R]. .IP \[bu] 2 \f[B]networkmanager\f[R] (mapping) \[en] since \f[B]0.99\f[R] .RS 2 .RS .PP Keeps the NetworkManager-specific configuration parameters used by the daemon to recognize connections. .RE .IP \[bu] 2 \f[B]name\f[R] (scalar) \[en] since \f[B]0.99\f[R] .RS 2 .RS .PP Set the display name for the connection. .RE .RE .IP \[bu] 2 \f[B]uuid\f[R] (scalar) \[en] since \f[B]0.99\f[R] .RS 2 .RS .PP Defines the UUID (unique identifier) for this connection, as generated by NetworkManager itself. .RE .RE .IP \[bu] 2 \f[B]stable-id\f[R] (scalar) \[en] since \f[B]0.99\f[R] .RS 2 .RS .PP Defines the stable ID (a different form of a connection name) used by NetworkManager in case the name of the connection might otherwise change, such as when sharing connections between users. .RE .RE .IP \[bu] 2 \f[B]device\f[R] (scalar) \[en] since \f[B]0.99\f[R] .RS 2 .RS .PP Defines the interface name for which this connection applies. .RE .RE .IP \[bu] 2 \f[B]passthrough\f[R] (mapping) \[en] since \f[B]0.102\f[R] .RS 2 .RS .PP Can be used as a fallback mechanism to missing keyfile settings. .RE .RE .RE .SH SEE ALSO .PP \f[B]netplan-generate\f[R](8), \f[B]netplan-apply\f[R](8), \f[B]netplan-try\f[R](8), \f[B]netplan-get\f[R](8), \f[B]netplan-set\f[R](8), \f[B]netplan-dbus\f[R](8), \f[B]systemd-networkd\f[R](8), \f[B]NetworkManager\f[R](8) .SH AUTHORS Mathieu Trudel-Lapierre (); Martin Pitt (); Lukas M\[:a]rdian ().