All tags
netplan
Narrow down
Network9
- Tip
hidden: trueConnect to a hidden Wi-Fi network with hidden: true in netplanNetplan's hidden key changes how the SSID is scanned, so networks that do not broadcast their name can be joined.2 Dec 2026 - Tip
ls -l /etc/netplan/Chmod 600 on your netplan files keeps Wi-Fi passwords and keys privateStops other local users from reading secrets stored in your network config.1 Dec 2026 - Tip
optional: trueOptional: true in netplan stops boot from waiting for an unplugged portA network port that is often down no longer holds up the startup.1 Dec 2026 - Tip
ip -br linkNetplan match and set-name give a network card a name that stays putRename an interface by its MAC address so the config keeps pointing at it.1 Dec 2026 - Tip
netplan statusnetplan status shows what the network actually looks like right nowPrints the live state of every network interface, with addresses, routes and DNS.19 Aug 2026 - Tip
network: {version: 2, ethernets: {enp3s0: {dhcp4: true, dhcp4-overrides: {use-dns: false}, nameservers: {addresses: [192.168.1.2]}}}}dhcp4-overrides lets netplan ignore the DNS servers a DHCP server sendsKeeps the DHCP address but replaces the DNS servers with your own.13 May 2026 - Tip
network: {version: 2, ethernets: {enp3s0: {}}, vlans: {vlan20: {id: 20, link: enp3s0, addresses: [10.20.0.5/24]}}}Netplan vlans need an id and a link to a parent interfaceAdds a tagged VLAN interface on top of a physical port in netplan.13 May 2026 - Tip
network: {version: 2, ethernets: {enp3s0: {}}, bridges: {br0: {interfaces: [enp3s0], dhcp4: true}}}Netplan bridges move the IP address from the NIC to the bridgeBuilds a bridge in netplan and gives the address to the bridge.13 May 2026 - Tip
network: {version: 2, ethernets: {enp3s0: {addresses: [192.168.1.20/24], routes: [{to: default, via: 192.168.1.1}], nameservers: {addresses: [192.168.1.1]}}}}A static IP in netplan sets the default route under routes instead of gateway4Sets a fixed address and default route the current way in netplan.12 May 2026
Shell5
- Tip
echo 'network: {config: disabled}' | sudo tee /etc/cloud/cloud.cfg.d/99-disable-network-config.cfgStop cloud-init from overwriting your netplan file with one small configHand network settings back to you on images where cloud-init manages them.1 Dec 2026 - Tip
sudo netplan tryNetplan try rolls your network change back if you lose the connectionApplies a netplan change and automatically undoes it unless you confirm it in time.7 Aug 2026 - Tip
sudo netplan set ethernets.enp3s0.dhcp4=falseNetplan set changes one YAML key from the command lineWrites one key to the netplan configuration without opening an editor.12 May 2026 - Tip
sudo netplan getNetplan get prints the merged configuration from all YAML filesShows the final merged netplan configuration, or a single part of it.12 May 2026 - Tip
sudo netplan generateNetplan generate checks your YAML without touching the networkParses the netplan YAML and reports errors without changing the network.12 May 2026
Other tips4
- Tip
- to: 192.168.3.0/24Netplan routing-policy sends replies out the interface they came in onWith two network cards on different subnets, source-based rules keep the replies on the right card.2 Dec 2026 - Tip
lacp-rate: fastLacp-rate: fast makes a netplan 802.3ad bond check its partner every secondOnly used in 802.3ad mode, lacp-rate chooses between a slow 30 second and a fast one second LACP interval.2 Dec 2026 - Tip
link-local: []Link-local: [] turns off link-local addresses in netplanWithout the key netplan enables only IPv6 link-local addresses, and an empty list switches both kinds off.2 Dec 2026 - Tip
netplan statusnetplan status shows what an interface really has right nowPrints the live network state of the interfaces and can compare it with your YAML.29 Jun 2026
Mac2
- Tip
wakeonlan: trueWakeonlan: true in netplan, with the interface matched by MAC addressSwitches Wake on LAN on for an interface, which the docs say to match by MAC.2 Dec 2026 - Tip
dhcp-identifier: macNetplan dhcp-identifier: mac lets your DHCP reservation match the MACFix a reserved address that your router never hands to an Ubuntu server.1 Dec 2026
Storage1
Nothing matches.