加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

linux – Debian错误:ifup:无法读取接口文件“/ etc / network

发布时间:2020-12-13 17:16:47 所属栏目:Linux 来源:网络整理
导读:从今天起Debian发出错误:ifup:无法读取interfaces文件“/ etc / network / interfaces” 如果我查找interfaces文件,我会看到以下内容: # This file describes the network interfaces available on your system# and how to activate them. For more info
从今天起Debian发出错误:ifup:无法读取interfaces文件“/ etc / network / interfaces”

如果我查找interfaces文件,我会看到以下内容:

# This file describes the network interfaces available on your system
# and how to activate them. For more information,see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet dchp

allow-hotplug eth1
iface eth1 inet dchp

我在虚拟盒子里运行Debian; eth0是NAT,eth1是仅限主机的适配器
我也尝试插入以太网电缆,但这没有改变.

我怎样才能摆脱这个错误?

先感谢您,

REMCO

解决方法

你可能会踢自己,但你在两条线上都有同样的错字.它应该是iface eth0 inet dhcp not dchp.

ifup和ifdown如果无法解析文件就会中断.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读