[问题]
应用原因,停用NetworkManager
修改/etc/network/interfaces 接口配置无效
ifconfig add ip 仅能临时有效,重启丢失
[解决]
编辑配置 vim /etc/netplan/01-network-manager-all.yaml
network:
version: 2
ethernets:
eth0:
addresses: [10.110.8.160/24]
gateway4: 10.110.8.1
ameservers:
addresses: [114.114.114.114,8.8.8.8]
dhcp4: true
optional: true
enP4p65s0:
ddresses: []
dhcp4: true
optional: true
netplan apply
重启生效
标签:addresses,静态,ip,optional,8.8,true,debian,network From: https://www.cnblogs.com/beenbynow/p/18409873