vim /etc/netplan/00-installer-config.yaml
# This is the network config written by 'subiquity'
network:
ethernets:
ens160:
addresses:
- 192.168.1.10/24
gateway4: 192.168.1.1
nameservers:
addresses:
- 223.5.5.5
version: 2
# 重启网卡
netplan apply
# 测试
ping baidu.com
Ubuntu20.4配置静态IP
发布于 2022-12-08 282 次阅读
Comments NOTHING