network:
version: 2
ethernets:
ens33:
addresses: [128.100.1.1/8]
gateway4: 192.168.0.1
nameservers:
addresses: [8.8.8.8, 192.168.0.1] version: 2
root@main:/home/leaf# sudo netplan 尝试
加载 /etc/netplan/00-installer-config.yaml 时出错
答案1
您的 /etc/netplan/00-installer-config.yaml 应该看起来像这样...
笔记:检查您的静态IP和网关4地址。
network:
version: 2
renderer: networkd
ethernets:
ens33:
addresses: [128.100.1.1/8]
gateway4: 192.168.0.1
nameservers:
addresses: [8.8.8.8, 192.168.0.1]
sudo netplan generate
sudo netplan apply
reboot