Skip to main content

Netplan

  • Ethernet (Dynamic IP)

    network:
        version: 2
        ethernets:
            eth0:
                dhcp4: true
                optional: true
    
  • Ethernet (Static IP)

    network:
        version: 2
        ethernets:
            eth0:
                dhcp4: no
                addresses: [xxx.xxx.xxx.xxx/yy]
                gateway4: zzz.zzz.zzz.zzz
                nameservers:
                    addresses: [aaa, bbb]
                optional: true
    
  • Wi-Fi (Dynamic)

    network:
        version: 2
        wifis:
            wlan0:
                optional: true
                access-points:
                    "xxxxx":
                        password: "yyyyy"
                dhcp4: true