Netplan config example

network:
    ethernets:
        ens160:
            addresses:
            - 10.10.10.10/24
            gateway4: 10.10.10.1
            nameservers:
                addresses:
                - 1.1.1.1
                - 8.8.8.8
                search: []
            optional: true
    version: 2

Last updated