debian8 的网卡只能手动激活,不能自动激活。 5C

debian8 系统,网卡不能自动启动。

/etc/network/interfaces的配置也对:

auto lo

iface lo inet loopback

auto eth0

iface eth0 inet static

address 192.168.1.188

netmask 255.255.255.0

gateway 192.168.1.2

使用systemctl status networking.service 查看网卡服务状态时,显示:

7月 15 12:08:01 hnhnlp1 networking[2636]: process and the information we find helpful for debugging..

7月 15 12:08:01 hnhnlp1 networking[2636]: exiting.

7月 15 12:08:01 hnhnlp1 networking[2636]: Failed to bring up eth0.

7月 15 12:08:01 hnhnlp1 networking[2636]: RTNETLINK answers: Operation not permitted

7月 15 12:08:01 hnhnlp1 networking[2636]: Failed to bring up eth1.

7月 15 12:08:01 hnhnlp1 networking[2636]: RTNETLINK answers: Operation not permitted

7月 15 12:08:01 hnhnlp1 networking[2636]: Failed to bring up eth2.

7月 15 12:08:01 hnhnlp1 networking[2636]: /etc/network/if-up.d/mountnfs: 17: /etc/network/if-up.d/mountnfs: systemctl: Permission denied

7月 15 12:08:01 hnhnlp1 networking[2636]: done.

7月 15 12:08:01 hnhnlp1 systemd[1]: Started LSB: Raise network interfaces..

虽然不能自动激活,但是手动输入if-up eth0却能手动激活。

1个回答

会不会是少了 allow-hotplug eth0 ?

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问