Skip to content

Instantly share code, notes, and snippets.

@brootware
Last active February 24, 2026 04:41
Show Gist options
  • Select an option

  • Save brootware/619cef0581d3c70fa02d7d784147922d to your computer and use it in GitHub Desktop.

Select an option

Save brootware/619cef0581d3c70fa02d7d784147922d to your computer and use it in GitHub Desktop.
# /etc/netplan/config.yml
# netplan generate
network:
version: 2
ethernets:
eth0:
addresses: [192.168.10.220/24]
routes:
- to: default
via: 192.168.10.1
nameservers:
search: [domain.local]
addresses: [1.1.1.1, 192.169.10.1]
match:
macaddress: "ab:12:23:cd:ef:1g"
dhcp4: false
dhcp6: false
set-name: "eth0"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment