Ubuntu 18.04如何同时配置自动ipv4和静态ipv6地址

sudo vim /etc/netplan/50-cloud-init.yaml

network:
    version: 2
    ethernets:
        ens18:
            dhcp4: true
            match:
                macaddress: xx:xx:xx:xx:xx:xx
            set-name: ensxx
            addresses:
              - xxxx:xxxx:xx::1:xxx/yy
            gateway6: xxxx:xxxx:xx::1

 

Leave a Reply

Your email address will not be published.