赞
踩
1、修改静态ip配置文件
/etc/netplan/01-network-manager-all.yaml
- network:
- ethernets:
- eth0:
- dhcp4: no
- dhcp6: no
- addresses: [192.168.0.222/24, ]
- gateway4: 192.168.0.1
- nameservers:
- addresses: [8.8.8.8, 8.8.4.4]
- version: 2
如果报 WARNING: systemd-networkd is not running, output will be incomplete.
是renderer: NetworkManager未添加
注意:
- network:
- version: 2
- renderer: NetworkManager
要保留
2、使之生效
$ sudo netplan apply
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。