cat /etc/netplan/50-cloud-init.yaml
network: version: 2 renderer: networkd ethernets: enp0s3: dhcp4: false addresses: [192.168.1.102/24] gateway4: 192.168.1.1 nameservers: addresses: [192.168.1.1, 8.8.8.8]
应用
netplan --debug apply
原文地址:https://www.cnblogs.com/taoshihan/p/12142787.html
时间: 2024-10-27 14:33:47