Netplan Property Reference¶
Global Properties¶
network¶
Top-level key for all network configuration.
version¶
Schema version. Always 2 for current netplan.
renderer¶
Backend to use. Options: networkd (default on server), NetworkManager (default on desktop).
Common Interface Properties¶
These apply to all interface types.
addresses¶
List of IP addresses with CIDR prefix.
With options:
dhcp4 / dhcp6¶
Enable DHCP for IPv4/IPv6.
dhcp4-overrides / dhcp6-overrides¶
Customize DHCP behavior.
dhcp4-overrides:
use-dns: true
use-ntp: true
use-hostname: true
use-mtu: true
use-routes: true
use-domains: true
send-hostname: true
hostname: myserver
route-metric: 100
routes¶
Static routes.
routes:
- to: default
via: 192.168.1.1
- to: 10.0.0.0/8
via: 192.168.1.254
metric: 100
on-link: true
table: 100
type: unicast
scope: global
mtu: 1400
Route types: unicast, blackhole, unreachable, prohibit, throw
routing-policy¶
Policy routing rules.
routing-policy:
- from: 10.0.0.0/8
table: 100
priority: 100
- to: 8.8.8.8
table: 200
- mark: 1
table: 300
nameservers¶
DNS configuration.
mtu¶
Maximum transmission unit.
macaddress¶
Override MAC address.
wakeonlan¶
Enable Wake-on-LAN.
link-local¶
Link-local addresses to enable.
optional¶
Don't wait for interface during boot.
accept-ra¶
Accept Router Advertisements (IPv6).
ipv6-address-generation¶
IPv6 address generation mode.
ipv6-privacy¶
Enable IPv6 privacy extensions.
Ethernet Properties¶
match¶
Match criteria for interface.
set-name¶
Rename matched interface.
Offload Features¶
receive-checksum-offload: true
transmit-checksum-offload: true
tcp-segmentation-offload: true
generic-segmentation-offload: true
generic-receive-offload: true
large-receive-offload: false
Bridge Properties¶
interfaces¶
Member interfaces.
parameters¶
Bridge-specific settings.
parameters:
stp: false
forward-delay: 0
hello-time: 2
max-age: 20
priority: 32768
ageing-time: 300
path-cost:
eth0: 100
port-priority:
eth0: 32
openvswitch¶
Use Open vSwitch.
Bond Properties¶
interfaces¶
Member interfaces.
parameters¶
Bond-specific settings.
parameters:
mode: 802.3ad
lacp-rate: fast
mii-monitor-interval: 100
min-links: 1
transmit-hash-policy: layer3+4
ad-select: stable
all-slaves-active: false
arp-interval: 0
arp-ip-targets: []
arp-validate: none
arp-all-targets: any
up-delay: 0
down-delay: 0
fail-over-mac-policy: none
gratuitious-arp: 1
packets-per-slave: 1
primary: eth0
primary-reselect-policy: always
resend-igmp: 1
learn-packet-interval: 1
Bond modes: - balance-rr (0) - active-backup (1) - balance-xor (2) - broadcast (3) - 802.3ad (4) - balance-tlb (5) - balance-alb (6)
VLAN Properties¶
id¶
VLAN ID (1-4094).
link¶
Parent interface.
WiFi Properties¶
access-points¶
WiFi networks to connect.
wifis:
wlan0:
access-points:
"NetworkName":
password: "secret"
hidden: false
band: 5GHz
bssid: "aa:bb:cc:dd:ee:ff"
mode: infrastructure
auth¶
Enterprise authentication.
access-points:
"Enterprise":
auth:
key-management: eap
method: peap
identity: "user@domain"
password: "secret"
anonymous-identity: "anon"
ca-certificate: /path/to/ca.pem
client-certificate: /path/to/client.pem
client-key: /path/to/key.pem
client-key-password: "keypass"
Tunnel Properties¶
mode¶
Tunnel type.
Modes: gre, gretap, ip6gre, ip6gretap, ipip, ipip6, ip6ip6, sit, vti, vti6, vxlan, wireguard
local / remote¶
Tunnel endpoints.
WireGuard¶
tunnels:
wg0:
mode: wireguard
key: "BASE64_PRIVATE_KEY"
port: 51820
mark: 0
peers:
- keys:
public: "PEER_PUBLIC_KEY"
allowed-ips:
- 10.0.0.0/8
endpoint: "peer.example.com:51820"
keepalive: 25
VXLAN¶
tunnels:
vxlan100:
mode: vxlan
id: 100
local: 192.168.1.100
remote: 192.168.1.101
port: 4789
ageing: 300
limit: 0
type-of-service: inherit
mac-learning: true
short-circuit: false
notifications:
- l2-miss
- l3-miss
VRF Properties¶
vrfs:
vrf-mgmt:
table: 100
interfaces:
- eth0
routes:
- to: default
via: 192.168.1.1
table: 100
routing-policy:
- from: 192.168.1.0/24
table: 100
Dummy Devices¶
Backend-Specific Options¶
networkd¶
NetworkManager¶
networkmanager:
uuid: "12345678-1234-1234-1234-123456789abc"
name: "My Connection"
passthrough:
connection.autoconnect-priority: "100"
wifi.powersave: "2"