编辑以下文件:
sudo vim /etc/netplan/50-cloud-init.yaml
添加 adreesses 配置
然后执行命令: sudo netplan apply
我的文件如下:
network:
ethernets:
enp0s3:
dhcp4: true
dhcp6: false
match:
macaddress: 02:00:17:01:51:e9
addresses:
– 2603:c022:8000:ab00:7db4:c28f:xxxx/128 # 具体地址去甲骨文后台查看
set-name: enp0s3
version: 2
解决了