Date created: 03/25/22 10:21:25. Last modified: 03/25/22 10:49:17

netplan

Example netplan config belows gets an IPv4 and IPv6 address via DHCP, but also has a static v4 and v6 address:

$ cat /etc/netplan/10-default.yaml
network:
    version: 2
    ethernets:
        eth0:
            dhcp4: true
            dhcp6: true
            match:
                macaddress: 22:22:33:44:55:66
            set-name: eth1
            addresses:
              - 10.0.0.8/24
              - fd:0:0:1::8/64

Previous page: Linux Network Tuning
Next page: Networking Commands