手抄报 安全手抄报 手抄报内容 手抄报图片 英语手抄报 清明节手抄报 节约用水手抄报

liunx系统couldn't read interfaces解决方法

时间:2024-10-15 14:25:10

遇到这个问题ifup砜实蛰斓: couldn't read interfaces file "/etc/netw泠贾高框ork/interfaces"的解决办法有三种

输入“/etc/init.d/network-manager restart”就可以了联网了,但问题还是没解决,这只能算是解决上网问题。

liunx系统couldn't read interfaces解决方法

将原配置文件改名为interfaces中内容改为:

autolo

ifaceloinetloopback

autoeth0

iface eth0 inet dhcp

ifaceeth0 inetstatic

address192.168.1.2

netmask255.255.255.0

network192.168.1.1

broadcask192.168.1.255

gateway192.168.1.1

找到小面文件 “cat /etc/NetworkManager/ NetworkManager .conf ”里面内容改为:

[main]

plugins=ifupdown,keyfile

no-auto-default=00:50:56:3D:9E:D2,//这个是你的虚拟机物理地址

[ifupdown]

managed=true

在终端下,输入:/etc/init.d/networking restart 回车,OK,没问题了。

liunx系统couldn't read interfaces解决方法

© 手抄报圈