.\" Automatically generated by Pandoc 3.1.9 .\" .TH "Introduction to Netplan" "5" "" "" "" .SH NAME \f[CR]netplan\f[R] - YAML network configuration abstraction for various backends .SH SYNOPSIS \f[B]netplan\f[R] [\f[I]COMMAND\f[R]|help] .SH COMMANDS See \f[B]netplan help\f[R] for a list of available commands on this system. .SH DESCRIPTION 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[CR]/{lib,etc,run}/netplan/*.yaml\f[R] and writes configuration to \f[CR]/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 configuration do not get touched at all. .IP \[bu] 2 Usable in initramfs (few dependencies and fast) .IP \[bu] 2 No persistent generated configuration, only original YAML configuration .IP \[bu] 2 Parser supports multiple configuration files to allow applications like libvirt or \f[CR]lxd\f[R] to package expected network configuration (\f[CR]virbr0\f[R], \f[CR]lxdbr0\f[R]), or to change the global default policy to use NetworkManager for everything. .IP \[bu] 2 Retains the flexibility to change back ends/policy later or adjust to removing NetworkManager, as generated configuration is ephemeral. .SS General structure Netplan configuration files use the \c .UR http://yaml.org/spec/1.1/current.html YAML .UE \c \ format. All \f[CR]/{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[CR]/run/netplan\f[R] completely shadows a file with same name in \f[CR]/etc/netplan\f[R], and a file in either of those directories shadows a file with the same name in \f[CR]/lib/netplan\f[R]. .PP The top-level node in a Netplan configuration file is a \f[CR]network:\f[R] mapping that contains \f[CR]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[CR]ethernets:\f[R], \f[CR]modems:\f[R], \f[CR]wifis:\f[R], or \f[CR]bridges:\f[R]. These are the types that our renderer can understand and are supported by our back ends. .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 The key names below the per-device-type definition maps (like \f[CR]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, Wi-Fi) These can dynamically come and go between reboots and even during runtime (hot plugging). In the generic case, they can be selected by \f[CR]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[CR]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 configuration. .RE .PP Virtual devices .RS .PP (Examples: \f[CR]veth\f[R], \f[CR]bridge\f[R], \f[CR]bond\f[R], \f[CR]vrf\f[R]) These are fully under the control of the configuration file(s) and the network stack. I. e. these devices are being created instead of matched. Thus \f[CR]match:\f[R] and \f[CR]set-name:\f[R] are not applicable for these, and the ID field is the name of the created virtual device. .RE .SH YAML configuration .SS Top-level configuration structure The general structure of a Netplan YAML file is shown below. .IP .EX network: version: NUMBER renderer: STRING bonds: MAPPING bridges: MAPPING dummy-devices: MAPPING ethernets: MAPPING modems: MAPPING tunnels: MAPPING virtual-ethernets: MAPPING vlans: MAPPING vrfs: MAPPING wifis: MAPPING nm-devices: MAPPING .EE .IP \[bu] 2 \f[B]\f[CB]version\f[B]\f[R] (number) .RS 2 .RS .PP Defines what version of the configuration format is used. The only value supported is \f[CR]2\f[R]. Defaults to \f[CR]2\f[R] if not defined. .RE .RE .IP \[bu] 2 \f[B]\f[CB]renderer\f[B]\f[R] (scalar) .RS 2 .RS .PP Defines what network configuration tool will be used to set up your configuration. Valid values are networkd and \f[CR]NetworkManager\f[R]. Defaults to networkd if not defined. .RE .RE .IP \[bu] 2 \f[B]\f[CB]bonds\f[B]\f[R] (mapping) .RS 2 .RS .PP Creates and configures link aggregation (bonding) devices. .RE .RE .IP \[bu] 2 \f[B]\f[CB]bridges\f[B]\f[R] (mapping) .RS 2 .RS .PP Creates and configures bridge devices. .RE .RE .IP \[bu] 2 \f[B]\f[CB]dummy-devices\f[B]\f[R] (mapping) \[en] since 0.107 .RS 2 .RS .PP Creates and configures virtual devices. .RE .RE .IP \[bu] 2 \f[B]\f[CB]ethernets\f[B]\f[R] (mapping) .RS 2 .RS .PP Configures physical Ethernet interfaces. .RE .RE .IP \[bu] 2 \f[B]\f[CB]modems\f[B]\f[R] (mapping) .RS 2 .RS .PP Configures modems .RE .RE .IP \[bu] 2 \f[B]\f[CB]tunnels\f[B]\f[R] (mapping) .RS 2 .RS .PP Creates and configures different types of virtual tunnels. .RE .RE .IP \[bu] 2 \f[B]\f[CB]virtual-ethernets\f[B]\f[R] (mapping) \[en] since 0.107 .RS 2 .RS .PP Creates and configures Virtual Ethernet (\f[CR]veth\f[R]) devices. .RE .RE .IP \[bu] 2 \f[B]\f[CB]vlans\f[B]\f[R] (mapping) .RS 2 .RS .PP Creates and configures VLANs. .RE .RE .IP \[bu] 2 \f[B]\f[CB]vrfs\f[B]\f[R] (mapping) .RS 2 .RS .PP Configures Virtual Routing and Forwarding (VRF) devices. .RE .RE .IP \[bu] 2 \f[B]\f[CB]wifis\f[B]\f[R] (mapping) .RS 2 .RS .PP Configures physical Wi-Fi interfaces as \f[CR]client\f[R], \f[CR]adhoc\f[R] or \f[CR]access point\f[R]. .RE .RE .IP \[bu] 2 \f[B]\f[CB]nm-devices\f[B]\f[R] (mapping) .RS 2 .RS .PP \f[CR]nm-devices\f[R] are used in situations where Netplan doesn\[aq]t support the connection type. The raw configuration expected by NetworkManager can be defined and will be passed as is (\f[CR]passthrough\f[R]) to the \f[CR].nmconnection\f[R] file. Users will not normally use this type of device. .RE .RE .PP All the properties for all the device types will be described in the next sections. .SS Properties for physical device types These properties are used with physical devices such as Ethernet and Wi-Fi network interfaces. .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[CR]wakeonlan\f[R] or \f[CR]*-offload\f[R]. .IP \[bu] 2 \f[B]\f[CB]match\f[B]\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]\f[CB]name\f[B]\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[CR]match:\f[R] at all and just using the ID (see above). (\f[CR]NetworkManager\f[R]: as of v1.14.0) .RE .RE .IP \[bu] 2 \f[B]\f[CB]macaddress\f[B]\f[R] (scalar) .RS 2 .RS .PP 6-byte permanent MAC address of the device in the form \f[CR]XX:XX:XX:XX:XX:XX\f[R] or 20 bytes for InfiniBand devices (IPoIB). Globs are not allowed. This doesn\[aq]t match virtual MAC addresses for \f[CR]veth\f[R], \f[CR]bridge\f[R], \f[CR]bond\f[R], \f[CR]vlan\f[R], ... .RE .RE .IP \[bu] 2 \f[B]\f[CB]driver\f[B]\f[R] (scalar or sequence of scalars) \[en] sequence since 0.104 .RS 2 .RS .PP Kernel driver name, corresponding to the \f[CR]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 .EX network: ethernets: myinterface: match: name: enp2* .EE .RE .IP \[bu] 2 Fixed MAC address: .RS 2 .IP .EX network: ethernets: interface0: match: macaddress: 11:22:33:AA:BB:FF .EE .RE .IP \[bu] 2 First card of driver \f[CR]ixgbe\f[R]: .RS 2 .IP .EX network: ethernets: nic0: match: driver: ixgbe name: en*s0 .EE .RE .IP \[bu] 2 First card with a driver matching \f[CR]bcmgenet\f[R] or \f[CR]smsc*\f[R]: .RS 2 .IP .EX network: ethernets: nic0: match: driver: [\[dq]bcmgenet\[dq], \[dq]smsc*\[dq]] name: en* .EE .RE .RE .IP \[bu] 2 \f[B]\f[CB]set-name\f[B]\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 Wi-Fi 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 or desirable name than the default from udev ifnames. Any additional device that satisfies the match rules will then fail to get renamed and keep the original kernel name (and \f[CR]dmesg\f[R] will show an error). .RE .RE .IP \[bu] 2 \f[B]\f[CB]wakeonlan\f[B]\f[R] (boolean) .RS 2 .RS .PP Enable wake on LAN. Off by default. .RE .RE .IP \[bu] 2 \f[B]\f[CB]emit-lldp\f[B]\f[R] (boolean) \[en] since 0.99 .RS 2 .RS .PP (networkd back end only) Whether to emit LLDP packets. Off by default. .RE .RE .IP \[bu] 2 \f[B]\f[CB]receive-checksum-offload\f[B]\f[R] (boolean) \[en] since 0.104 .RS 2 .RS .PP (networkd back end only) If set to \f[CR]true\f[R] (\f[CR]false\f[R]), 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]\f[CB]transmit-checksum-offload\f[B]\f[R] (boolean) \[en] since 0.104 .RS 2 .RS .PP (networkd back end only) If set to \f[CR]true\f[R] (\f[CR]false\f[R]), 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]\f[CB]tcp-segmentation-offload\f[B]\f[R] (boolean) \[en] since 0.104 .RS 2 .RS .PP (networkd back end only) If set to \f[CR]true\f[R] (\f[CR]false\f[R]), 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]\f[CB]tcp6-segmentation-offload\f[B]\f[R] (boolean) \[en] since 0.104 .RS 2 .RS .PP (networkd back end only) If set to \f[CR]true\f[R] (\f[CR]false\f[R]), the TCP6 Segmentation Offload (\f[CR]tx-tcp6-segmentation\f[R]) is enabled (disabled). When unset, the kernel\[aq]s default will be used. .RE .RE .IP \[bu] 2 \f[B]\f[CB]generic-segmentation-offload\f[B]\f[R] (boolean) \[en] since 0.104 .RS 2 .RS .PP (networkd back end only) If set to \f[CR]true\f[R] (\f[CR]false\f[R]), 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]\f[CB]generic-receive-offload\f[B]\f[R] (boolean) \[en] since 0.104 .RS 2 .RS .PP (networkd back end only) If set to \f[CR]true\f[R] (\f[CR]false\f[R]), 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]\f[CB]large-receive-offload\f[B]\f[R] (boolean) \[en] since 0.104 .RS 2 .RS .PP (networkd back end only) If set to \f[CR]true\f[R] (\f[CR]false\f[R]), 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]\f[CB]openvswitch\f[B]\f[R] (mapping) \[en] since 0.100 .RS 2 .RS .PP This provides additional configuration for the \f[CR]openvswitch\f[R] network device. If Open vSwitch is not available on the system, Netplan treats the presence of \f[CR]openvswitch\f[R] configuration as an error. .PP Any supported network device that is declared with the \f[CR]openvswitch\f[R] mapping (or any bond/bridge that includes an interface with an \f[CR]openvswitch\f[R] configuration) will be created in \f[CR]openvswitch\f[R] instead of the defined renderer. In the case of a \f[CR]vlan\f[R] definition declared the same way, Netplan will create a fake VLAN bridge in \f[CR]openvswitch\f[R] with the requested \f[CR]vlan\f[R] properties. .RE .IP \[bu] 2 \f[B]\f[CB]external-ids\f[B]\f[R] (mapping) \[en] since 0.100 .RS 2 .RS .PP Passed-through directly to Open vSwitch .RE .RE .IP \[bu] 2 \f[B]\f[CB]other-config\f[B]\f[R] (mapping) \[en] since 0.100 .RS 2 .RS .PP Passed-through directly to Open vSwitch .RE .RE .IP \[bu] 2 \f[B]\f[CB]lacp\f[B]\f[R] (scalar) \[en] since 0.100 .RS 2 .RS .PP Valid for bond interfaces. Accepts \f[CR]active\f[R], \f[CR]passive\f[R] or \f[CR]off\f[R] (the default). .RE .RE .IP \[bu] 2 \f[B]\f[CB]fail-mode\f[B]\f[R] (scalar) \[en] since 0.100 .RS 2 .RS .PP Valid for bridge interfaces. Accepts \f[CR]secure\f[R] or \f[CR]standalone\f[R] (the default). .RE .RE .IP \[bu] 2 \f[B]\f[CB]mcast-snooping\f[B]\f[R] (boolean) \[en] since 0.100 .RS 2 .RS .PP Valid for bridge interfaces. False by default. .RE .RE .IP \[bu] 2 \f[B]\f[CB]protocols\f[B]\f[R] (sequence of scalars) \[en] since 0.100 .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[CR]OpenFlow10\f[R], \f[CR]OpenFlow11\f[R], \f[CR]OpenFlow12\f[R], \f[CR]OpenFlow13\f[R], \f[CR]OpenFlow14\f[R], and \f[CR]OpenFlow15\f[R]. .RE .RE .IP \[bu] 2 \f[B]\f[CB]rstp\f[B]\f[R] (boolean) \[en] since 0.100 .RS 2 .RS .PP Valid for bridge interfaces. False by default. .RE .RE .IP \[bu] 2 \f[B]\f[CB]controller\f[B]\f[R] (mapping) \[en] since 0.100 .RS 2 .RS .PP Valid for bridge interfaces. Specify an external OpenFlow controller. .RE .IP \[bu] 2 \f[B]\f[CB]addresses\f[B]\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 \f[B]\f[CB]ovs-vsctl\f[B]\f[R](8). Example: addresses: \f[CR][tcp:127.0.0.1:6653, \[dq]ssl:[fe80::1234%eth0]:6653\[dq]]\f[R]. .RE .RE .IP \[bu] 2 \f[B]\f[CB]connection-mode\f[B]\f[R] (scalar) .RS 2 .RS .PP Set the connection mode for the controller. Supported options are \f[CR]in-band\f[R] and \f[CR]out-of-band\f[R]. The default is \f[CR]in-band\f[R]. .RE .RE .RE .IP \[bu] 2 \f[B]\f[CB]ports\f[B]\f[R] (sequence of sequence of scalars) \[en] since 0.100 .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 .EX openvswitch: ports: - [patch0-1, patch1-0] .EE .RE .IP \[bu] 2 \f[B]\f[CB]ssl\f[B]\f[R] (mapping) \[en] since 0.100 .RS 2 .RS .PP Valid for global \f[CR]openvswitch\f[R] settings. Options for configuring SSL server endpoint for the switch. .RE .IP \[bu] 2 \f[B]\f[CB]ca-cert\f[B]\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]\f[CB]certificate\f[B]\f[R] (scalar) .RS 2 .RS .PP Path to a file containing the server certificate. .RE .RE .IP \[bu] 2 \f[B]\f[CB]private-key\f[B]\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]\f[CB]renderer\f[B]\f[R] (scalar) .RS 2 .RS .PP Use the given networking back end for this definition. Currently supported are \f[CR]networkd\f[R] and \f[CR]NetworkManager\f[R]. This property can be specified globally in \f[CR]network:\f[R], for a device type (in e.g. \f[CR]ethernets:\f[R]) or for a particular device definition. Default is \f[CR]networkd\f[R]. .PP (Since 0.99) The \f[CR]renderer\f[R] property has one additional acceptable value for VLAN objects (i.e. defined in \f[CR]vlans:\f[R]): \f[CR]sriov\f[R]. If a VLAN is defined with the \f[CR]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]\f[CB]dhcp4\f[B]\f[R] (boolean) .RS 2 .RS .PP Enable DHCP for IPv4. Off by default. .RE .RE .IP \[bu] 2 \f[B]\f[CB]dhcp6\f[B]\f[R] (boolean) .RS 2 .RS .PP Enable DHCP for IPv6. Off by default. This covers both stateless DHCP - where the DHCP server supplies information like DNS name servers 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 \f[CR]accept-ra\f[R] alone is not sufficient.) Auto-configuration will still honour the contents of the router advertisement and only use DHCP if requested in the RA. .PP Note that \f[B]\f[CB]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]\f[CB]ipv6-mtu\f[B]\f[R] (scalar) \[en] since 0.98 > Set the IPv6 MTU (only supported with networkd back end). Note > that needing to set this is an unusual requirement. > > \f[B]Requires feature: \f[CB]ipv6-mtu\f[B]\f[R] .IP \[bu] 2 \f[B]\f[CB]ipv6-privacy\f[B]\f[R] (boolean) .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]\f[CB]link-local\f[B]\f[R] (sequence of scalars) .RS 2 .RS .PP Configure the link-local addresses to bring up. Valid options are \f[CR]ipv4\f[R] and \f[CR]ipv6\f[R], 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 back end. On networkd, this directly changes the behaviour and may add an extra address on an interface. When using the NetworkManager back end, 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[CR]link-local: [ ipv4 ]\f[R] .IP \[bu] 2 Enable all link-local addresses: \f[CR]link-local: [ ipv4, ipv6 ]\f[R] .IP \[bu] 2 Disable all link-local addresses: \f[CR]link-local: [ ]\f[R] .RE .IP \[bu] 2 \f[B]\f[CB]ignore-carrier\f[B]\f[R] (boolean) \[en] since 0.104 .RS 2 .RS .PP (networkd back end only) Allow the specified interface to be configured even if it has no carrier. .RE .RE .IP \[bu] 2 \f[B]\f[CB]critical\f[B]\f[R] (boolean) .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 recognised by NetworkManager) .RE .RE .IP \[bu] 2 \f[B]\f[CB]dhcp-identifier\f[B]\f[R] (scalar) .RS 2 .RS .PP (networkd back end only) Sets the source of DHCP (v4) client identifier. If \f[CR]mac\f[R] is specified, the MAC address of the link is used. If this option is omitted, or if \f[CR]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]\f[CB]dhcp4-overrides\f[B]\f[R] (mapping) .RS 2 .RS .PP (networkd back end only) Overrides default DHCP behaviour; see the \f[CR]DHCP Overrides\f[R] section below. .RE .RE .IP \[bu] 2 \f[B]\f[CB]dhcp6-overrides\f[B]\f[R] (mapping) .RS 2 .RS .PP (networkd back end only) Overrides default DHCP behaviour; see the \f[CR]DHCP Overrides\f[R] section below. .RE .RE .IP \[bu] 2 \f[B]\f[CB]accept-ra\f[B]\f[R] (boolean) .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]\f[CB]ra-overrides\f[B]\f[R] (mapping) \[en] since 1.1 .RS 2 .RS .PP (networkd back end only) Overrides default IPv6 Router Advertisement (RA) behaviour; see the \f[CR]IPv6 Router Advertisement Overrides\f[R] section below. .RE .RE .IP \[bu] 2 \f[B]\f[CB]addresses\f[B]\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[CR]addr/prefixlen\f[R]. \f[CR]addr\f[R] is an IPv4 or IPv6 address as recognised by \f[B]\f[CB]inet_pton\f[B]\f[R](3) and \f[CR]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]\f[CB]lifetime\f[B]\f[R] (scalar) \[en] since 0.100 .RS 2 .RS .PP Default: \f[CR]forever\f[R]. This can be \f[CR]forever\f[R] or \f[CR]0\f[R] and corresponds to the \f[CR]PreferredLifetime\f[R] option in the \f[CR]Address\f[R] section of \f[CR]systemd-networkd\f[R]. Currently supported on the networkd back end only. .RE .RE .IP \[bu] 2 \f[B]\f[CB]label\f[B]\f[R] (scalar) \[en] since 0.100 .RS 2 .RS .PP An IP address label, equivalent to the \f[CR]ip address label\f[R] command. Currently supported on the networkd back end only. .RE .RE .PP Examples: .IP \[bu] 2 Simple: \f[CR]addresses: [192.168.14.2/24, \[dq]2001:1::1/64\[dq]]\f[R] .IP \[bu] 2 Advanced: .RS 2 .IP .EX network: ethernets: eth0: addresses: - \[dq]10.0.0.15/24\[dq]: lifetime: 0 label: \[dq]maas\[dq] - \[dq]2001:1::1/64\[dq] .EE .RE .RE .IP \[bu] 2 \f[B]\f[CB]ipv6-address-generation\f[B]\f[R] (scalar) \[en] since 0.99 .RS 2 .RS .PP Configure method for creating the address for use with RFC4862 IPv6 Stateless Address Auto-configuration. Possible values are \f[CR]eui64\f[R] or \f[CR]stable-privacy\f[R]. .RE .RE .IP \[bu] 2 \f[B]\f[CB]ipv6-address-token\f[B]\f[R] (scalar) \[en] since 0.100 .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[CR]ipv6-address-generation\f[R]. .RE .RE .IP \[bu] 2 \f[B]\f[CB]gateway4\f[B]\f[R], \f[B]\f[CB]gateway6\f[B]\f[R] (scalar) .RS 2 .RS .PP Deprecated, see \f[CR]Default routes\f[R]. Set default gateway for IPv4/6, for manual address configuration. This requires setting \f[CR]addresses\f[R] too. Gateway IP addresses must be in a form recognised by \f[B]\f[CB]inet_pton\f[B]\f[R](3). There should only be a single gateway per IP address family set in your global configuration, to make it unambiguous. If you need multiple default routes, please define them via \f[CR]routing-policy\f[R]. .RE .PP Examples .IP \[bu] 2 IPv4: \f[CR]gateway4: 172.16.0.1\f[R] .IP \[bu] 2 IPv6: \f[CR]gateway6: \[dq]2001:4::1\[dq]\f[R] .RE .IP \[bu] 2 \f[B]\f[CB]nameservers\f[B]\f[R] (mapping) .RS 2 .RS .PP Set DNS servers and search domains, for manual address configuration. There are two supported fields: \f[CR]addresses:\f[R] is a list of IPv4 or IPv6 addresses similar to \f[CR]gateway*\f[R], and \f[CR]search:\f[R] is a list of search domains. .RE .PP Example: .IP .EX network: ethernets: id0: [...] nameservers: search: [lab, home] addresses: [8.8.8.8, \[dq]FEDC::1\[dq]] .EE .RE .IP \[bu] 2 \f[B]\f[CB]macaddress\f[B]\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]. The following special options are also accepted: \f[CR]permanent\f[R] and \f[CR]random\f[R]. In addition to these options, the NetworkManager renderer also accepts \f[CR]stable\f[R] and \f[CR]preserve\f[R]. .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 .EX network: ethernets: id0: match: macaddress: 52:54:00:6b:3c:58 [...] macaddress: 52:54:00:6b:3c:59 .EE .RE .IP \[bu] 2 \f[B]\f[CB]mtu\f[B]\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]\f[CB]optional\f[B]\f[R] (boolean) .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 .EX network: 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 .EE .RE .IP \[bu] 2 \f[B]\f[CB]optional-addresses\f[B]\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 behaviour of back ends 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 .EX network: ethernets: eth7: dhcp4: true dhcp6: true optional-addresses: [ ipv4-ll, dhcp6 ] .EE .RE .IP \[bu] 2 \f[B]\f[CB]activation-mode\f[B]\f[R] (scalar) \[en] since 0.103 .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[CR]activation-mode\f[R] setting users can override that behaviour by either specifying \f[CR]manual\f[R], to hand over control over the interface state to the administrator or (for networkd back end \f[I]only\f[R]) \f[CR]off\f[R] to force the link in a down state at all times. Any interface with \f[CR]activation-mode\f[R] defined is implicitly considered \f[CR]optional\f[R]. Supported officially as of networkd v248+. .RE .PP Example: .IP .EX network: ethernets: eth1: # this interface will not be put into an UP state automatically dhcp4: true activation-mode: manual .EE .RE .IP \[bu] 2 \f[B]\f[CB]routes\f[B]\f[R] (sequence of mappings) .RS 2 .RS .PP Configure static routing for the device; see the \f[CR]Routing\f[R] section below. .RE .RE .IP \[bu] 2 \f[B]\f[CB]routing-policy\f[B]\f[R] (sequence of mappings) .RS 2 .RS .PP Configure policy routing for the device; see the \f[CR]Routing\f[R] section below. .RE .RE .IP \[bu] 2 \f[B]\f[CB]neigh-suppress\f[B]\f[R] (scalar) \[en] since 0.105 .RS 2 .RS .PP Takes a boolean. Configures whether ARP and ND neighbour suppression is enabled for this bridge port. When unset, the kernel\[aq]s default will be used. .RE .RE .IP \[bu] 2 \f[B]\f[CB]hairpin\f[B]\f[R] (scalar) \[en] since \f[B]1.0\f[R] .RS 2 .RS .PP Takes a boolean. Configures whether traffic may be sent back out of the bridge port on which it was received. When this flag is false, then the bridge does not forward traffic back out of the receiving port. When unset, the back end \f[CR]default\f[R] is used. .RE .RE .IP \[bu] 2 \f[B]\f[CB]port-mac-learning\f[B]\f[R] (scalar) \[en] since \f[B]1.0\f[R] .RS 2 .RS .PP Takes a boolean. Configures whether MAC address learning is enabled for this bridge port. When unset, the kernel default is used. Currently supported on the \f[CR]networkd\f[R] back end only. .RE .RE .SS DHCP Overrides Several DHCP behaviour overrides are available. Most currently only have any effect when using the \f[CR]networkd\f[R] back end, with the exception of \f[CR]use-routes\f[R] and \f[CR]route-metric\f[R]. .PP Overrides only have an effect if the corresponding \f[CR]dhcp4\f[R] or \f[CR]dhcp6\f[R] is set to \f[CR]true\f[R]. .PP If both \f[CR]dhcp4\f[R] and \f[CR]dhcp6\f[R] are \f[CR]true\f[R], the networkd back end requires that \f[CR]dhcp4-overrides\f[R] and \f[CR]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 back end, different values may be specified for \f[CR]dhcp4-overrides\f[R] and \f[CR]dhcp6-overrides\f[R], and will be applied to the DHCP client processes as specified in the Netplan YAML. .IP \[bu] 2 \f[B]\f[CB]dhcp4-overrides\f[B]\f[R], \f[B]\f[CB]dhcp6-overrides\f[B]\f[R] (mapping) .RS 2 .RS .PP The \f[CR]dhcp4-overrides\f[R] and \f[CR]dhcp6-override\f[R] mappings override the default DHCP behaviour. .RE .IP \[bu] 2 \f[B]\f[CB]use-dns\f[B]\f[R] (boolean) .RS 2 .RS .PP Default: \f[CR]true\f[R]. When \f[CR]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 networkd back end. .RE .RE .IP \[bu] 2 \f[B]\f[CB]use-ntp\f[B]\f[R] (boolean) .RS 2 .RS .PP Default: \f[CR]true\f[R]. When \f[CR]true\f[R], the NTP servers received from the DHCP server will be used by \f[CR]systemd-timesyncd\f[R] and take precedence over any statically configured ones. Currently only has an effect on the networkd back end. .RE .RE .IP \[bu] 2 \f[B]\f[CB]send-hostname\f[B]\f[R] (boolean) .RS 2 .RS .PP Default: \f[CR]true\f[R]. When \f[CR]true\f[R], the machine hostname will be sent to the DHCP server. Currently only has an effect on the networkd back end. .RE .RE .IP \[bu] 2 \f[B]\f[CB]use-hostname\f[B]\f[R] (boolean) .RS 2 .RS .PP Default: \f[CR]true\f[R]. When \f[CR]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 networkd back end. .RE .RE .IP \[bu] 2 \f[B]\f[CB]use-mtu\f[B]\f[R] (boolean) .RS 2 .RS .PP Default: \f[CR]true\f[R]. When \f[CR]true\f[R], the MTU received from the DHCP server will be set as the MTU of the network interface. When \f[CR]false\f[R], the MTU advertised by the DHCP server will be ignored. Currently only has an effect on the networkd back end. .RE .RE .IP \[bu] 2 \f[B]\f[CB]hostname\f[B]\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 networkd back end. .RE .RE .IP \[bu] 2 \f[B]\f[CB]use-routes\f[B]\f[R] (boolean) .RS 2 .RS .PP Default: \f[CR]true\f[R]. When \f[CR]true\f[R], the routes received from the DHCP server will be installed in the routing table normally. When set to \f[CR]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 networkd and \f[CR]NetworkManager\f[R] back ends. .RE .RE .IP \[bu] 2 \f[B]\f[CB]route-metric\f[B]\f[R] (scalar) .RS 2 .RS .PP Use this value for default metric for automatically-added routes. Use this to prioritise routes for devices by setting a lower metric on a preferred interface. Available for both the networkd and NetworkManager back ends. .RE .RE .IP \[bu] 2 \f[B]\f[CB]use-domains\f[B]\f[R] (scalar) \[en] since 0.98 .RS 2 .RS .PP Takes a boolean, or the special value \f[CR]route\f[R]. 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 \f[CR]Domains=\f[R] setting. If set to \f[CR]route\f[R], 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 \f[CR]Domains=\f[R] setting when the argument is prefixed with \f[CR]\[ti]\f[R] (tilde). .PP \f[B]Requires feature: \f[CB]dhcp-use-domains\f[B]\f[R] .RE .RE .RE .SS IPv6 Router Advertisement Overrides Overrides for IPv6 Router Advertisement (RA) behaviour (only supported with networkd back end). .IP \[bu] 2 \f[B]\f[CB]ra-overrides\f[B]\f[R] (mapping) \[en] since 1.1 .RS 2 .RS .PP The \f[CR]ra-overrides\f[R] mappings override the default IPv6 Router Advertisement behaviour. .RE .IP \[bu] 2 \f[B]\f[CB]use-dns\f[B]\f[R] (boolean) .RS 2 .RS .PP Default: \f[CR]true\f[R]. When \f[CR]true\f[R], the DNS servers received from the Router Advertisement will be used. Currently only has an effect on the networkd back end. .RE .RE .IP \[bu] 2 \f[B]\f[CB]use-domains\f[B]\f[R] (scalar) .RS 2 .RS .PP Takes a boolean, or the special value \f[CR]route\f[R]. When true, the domain name received from the Router Advertisement will be used as DNS search domain over this link. If set to \f[CR]route\f[R], the domain name received from the IPv6 RA will be used for routing DNS queries only, but not for searching. Defaults to \f[CR]false\f[R]. .RE .RE .IP \[bu] 2 \f[B]\f[CB]table\f[B]\f[R] (scalar) .RS 2 .RS .PP The routing table number for routes received in the IPv6 RA. Allowed values are positive integers starting from 1. Some values are already in use to refer to specific routing tables: see \f[CR]{/etc,/usr/share}/iproute2/rt_tables\f[R]. .RE .RE .RE .SS Routing Complex routing is possible with Netplan. Standard static routes as well as policy routing using routing tables are supported via the networkd back end. .PP These options are available for all types of interfaces. .SS Default routes 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 .EX network: ethernets: eth0: [...] routes: - to: default # could be 0.0.0.0/0 optionally via: 10.0.0.1 metric: 100 on-link: true advertised-mss: 1400 - 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 .EE .IP \[bu] 2 \f[B]\f[CB]routes\f[B]\f[R] (mapping) .RS 2 .RS .PP The \f[CR]routes\f[R] block defines standard static routes for an interface. At least \f[CR]to\f[R] must be specified. If type is \f[CR]local\f[R] or \f[CR]nat\f[R] a default scope of \f[CR]host\f[R] is assumed. If type is \f[CR]unicast\f[R] and no gateway (\f[CR]via\f[R]) is given or type is \f[CR]broadcast\f[R], \f[CR]multicast\f[R] or \f[CR]anycast\f[R] a default scope of \f[CR]link\f[R] is assumed. Otherwise, a \f[CR]global\f[R] scope is the default setting. .PP For \f[CR]from\f[R], \f[CR]to\f[R] and \f[CR]via\f[R], both IPv4 and IPv6 addresses are recognised, and must be in the form \f[CR]addr/prefixlen\f[R] or \f[CR]addr\f[R]. .RE .IP \[bu] 2 \f[B]\f[CB]from\f[B]\f[R] (scalar) .RS 2 .RS .PP Set a source IP address for traffic going through the route. (NetworkManager: as of v1.8.0) .RE .RE .IP \[bu] 2 \f[B]\f[CB]to\f[B]\f[R] (scalar) .RS 2 .RS .PP Destination address for the route. .RE .RE .IP \[bu] 2 \f[B]\f[CB]via\f[B]\f[R] (scalar) .RS 2 .RS .PP Address to the gateway to use for this route. .RE .RE .IP \[bu] 2 \f[B]\f[CB]on-link\f[B]\f[R] (boolean) .RS 2 .RS .PP When set to \f[CR]true\f[R], specifies that the route is directly connected to the interface. (\f[CR]NetworkManager\f[R]: as of v1.12.0 for IPv4 and v1.18.0 for IPv6) .RE .RE .IP \[bu] 2 \f[B]\f[CB]metric\f[B]\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]\f[CB]type\f[B]\f[R] (scalar) .RS 2 .RS .PP The type of route. Valid options are \f[CR]unicast\f[R] (default), \f[CR]anycast\f[R], \f[CR]blackhole\f[R], \f[CR]broadcast\f[R], \f[CR]local\f[R], \f[CR]multicast\f[R], \f[CR]nat\f[R], \f[CR]prohibit\f[R], \f[CR]throw\f[R], \f[CR]unreachable\f[R] or \f[CR]xresolve\f[R]. .RE .RE .IP \[bu] 2 \f[B]\f[CB]scope\f[B]\f[R] (scalar) .RS 2 .RS .PP The route scope, how wide-ranging it is to the network. Possible values are \f[CR]global\f[R], \f[CR]link\f[R], or \f[CR]host\f[R]. Applies to IPv4 only. .RE .RE .IP \[bu] 2 \f[B]\f[CB]table\f[B]\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[CR]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[CR]/etc/iproute2/rt_tables\f[R]. (\f[CR]NetworkManager\f[R]: as of v1.10.0) .RE .RE .IP \[bu] 2 \f[B]\f[CB]mtu\f[B]\f[R] (scalar) \[en] since 0.101 .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]\f[CB]congestion-window\f[B]\f[R] (scalar) \[en] since 0.102 .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]\f[CB]advertised-receive-window\f[B]\f[R] (scalar) \[en] since 0.102 .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 .IP \[bu] 2 \f[B]\f[CB]advertised-mss\f[B]\f[R] (scalar) \[en] since 1.1 .RS 2 .RS .PP The Maximum MSS (\[aq]Maximal Segment Size\[aq]) to advertise to these destinations when establishing TCP connections. If it is not given, Linux uses a default value calculated from the first hop device MTU. Must be a positive integer. .RE .RE .RE .IP \[bu] 2 \f[B]\f[CB]routing-policy\f[B]\f[R] (mapping) .RS 2 .RS .PP The \f[CR]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[CR]from\f[R], \f[CR]to\f[R], both IPv4 and IPv6 addresses are recognised, and must be in the form \f[CR]addr/prefixlen\f[R] or \f[CR]addr\f[R]. .RE .IP \[bu] 2 \f[B]\f[CB]from\f[B]\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]\f[CB]to\f[B]\f[R] (scalar) .RS 2 .RS .PP Match on traffic going to the specified destination. .RE .RE .IP \[bu] 2 \f[B]\f[CB]table\f[B]\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[CR]table\f[R] parameter. Allowed values are positive integers starting from \f[CR]1\f[R]. Some values are already in use to refer to specific routing tables: see \f[CR]/etc/iproute2/rt_tables\f[R]. .RE .RE .IP \[bu] 2 \f[B]\f[CB]priority\f[B]\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]\f[CB]mark\f[B]\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 \f[CR]1\f[R]. .RE .RE .IP \[bu] 2 \f[B]\f[CB]type-of-service\f[B]\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 Netplan supports advanced authentication settings for Ethernet and Wi-Fi interfaces, as well as individual Wi-Fi networks, by means of the \f[CR]auth\f[R] block. .IP \[bu] 2 \f[B]\f[CB]auth\f[B]\f[R] (mapping) .RS 2 .RS .PP Specifies authentication settings for a device of type \f[CR]ethernets:\f[R], or an \f[CR]access-points:\f[R] entry on a \f[CR]wifis:\f[R] device. .PP The \f[CR]auth\f[R] block supports the following properties: .RE .IP \[bu] 2 \f[B]\f[CB]key-management\f[B]\f[R] (scalar) .RS 2 .RS .PP The supported key management modes are \f[CR]none\f[R] (no key management); \f[CR]psk\f[R] (WPA with pre-shared key, common for home Wi-Fi); \f[CR]eap\f[R] (WPA with EAP, common for enterprise Wi-Fi); \f[CR]eap-sha256\f[R] (used with WPA3-Enterprise); \f[CR]eap-suite-b-192\f[R] (used with WPA3-Enterprise); \f[CR]sae\f[R] (used by WPA3); and \f[CR]802.1x\f[R] (used primarily for wired Ethernet connections). .RE .RE .IP \[bu] 2 \f[B]\f[CB]password\f[B]\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[CR]key-management\f[R] is \f[CR]eap\f[R] or \f[CR]802.1x\f[R]: .RE .IP \[bu] 2 \f[B]\f[CB]method\f[B]\f[R] (scalar) .RS 2 .RS .PP The EAP method to use. The supported EAP methods are \f[CR]tls\f[R] (TLS), \f[CR]peap\f[R] (Protected EAP), \f[CR]leap\f[R] (Lightweight EAP), \f[CR]pwd\f[R] (EAP Password) and \f[CR]ttls\f[R] (Tunnelled TLS). .RE .RE .IP \[bu] 2 \f[B]\f[CB]identity\f[B]\f[R] (scalar) .RS 2 .RS .PP The identity to use for EAP. .RE .RE .IP \[bu] 2 \f[B]\f[CB]anonymous-identity\f[B]\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]\f[CB]ca-certificate\f[B]\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]\f[CB]client-certificate\f[B]\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]\f[CB]client-key\f[B]\f[R] (scalar) .RS 2 .RS .PP Path to a file containing the private key corresponding to \f[CR]client-certificate\f[R]. .RE .RE .IP \[bu] 2 \f[B]\f[CB]client-key-password\f[B]\f[R] (scalar) .RS 2 .RS .PP Password to use to decrypt the private key specified in \f[CR]client-key\f[R] if it is encrypted. .RE .RE .IP \[bu] 2 \f[B]\f[CB]phase2-auth\f[B]\f[R] (scalar) \[en] since 0.99 .RS 2 .RS .PP Phase 2 authentication mechanism. .RE .RE .RE .SS Properties for device type \f[CR]ethernets\f[R] \f[B]\f[CB]Status\f[B]\f[R]: Optional. .PP \f[B]\f[CB]Purpose\f[B]\f[R]: Use the \f[CR]ethernets\f[R] key to configure Ethernet interfaces. .PP \f[B]\f[CB]Structure\f[B]\f[R]: The key consists of a mapping of Ethernet interface IDs. Each \f[CR]ethernet\f[R] has a number of configuration options. You don\[aq]t need to define each interface by their name inside the \f[CR]ethernets\f[R] mapping. You can use any ID that describes the interface and match the actual network card using the \f[CR]match\f[R] key. The general configuration structure for Ethernet is shown below. .IP .EX network: ethernets: device-id: ... .EE .PP \f[CR]device-id\f[R] is the interface identifier. If you use the interface name as the ID, Netplan will match that interface. .PP Consider the example below. In this case, an interface called \f[CR]eth0\f[R] will be configured with DHCP. .IP .EX network: ethernets: eth0: dhcp4: true .EE .PP The \f[CR]device-id\f[R] can be any descriptive name your find meaningful. Although, if it doesn\[aq]t match a real interface name, you must use the property \f[CR]match\f[R] to identify the device you want to configure. .PP The example below defines an Ethernet connection called \f[CR]isp-interface\f[R] (supposedly an external interface connected to the Internet Service Provider) and uses \f[CR]match\f[R] to apply the configuration to the physical device with MAC address \f[CR]aa:bb:cc:00:11:22\f[R]. .IP .EX network: ethernets: isp-interface: match: macaddress: aa:bb:cc:00:11:22 dhcp4: true .EE .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]\f[CB]link\f[B]\f[R] (scalar) \[en] since 0.99 .RS 2 .RS .PP (SR-IOV devices only) The \f[CR]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 .EX network: ethernets: enp1: {...} enp1s16f1: link: enp1 .EE .RE .IP \[bu] 2 \f[B]\f[CB]virtual-function-count\f[B]\f[R] (scalar) \[en] since 0.99 .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[CR]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: \f[CB]sriov\f[B]\f[R] .RE .RE .IP \[bu] 2 \f[B]\f[CB]embedded-switch-mode\f[B]\f[R] (scalar) \[en] since 0.104 .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[CR]switchdev\f[R] or \f[CR]legacy\f[R], if unspecified the vendor\[aq]s default configuration is used. .PP \f[B]Requires feature: \f[CB]eswitch-mode\f[B]\f[R] .RE .RE .IP \[bu] 2 \f[B]\f[CB]delay-virtual-functions-rebind\f[B]\f[R] (boolean) \[en] since 0.104 .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[CR]false\f[R]. .PP \f[B]Requires feature: \f[CB]eswitch-mode\f[B]\f[R] .RE .RE .IP \[bu] 2 \f[B]\f[CB]infiniband-mode\f[B]\f[R] (scalar) \[en] since 0.105 .RS 2 .RS .PP (InfiniBand devices only) Change the operational mode of a IPoIB device. Possible values are \f[CR]datagram\f[R] or \f[CR]connected\f[R]. If unspecified the kernel\[aq]s default configuration is used. .PP \f[B]Requires feature: \f[CB]infiniband\f[B]\f[R] .RE .RE .SS Properties for device type \f[CR]modems\f[R] \f[B]Status\f[R]: Optional. .PP \f[B]Purpose\f[R]: Use the \f[CR]modems\f[R] key to configure modem interfaces. GSM/CDMA modem configuration is only supported for the \f[CR]NetworkManager\f[R] back end. \f[CR]systemd-networkd\f[R] does not support modems. .PP \f[B]Structure\f[R]: The key consists of a mapping of modem IDs. Each \f[CR]modem\f[R] has a number of configuration options. The general configuration structure for Modems is shown below. .IP .EX network: version: 2 renderer: NetworkManager modems: cdc-wdm1: mtu: 1600 apn: ISP.CINGULAR username: ISP\[at]CINGULARGPRS.COM password: CINGULAR1 number: \[dq]*99#\[dq] network-id: 24005 device-id: da812de91eec16620b06cd0ca5cbc7ea25245222 pin: 2345 sim-id: 89148000000060671234 sim-operator-id: 310260 .EE .PP \f[B]Requires feature: \f[CB]modems\f[B]\f[R] .IP \[bu] 2 \f[B]\f[CB]apn\f[B]\f[R] (scalar) \[en] since 0.99 .RS 2 .RS .PP Set the carrier APN (Access Point Name). This can be omitted if \f[CR]auto-config\f[R] is enabled. .RE .RE .IP \[bu] 2 \f[B]\f[CB]auto-config\f[B]\f[R] (boolean) \[en] since 0.99 .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]\f[CB]device-id\f[B]\f[R] (scalar) \[en] since 0.99 .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[CR]mmcli\f[R]. .RE .RE .IP \[bu] 2 \f[B]\f[CB]network-id\f[B]\f[R] (scalar) \[en] since 0.99 .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]\f[CB]number\f[B]\f[R] (scalar) \[en] since 0.99 .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]\f[CB]password\f[B]\f[R] (scalar) \[en] since 0.99 .RS 2 .RS .PP Specify the password used to authenticate with the carrier network. This can be omitted if \f[CR]auto-config\f[R] is enabled. .RE .RE .IP \[bu] 2 \f[B]\f[CB]pin\f[B]\f[R] (scalar) \[en] since 0.99 .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]\f[CB]sim-id\f[B]\f[R] (scalar) \[en] since 0.99 .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[CR]device-id\f[R] which contains a SIM card matching the given identifier. .RE .RE .IP \[bu] 2 \f[B]\f[CB]sim-operator-id\f[B]\f[R] (scalar) \[en] since 0.99 .RS 2 .RS .PP Specify the MCC/MNC string (such as \f[CR]310260\f[R] or \f[CR]21601\f[R]) which identifies the carrier that this connection should apply to. If given, the connection will apply to any device also allowed by \f[CR]device-id\f[R] and \f[CR]sim-id\f[R] which contains a SIM card provisioned by the given operator. .RE .RE .IP \[bu] 2 \f[B]\f[CB]username\f[B]\f[R] (scalar) \[en] since 0.99 .RS 2 .RS .PP Specify the username used to authenticate with the carrier network. This can be omitted if \f[CR]auto-config\f[R] is enabled. .RE .RE .SS Properties for device type \f[CR]wifis\f[R] \f[B]Status\f[R]: Optional. .PP \f[B]Purpose\f[R]: Use the \f[CR]wifis\f[R] key to configure Wi-Fi access points. .PP \f[B]Structure\f[R]: The key consists of a mapping of Wi-Fi IDs. Each \f[CR]wifi\f[R] has a number of configuration options. The general configuration structure for Wi-Fi is shown below. .IP .EX network: version: 2 wifis: wlp0s1: access-points: \[dq]network_ssid_name\[dq]: password: \[dq]**********\[dq] .EE .PP Note that \f[CR]systemd-networkd\f[R] does not have native support Wi-Fi, so you need wpasupplicant installed if you let the networkd renderer handle Wi-Fi. .IP \[bu] 2 \f[B]\f[CB]access-points\f[B]\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]\f[CB]password\f[B]\f[R] (scalar) .RS 2 .RS .PP Enable WPA/WPA2 authentication and set the passphrase for it. If neither this nor an \f[CR]auth\f[R] block are given, the network is assumed to be open. The setting .IP .EX password: \[dq]S3kr1t\[dq] .EE .PP is equivalent to .IP .EX auth: key-management: psk password: \[dq]S3kr1t\[dq] .EE .RE .RE .IP \[bu] 2 \f[B]\f[CB]mode\f[B]\f[R] (scalar) .RS 2 .RS .PP Possible access point modes are \f[CR]infrastructure\f[R] (the default), \f[CR]ap\f[R] (create an access point to which other devices can connect), and \f[CR]adhoc\f[R] (peer to peer networks without a central access point). \f[CR]ap\f[R] is only supported with NetworkManager. .RE .RE .IP \[bu] 2 \f[B]\f[CB]bssid\f[B]\f[R] (scalar) \[en] since 0.99 .RS 2 .RS .PP If specified, directs the device to only associate with the given access point. .RE .RE .IP \[bu] 2 \f[B]\f[CB]band\f[B]\f[R] (scalar) \[en] since 0.99 .RS 2 .RS .PP Possible bands are \f[CR]5GHz\f[R] (for 5GHz 802.11a) and \f[CR]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]\f[CB]channel\f[B]\f[R] (scalar) \[en] since 0.99 .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[CR]band\f[R] property is also set. .RE .RE .IP \[bu] 2 \f[B]\f[CB]hidden\f[B]\f[R] (boolean) \[en] since 0.100 .RS 2 .RS .PP Set to \f[CR]true\f[R] to change the SSID scan technique for connecting to hidden Wi-Fi networks. Note this may have slower performance compared to \f[CR]false\f[R] (the default) when connecting to publicly broadcast SSIDs. .RE .RE .RE .IP \[bu] 2 \f[B]\f[CB]wakeonwlan\f[B]\f[R] (sequence of scalars) \[en] since 0.99 .RS 2 .RS .PP This enables WakeOnWLan on supported devices. Not all drivers support all options. May be any combination of \f[CR]any\f[R], \f[CR]disconnect\f[R], \f[CR]magic_pkt\f[R], \f[CR]gtk_rekey_failure\f[R], \f[CR]eap_identity_req\f[R], \f[CR]four_way_handshake\f[R], \f[CR]rfkill_release\f[R] or \f[CR]tcp\f[R] (NetworkManager only). Or the exclusive \f[CR]default\f[R] flag (the default). .RE .RE .IP \[bu] 2 \f[B]\f[CB]regulatory-domain\f[B]\f[R] (scalar) \[en] since 0.105 .RS 2 .RS .PP This can be used to define the radio\[aq]s regulatory domain, to make use of additional Wi-Fi channels outside the \[dq]world domain\[dq]. Takes an ISO/ IEC 3166 country code (like \f[CR]GB\f[R]) or \f[CR]00\f[R] to reset to the \[dq]world domain\[dq]. See \c .UR https://git.kernel.org/pub/scm/linux/kernel/git/sforshee/wireless-regdb.git/tree/db.txt wireless-regdb .UE \c \ for available values. .PP \f[B]Requires dependency: \f[CB]iw\f[B]\f[R], if it is to be used outside the networkd (wpasupplicant) back end. .RE .RE .SS Properties for device type \f[CR]bridges\f[R] \f[B]Status\f[R]: Optional. .PP \f[B]Purpose\f[R]: Use the \f[CR]bridges\f[R] key to create Bridge interfaces. .PP \f[B]Structure\f[R]: The key consists of a mapping of Bridge interface names. Each \f[CR]bridge\f[R] has an optional list of interfaces that will be bridged together. The interfaces listed in the \f[CR]interfaces\f[R] key (\f[CR]enp5s0\f[R] and \f[CR]enp5s1\f[R] below) must also be defined in your Netplan configuration. The general configuration structure for Bridges is shown below. .IP .EX network: bridges: br0: interfaces: - enp5s0 - enp5s1 dhcp4: true ... .EE .PP When applied, a virtual interface of type bridge called \f[CR]br0\f[R] will be created in the system. .PP The specific settings for bridges are defined below. .IP \[bu] 2 \f[B]\f[CB]interfaces\f[B]\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 .EX network: ethernets: switchports: match: {name: \[dq]enp2*\[dq]} [...] bridges: br0: interfaces: [switchports] .EE .RE .IP \[bu] 2 \f[B]\f[CB]parameters\f[B]\f[R] (mapping) .RS 2 .RS .PP Customisation 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 \f[CR]s\f[R] for seconds, \f[CR]ms\f[R] for milliseconds) to allow for more control over its behaviour. .RE .IP \[bu] 2 \f[B]\f[CB]ageing-time\f[B]\f[R], \f[B]\f[CB]aging-time\f[B]\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 \f[CR]AgeingTimeSec=\f[R] 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]\f[CB]priority\f[B]\f[R] (scalar) .RS 2 .RS .PP Set the priority value for the bridge. This value should be a number between \f[CR]0\f[R] and \f[CR]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]\f[CB]port-priority\f[B]\f[R] (mapping) .RS 2 .RS .PP Set the port priority per interface. The priority value is a number between \f[CR]0\f[R] and \f[CR]63\f[R]. This metric is used in the designated port and root port selection algorithms. .RE .PP Example: .IP .EX network: ethernets: eth0: dhcp4: false eth1: dhcp4: false bridges: br0: interfaces: [eth0, eth1] parameters: port-priority: eth0: 10 eth1: 20 .EE .RE .IP \[bu] 2 \f[B]\f[CB]forward-delay\f[B]\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 \f[CR]ForwardDelaySec=\f[R] 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]\f[CB]hello-time\f[B]\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 \f[CR]HelloTimeSec=\f[R] property. If no time suffix is specified, the value will be interpreted as seconds. .RE .RE .IP \[bu] 2 \f[B]\f[CB]max-age\f[B]\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 \f[CR]MaxAgeSec=\f[R] 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]\f[CB]path-cost\f[B]\f[R] (mapping) .RS 2 .RS .PP Set the per-interface 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 .PP Example: .IP .EX network: ethernets: eth0: dhcp4: false eth1: dhcp4: false bridges: br0: interfaces: [eth0, eth1] parameters: path-cost: eth0: 100 eth1: 200 .EE .RE .IP \[bu] 2 \f[B]\f[CB]stp\f[B]\f[R] (boolean) .RS 2 .RS .PP Define whether the bridge should use Spanning Tree Protocol. The default value is \f[CR]true\f[R], which means that Spanning Tree should be used. .RE .RE .RE .SS Properties for device type \f[CR]dummy-devices\f[R] \f[B]Status\f[R]: Optional. .PP \f[B]Purpose\f[R]: Use the \f[CR]dummy-devices\f[R] key to create virtual interfaces. .PP \f[B]Structure\f[R]: The key consists of a mapping of interface names. Dummy devices are virtual devices that can be used to route packets to without actually transmitting them. .IP .EX network: dummy-devices: dm0: addresses: - 192.168.0.123/24 ... .EE .PP When applied, a virtual interface called \f[CR]dm0\f[R] will be created in the system. .PP See the \[dq]Properties for all device types\[dq] section for the list of properties that can be used with this type of interface. .SS Properties for device type \f[CR]bonds\f[R] \f[B]Status\f[R]: Optional. .PP \f[B]Purpose\f[R]: Use the \f[CR]bonds\f[R] key to create Bond (Link Aggregation) interfaces. .PP \f[B]Structure\f[R]: The key consists of a mapping of Bond interface names. Each \f[CR]bond\f[R] has an optional list of interfaces that will be part of the aggregation. The interfaces listed in the \f[CR]interfaces\f[R] key must also be defined in your Netplan configuration. The general configuration structure for Bonds is shown below. .IP .EX network: bonds: bond0: interfaces: - enp5s0 - enp5s1 - enp5s2 parameters: mode: active-backup ... .EE .PP When applied, a virtual interface of type bond called \f[CR]bond0\f[R] will be created in the system. .PP The specific settings for bonds are defined below. .IP \[bu] 2 \f[B]\f[CB]interfaces\f[B]\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 .EX network: ethernets: switchports: match: {name: \[dq]enp2*\[dq]} [...] bonds: bond0: interfaces: [switchports] .EE .RE .IP \[bu] 2 \f[B]\f[CB]parameters\f[B]\f[R] (mapping) .RS 2 .RS .PP Customisation 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 \f[CR]s\f[R] for seconds, \f[CR]ms\f[R] for milliseconds) to allow for more control over its behaviour. .RE .IP \[bu] 2 \f[B]\f[CB]mode\f[B]\f[R] (scalar) .RS 2 .RS .PP Set the bonding mode used for the interfaces. The default is \f[CR]balance-rr\f[R] (round robin). Possible values are \f[CR]balance-rr\f[R], \f[CR]active-backup\f[R], \f[CR]balance-xor\f[R], \f[CR]broadcast\f[R], \f[CR]802.3ad\f[R], \f[CR]balance-tlb\f[R] and \f[CR]balance-alb\f[R]. For Open vSwitch \f[CR]active-backup\f[R] and the additional modes \f[CR]balance-tcp\f[R] and \f[CR]balance-slb\f[R] are supported. .RE .RE .IP \[bu] 2 \f[B]\f[CB]lacp-rate\f[B]\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[CR]slow\f[R] (30 seconds, default), and \f[CR]fast\f[R] (every second). .RE .RE .IP \[bu] 2 \f[B]\f[CB]mii-monitor-interval\f[B]\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[CR]0\f[R]; which disables MII monitoring. This is equivalent to the \f[CR]MIIMonitorSec=\f[R] field for the networkd back end. If no time suffix is specified, the value will be interpreted as milliseconds. .RE .RE .IP \[bu] 2 \f[B]\f[CB]min-links\f[B]\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]\f[CB]transmit-hash-policy\f[B]\f[R] (scalar) .RS 2 .RS .PP Specifies the transmit hash policy for the selection of ports. This is only useful in \f[CR]balance-xor\f[R], \f[CR]802.3ad\f[R] and \f[CR]balance-tlb\f[R] modes. Possible values are \f[CR]layer2\f[R], \f[CR]layer3+4\f[R], \f[CR]layer2+3\f[R], \f[CR]encap2+3\f[R] and \f[CR]encap3+4\f[R]. .RE .RE .IP \[bu] 2 \f[B]\f[CB]ad-select\f[B]\f[R] (scalar) .RS 2 .RS .PP Set the aggregation selection mode. Possible values are \f[CR]stable\f[R], \f[CR]bandwidth\f[R] and \f[CR]count\f[R]. This option is only used in 802.3ad mode. .RE .RE .IP \[bu] 2 \f[B]\f[CB]all-members-active\f[B]\f[R] (boolean) \[en] since 0.106 .RS 2 .RS .PP If the bond should drop duplicate frames received on inactive ports, set this option to \f[CR]false\f[R]. If they should be delivered, set this option to \f[CR]true\f[R]. The default value is false and is the desirable behaviour in most situations. .PP Alias: \f[B]\f[CB]all-slaves-active\f[B]\f[R] .RE .RE .IP \[bu] 2 \f[B]\f[CB]arp-interval\f[B]\f[R] (scalar) .RS 2 .RS .PP Set the interval value for how frequently ARP link monitoring should happen. The default value is \f[CR]0\f[R], which disables ARP monitoring. For the networkd back end, this maps to the \f[CR]ARPIntervalSec=\f[R] property. If no time suffix is specified, the value will be interpreted as milliseconds. .RE .RE .IP \[bu] 2 \f[B]\f[CB]arp-ip-targets\f[B]\f[R] (sequence of scalars) .RS 2 .RS .PP IP addresses 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[CR]arp-interval\f[R] is set to a value other than \f[CR]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]\f[CB]arp-validate\f[B]\f[R] (scalar) .RS 2 .RS .PP Configure how ARP replies are to be validated when using ARP link monitoring. Possible values are \f[CR]none\f[R], \f[CR]active\f[R], \f[CR]backup\f[R], and \f[CR]all\f[R]. .RE .RE .IP \[bu] 2 \f[B]\f[CB]arp-all-targets\f[B]\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[CR]active-backup\f[R] mode when \f[CR]arp-validate\f[R] is enabled. Possible values are \f[CR]any\f[R] and \f[CR]all\f[R]. .RE .RE .IP \[bu] 2 \f[B]\f[CB]up-delay\f[B]\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[CR]0\f[R]. This maps to the \f[CR]UpDelaySec=\f[R] 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]\f[CB]down-delay\f[B]\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[CR]0\f[R]. This maps to the \f[CR]DownDelaySec=\f[R] 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]\f[CB]fail-over-mac-policy\f[B]\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[CR]none\f[R], \f[CR]active\f[R] and \f[CR]follow\f[R]. .RE .RE .IP \[bu] 2 \f[B]\f[CB]gratuitous-arp\f[B]\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[CR]1\f[R]. The default value is \f[CR]1\f[R] and valid values are between \f[CR]1\f[R] and \f[CR]255\f[R]. This only affects \f[CR]active-backup\f[R] mode. .PP For historical reasons, the misspelling \f[CR]gratuitious-arp\f[R] is also accepted and has the same function. .RE .RE .IP \[bu] 2 \f[B]\f[CB]packets-per-member\f[B]\f[R] (scalar) \[en] since 0.106 .RS 2 .RS .PP In \f[CR]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[CR]0\f[R], ports are chosen at random. Allowable values are between \f[CR]0\f[R] and \f[CR]65535\f[R]. The default value is \f[CR]1\f[R]. This setting is only used in \f[CR]balance-rr\f[R] mode. .PP Alias: \f[B]\f[CB]packets-per-slave\f[B]\f[R] .RE .RE .IP \[bu] 2 \f[B]\f[CB]primary-reselect-policy\f[B]\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[CR]always\f[R], \f[CR]better\f[R] and \f[CR]failure\f[R]. .RE .RE .IP \[bu] 2 \f[B]\f[CB]resend-igmp\f[B]\f[R] (scalar) .RS 2 .RS .PP In modes \f[CR]balance-rr\f[R], \f[CR]active-backup\f[R], \f[CR]balance-tlb\f[R] and \f[CR]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]\f[CB]learn-packet-interval\f[B]\f[R] (scalar) .RS 2 .RS .PP Specify the interval between sending learning packets to each port. The value range is between \f[CR]1\f[R] and \f[CR]0x7fffffff\f[R]. The default value is \f[CR]1\f[R]. This option only affects \f[CR]balance-tlb\f[R] and \f[CR]balance-alb\f[R] modes. Using the networkd renderer, this field maps to the \f[CR]LearnPacketIntervalSec=\f[R] property. If no time suffix is specified, the value will be interpreted as seconds. .RE .RE .IP \[bu] 2 \f[B]\f[CB]primary\f[B]\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[CR]active-backup\f[R], \f[CR]balance-alb\f[R] and \f[CR]balance-tlb\f[R] modes. .RE .RE .RE .SS Properties for device type \f[CR]tunnels\f[R] \f[B]Status\f[R]: Optional. .PP \f[B]Purpose\f[R]: Use the \f[CR]tunnels\f[R] key to create virtual tunnel interfaces. .PP \f[B]Structure\f[R]: The key consists of a mapping of tunnel interface names. Each \f[CR]tunnel\f[R] requires the identification of the tunnel mode (see the section \f[CR]mode\f[R] below for the list of supported modes). The general configuration structure for Tunnels is shown below. .IP .EX network: tunnels: tunnel0: mode: SCALAR ... .EE .PP When applied, a virtual interface called \f[CR]tunnel0\f[R] will be created in the system. Its operation mode is defined by the property \f[CR]mode\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. See \c .UR https://en.wikipedia.org/wiki/Tunneling_protocol Tunneling_protocol .UE \c \ for more general information about tunnels. .PP The specific settings for tunnels are defined below. .IP \[bu] 2 \f[B]\f[CB]mode\f[B]\f[R] (scalar) .RS 2 .RS .PP Defines the tunnel mode. Valid options are \f[CR]sit\f[R], \f[CR]gre\f[R], \f[CR]ip6gre\f[R], \f[CR]ipip\f[R], \f[CR]ipip6\f[R], \f[CR]ip6ip6\f[R], \f[CR]vti\f[R], \f[CR]vti6\f[R], \f[CR]wireguard\f[R], \f[CR]vxlan\f[R], \f[CR]gretap\f[R] and \f[CR]ip6gretap\f[R] modes. In addition, the \f[CR]NetworkManager\f[R] back end supports \f[CR]isatap\f[R] tunnels. .RE .RE .IP \[bu] 2 \f[B]\f[CB]local\f[B]\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]\f[CB]remote\f[B]\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]\f[CB]ttl\f[B]\f[R] (scalar) \[en] since 0.103 .RS 2 .RS .PP Defines the Time To Live (TTL) of the tunnel. Takes a number in the range \f[CR]1..255\f[R]. .RE .RE .IP \[bu] 2 \f[B]\f[CB]key\f[B]\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[CR]wireguard\f[R] it can be a base64-encoded private key or (as of networkd 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[CR]vti\f[R] and \f[CR]vti6\f[R] when using the networkd back end. .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[CR]input\f[R]/\f[CR]output\f[R]/\f[CR]private\f[R]. .RE .IP \[bu] 2 \f[B]\f[CB]input\f[B]\f[R] (scalar) .RS 2 .RS .PP The input key for the tunnel .RE .RE .IP \[bu] 2 \f[B]\f[CB]output\f[B]\f[R] (scalar) .RS 2 .RS .PP The output key for the tunnel .RE .RE .IP \[bu] 2 \f[B]\f[CB]private\f[B]\f[R] (scalar) \[en] since 0.100 .RS 2 .RS .PP A base64-encoded private key required for WireGuard tunnels. When the \f[CR]systemd-networkd\f[R] back end (v242+) is used, this can also be an absolute path to a file containing the private key. .RE .RE .IP \[bu] 2 \f[B]\f[CB]private-key-flags\f[B]\f[R] (sequence of scalars) \[en] since 0.107 .RS 2 .RS .PP Private key flags used by NetworkManager. Possible values are: \f[CR]agent-owned\f[R], \f[CR]not-saved\f[R] and \f[CR]not-required\f[R]. .PP \f[CR]agent-owned\f[R]: a user-session secret agent is responsible for providing and storing this secret. .PP \f[CR]not-saved\f[R]: this secret should not be saved but should be requested from the user each time it is required. .PP \f[CR]not-required\f[R]: this flag hints that the secret is not required and should not be requested from the user. .RE .PP Example: .IP .EX network: renderer: NetworkManager tunnels: wg0: mode: wireguard port: 5182 key: private-key-flags: - agent-owned 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 .EE .RE .RE .IP \[bu] 2 \f[B]\f[CB]keys\f[B]\f[R] (scalar or mapping) .RS 2 .RS .PP Alternate name for the \f[CR]key\f[R] field. See above. .RE .PP Examples: .IP .EX network: tunnels: tun0: mode: gre local: ... remote: ... keys: input: 1234 output: 5678 .EE .IP .EX network: tunnels: tun0: mode: vti6 local: ... remote: ... key: 59568549 .EE .IP .EX network: tunnels: wg0: mode: wireguard addresses: [...] peers: - keys: public: rlbInAj0qV69CysWPQY7KEBnKxpYCpaWqOs/dLevdWc= shared: /path/to/shared.key ... key: mNb7OIIXTdgW4khM7OFlzJ+UPs7lmcWHV7xjPgakMkQ= .EE .IP .EX network: tunnels: wg0: mode: wireguard addresses: [...] peers: - keys: public: rlbInAj0qV69CysWPQY7KEBnKxpYCpaWqOs/dLevdWc= ... keys: private: /path/to/priv.key .EE .RE .PP WireGuard specific keys: .IP \[bu] 2 \f[B]\f[CB]mark\f[B]\f[R] (scalar) \[en] since 0.100 .RS 2 .RS .PP Firewall mark for outgoing WireGuard packets from this interface, optional. .RE .RE .IP \[bu] 2 \f[B]\f[CB]port\f[B]\f[R] (scalar) \[en] since 0.100 .RS 2 .RS .PP UDP port to listen at or \f[CR]auto\f[R]. Optional, defaults to \f[CR]auto\f[R]. .RE .RE .IP \[bu] 2 \f[B]\f[CB]peers\f[B]\f[R] (sequence of mappings) \[en] since 0.100 .RS 2 .RS .PP A list of peers, each having keys documented below. .RE .PP Example: .IP .EX network: 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 .EE .IP \[bu] 2 \f[B]\f[CB]endpoint\f[B]\f[R] (scalar) \[en] since 0.100 .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]\f[CB]allowed-ips\f[B]\f[R] (sequence of scalars) \[en] since 0.100 .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]\f[CB]keepalive\f[B]\f[R] (scalar) \[en] since 0.100 .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]\f[CB]keys\f[B]\f[R] (mapping) \[en] since 0.100 .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[CR]public\f[R] and \f[CR]shared\f[R] keys. .RE .IP \[bu] 2 \f[B]\f[CB]public\f[B]\f[R] (scalar) \[en] since 0.100 .RS 2 .RS .PP A base64-encoded public key, required for WireGuard peers. .RE .RE .IP \[bu] 2 \f[B]\f[CB]shared\f[B]\f[R] (scalar) \[en] since 0.100 .RS 2 .RS .PP A base64-encoded pre-shared key. Optional for WireGuard peers. When the \f[CR]systemd-networkd\f[R] back end (v242+) is used, this can also be an absolute path to a file containing the pre-shared key. .RE .RE .RE .RE .PP VXLAN specific keys: .IP \[bu] 2 \f[B]\f[CB]id\f[B]\f[R] (scalar) \[en] since 0.105 .RS 2 .RS .PP The VXLAN Network Identifier (VNI or VXLAN Segment ID). Takes a number in the range \f[CR]1..16777215\f[R]. .RE .RE .IP \[bu] 2 \f[B]\f[CB]link\f[B]\f[R] (scalar) \[en] since 0.105 .RS 2 .RS .PP Netplan ID of the parent device definition to which this VXLAN gets connected. .RE .RE .IP \[bu] 2 \f[B]\f[CB]type-of-service\f[B]\f[R] (scalar) \[en] since 0.105 .RS 2 .RS .PP The Type Of Service byte value for a VXLAN interface. .RE .RE .IP \[bu] 2 \f[B]\f[CB]mac-learning\f[B]\f[R] (scalar) \[en] since 0.105 .RS 2 .RS .PP Takes a boolean. When \f[CR]true\f[R], enables dynamic MAC learning to discover remote MAC addresses. .RE .RE .IP \[bu] 2 \f[B]\f[CB]ageing\f[B]\f[R], \f[B]\f[CB]aging\f[B]\f[R] (scalar) \[en] since 0.105 .RS 2 .RS .PP The lifetime of Forwarding Database entry learned by the kernel, in seconds. .RE .RE .IP \[bu] 2 \f[B]\f[CB]limit\f[B]\f[R] (scalar) \[en] since 0.105 .RS 2 .RS .PP Configures maximum number of FDB entries. .RE .RE .IP \[bu] 2 \f[B]\f[CB]arp-proxy\f[B]\f[R] (scalar) \[en] since 0.105 .RS 2 .RS .PP Takes a boolean. When \f[CR]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[CR]false\f[R]. .RE .RE .IP \[bu] 2 \f[B]\f[CB]notifications\f[B]\f[R] (sequence of scalars) \[en] since 0.105 .RS 2 .RS .PP Takes the flags \f[CR]l2-miss\f[R] and \f[CR]l3-miss\f[R] to enable netlink LLADDR and/or netlink IP address miss notifications. .RE .RE .IP \[bu] 2 \f[B]\f[CB]short-circuit\f[B]\f[R] (scalar) \[en] since 0.105 .RS 2 .RS .PP Takes a boolean. When \f[CR]true\f[R], route short circuiting is turned on. .RE .RE .IP \[bu] 2 \f[B]\f[CB]checksums\f[B]\f[R] (sequence of scalars) \[en] since 0.105 .RS 2 .RS .PP Takes the flags \f[CR]udp\f[R], \f[CR]zero-udp6-tx\f[R], \f[CR]zero-udp6-rx\f[R], \f[CR]remote-tx\f[R] and \f[CR]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]\f[CB]extensions\f[B]\f[R] (sequence of scalars) \[en] since 0.105 .RS 2 .RS .PP Takes the flags \f[CR]group-policy\f[R] and \f[CR]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]\f[CB]port\f[B]\f[R] (scalar) \[en] since 0.105 .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[CR]4789\f[R] to get the IANA assigned value. .RE .RE .IP \[bu] 2 \f[B]\f[CB]port-range\f[B]\f[R] (sequence of scalars) \[en] since 0.105 .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[CR][LOWER, UPPER]\f[R]. .RE .RE .IP \[bu] 2 \f[B]\f[CB]flow-label\f[B]\f[R] (scalar) \[en] since 0.105 .RS 2 .RS .PP Specifies the flow label to use in outgoing packets. The valid range is \f[CR]0-1048575\f[R]. .RE .RE .IP \[bu] 2 \f[B]\f[CB]do-not-fragment\f[B]\f[R] (scalar) \[en] since 0.105 .RS 2 .RS .PP Allows setting the IPv4 Do not Fragment (DF) bit in outgoing packets. Takes a boolean value. When unset, the kernel default will be used. .RE .RE .SS Properties for device type \f[CR]virtual-ethernets\f[R] \f[B]Status\f[R]: Optional. .PP \f[B]Purpose\f[R]: Use the \f[CR]virtual-ethernets\f[R] key to create virtual Ethernet interfaces. .PP \f[B]Structure\f[R]: The key consists of a mapping of \f[CR]veth\f[R] interface names. Each \f[CR]veth\f[R] requires a \f[CR]peer\f[R]. In order to have a fully working \f[CR]veth\f[R] pair, both devices must be defined, i.e., only setting the \f[CR]peer\f[R] key with the peer name is not enough, the peer interface must also be defined and set the first one as its peer. The general configuration structure for virtual Ethernet is shown below. .IP .EX network: virtual-ethernets: veth0: peer: veth1 veth1: peer: veth0 .EE .PP When applied, two virtual interfaces called \f[CR]veth0\f[R] and \f[CR]veth1\f[R] will be created in the system. .PP Virtual Ethernet devices act as tunnels forwarding traffic from one interface to the other. They can be used to connect two separate virtual networks such as network namespaces and bridges. It\[aq]s not possible to move \f[CR]virtual-ethernets\f[R] to different namespaces through Netplan at the present moment. .PP The specific settings for \f[CR]virtual-ethernets\f[R] are defined below. .IP \[bu] 2 \f[B]\f[CB]peer\f[B]\f[R] (scalar) .RS 2 .RS .PP Defines the \f[CR]virtual-ethernet\f[R] peer. The peer interface must also be a \f[CR]virtual-ethernet\f[R] device. .RE .RE .PP Below is a complete example that uses a pair of virtual Ethernet devices to create a link between two bridges: .IP .EX network: version: 2 renderer: networkd virtual-ethernets: veth0-peer1: peer: veth0-peer2 veth0-peer2: peer: veth0-peer1 bridges: br0: interfaces: - veth0-peer1 br1: interfaces: - veth0-peer2 .EE .SS Properties for device type \f[CR]vlans\f[R] \f[B]Status\f[R]: Optional. .PP \f[B]Purpose\f[R]: Use the \f[CR]vlans\f[R] key to create VLAN interfaces. .PP \f[B]Structure\f[R]: The key consists of a mapping of VLAN interface names. The interface used in the \f[CR]link\f[R] option (\f[CR]enp5s0\f[R] in the example below) must also be defined in the Netplan configuration. The general configuration structure for VLANs is shown below. .IP .EX network: vlans: vlan123: id: 123 link: enp5s0 dhcp4: yes .EE .PP The specific settings for VLANs are defined below. .IP \[bu] 2 \f[B]\f[CB]id\f[B]\f[R] (scalar) .RS 2 .RS .PP VLAN ID, a number between \f[CR]0\f[R] and \f[CR]4094\f[R]. .RE .RE .IP \[bu] 2 \f[B]\f[CB]link\f[B]\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 .EX network: ethernets: eno1: {...} vlans: en-intra: id: 1 link: eno1 dhcp4: yes en-vpn: id: 2 link: eno1 addresses: [...] .EE .SS Properties for device type \f[CR]vrfs\f[R] \f[B]Status\f[R]: Optional. .PP \f[B]Purpose\f[R]: Use the \f[CR]vrfs\f[R] key to create Virtual Routing and Forwarding (VRF) interfaces. .PP \f[B]Structure\f[R]: The key consists of a mapping of VRF interface names. The interface used in the \f[CR]link\f[R] option (\f[CR]enp5s0\f[R] in the example below) must also be defined in the Netplan configuration. The general configuration structure for VRFs is shown below. .IP .EX network: renderer: networkd vrfs: vrf1: table: 1 interfaces: - enp5s0 routes: - to: default via: 10.10.10.4 routing-policy: - from: 10.10.10.42 .EE .IP \[bu] 2 \f[B]\f[CB]table\f[B]\f[R] (scalar) \[en] since 0.105 .RS 2 .RS .PP The numeric routing table identifier. This setting is compulsory. .RE .RE .IP \[bu] 2 \f[B]\f[CB]interfaces\f[B]\f[R] (sequence of scalars) \[en] since 0.105 .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]\f[CB]routes\f[B]\f[R] (sequence of mappings) \[en] since 0.105 .RS 2 .RS .PP Configure static routing for the device; see the \f[CR]Routing\f[R] section. The \f[CR]table\f[R] value is implicitly set to the VRF \f[CR]table\f[R]. .RE .RE .IP \[bu] 2 \f[B]\f[CB]routing-policy\f[B]\f[R] (sequence of mappings) \[en] since 0.105 .RS 2 .RS .PP Configure policy routing for the device; see the \f[CR]Routing\f[R] section. The \f[CR]table\f[R] value is implicitly set to the VRF \f[CR]table\f[R]. .RE .RE .PP Example: .IP .EX network: vrfs: vrf20: table: 20 interfaces: [ br0 ] routes: - to: default via: 10.10.10.3 routing-policy: - from: 10.10.10.42 [...] bridges: br0: interfaces: [] .EE .SS Properties for device type \f[CR]nm-devices\f[R] \f[B]Status\f[R]: Optional. Its use is not recommended. .PP \f[B]Purpose\f[R]: Use the \f[CR]nm-devices\f[R] key to configure device types that are not supported by Netplan. This is NetworkManager specific configuration. .PP \f[B]Structure\f[R]: The key consists of a mapping of NetworkManager connections. The \f[CR]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[CR]passthrough\f[R] mapping. The general configuration structure for NM connections is shown below. .IP .EX network: version: 2 nm-devices: NM-db5f0f67-1f4c-4d59-8ab8-3d278389cf87: renderer: NetworkManager networkmanager: uuid: \[dq]db5f0f67-1f4c-4d59-8ab8-3d278389cf87\[dq] name: \[dq]myvpnconnection\[dq] passthrough: connection.type: \[dq]vpn\[dq] vpn.ca: \[dq]path to ca.crt\[dq] vpn.cert: \[dq]path to client.crt\[dq] vpn.cipher: \[dq]AES-256-GCM\[dq] vpn.connection-type: \[dq]tls\[dq] vpn.dev: \[dq]tun\[dq] vpn.key: \[dq]path to client.key\[dq] vpn.remote: \[dq]1.2.3.4:1194\[dq] vpn.service-type: \[dq]org.freedesktop.NetworkManager.openvpn\[dq] .EE .SS Back end-specific configuration parameters In addition to the other fields available to configure interfaces, some back ends may require to record some of their own parameters in Netplan, especially if the Netplan definitions are generated automatically by the consumer of that back end. Currently, this is only used with \f[CR]NetworkManager\f[R]. .IP \[bu] 2 \f[B]\f[CB]networkmanager\f[B]\f[R] (mapping) \[en] since 0.99 .RS 2 .RS .PP Keeps the NetworkManager-specific configuration parameters used by the daemon to recognise connections. .RE .IP \[bu] 2 \f[B]\f[CB]name\f[B]\f[R] (scalar) \[en] since 0.99 .RS 2 .RS .PP Set the display name for the connection. .RE .RE .IP \[bu] 2 \f[B]\f[CB]uuid\f[B]\f[R] (scalar) \[en] since 0.99 .RS 2 .RS .PP Defines the UUID (unique identifier) for this connection, as generated by NetworkManager itself. .RE .RE .IP \[bu] 2 \f[B]\f[CB]stable-id\f[B]\f[R] (scalar) \[en] since 0.99 .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]\f[CB]device\f[B]\f[R] (scalar) \[en] since 0.99 .RS 2 .RS .PP Defines the interface name for which this connection applies. .RE .RE .IP \[bu] 2 \f[B]\f[CB]passthrough\f[B]\f[R] (mapping) \[en] since 0.102 .RS 2 .RS .PP Can be used as a fallback mechanism to missing key-file settings. .RE .RE .RE .SH SEE ALSO \f[B]\f[CB]netplan-generate\f[B]\f[R](8), \f[B]\f[CB]netplan-apply\f[B]\f[R](8), \f[B]\f[CB]netplan-try\f[B]\f[R](8), \f[B]\f[CB]netplan-get\f[B]\f[R](8), \f[B]\f[CB]netplan-set\f[B]\f[R](8), \f[B]\f[CB]netplan-info\f[B]\f[R](8), \f[B]\f[CB]netplan-ip\f[B]\f[R](8), \f[B]\f[CB]netplan-rebind\f[B]\f[R](8), \f[B]\f[CB]netplan-status\f[B]\f[R](8), \f[B]\f[CB]netplan-dbus\f[B]\f[R](8), \f[B]\f[CB]systemd-networkd\f[B]\f[R](8), \f[B]\f[CB]NetworkManager\f[B]\f[R](8) .SH AUTHORS Mathieu Trudel-Lapierre (\c .MT cyphermox@ubuntu.com .ME \c ); Martin Pitt (\c .MT martin.pitt@ubuntu.com .ME \c ); Lukas Märdian (\c .MT slyon@ubuntu.com .ME \c ).