2025年5月2日星期五

debian升级后网络IP分配失败

ifconfig -a 查看发现 eth0 变成 ens3 了

 

查看log,确认是网卡名称问题:

systemctl status networking.service

journalctl -u  networking.service

 

在 /etc/network/interfaces 修改 eth0 为 ens3

systemctl restart networking.service

 

IP恢复正常

没有评论:

发表评论