代码: 全选
nano /etc/netplan/50-cloud-init.yaml
network:
ethernets:
enp0s3:
dhcp4: true
match:
macaddress: 02:00:17:02:1d:a5
set-name: enp0s3
addresses:
- 10.0.0.158/24
- 10.0.0.168/24