kali linux重启网卡失败:Job for networking.service failed because the control process exited with error...
1.取消勾选dhcp2、配置静态ip(ip地址和默认网关查看虚拟网络编辑器)(1)vim/etc/network/interfaces(2)vim /etc/resolv.conf3、重启网卡配置,命令systemctl restart networking或者service networking restart4、报错:Job for network.service failed because
·
解决kali Nat模式下无法联网或重启网卡失败
1、取消勾选dhcp
2、配置静态ip(ip地址和默认网关查看虚拟网络编辑器)
(1)
vim /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.190.137
netmask 255.255.255.0
gateway 192.168.190.2
address是客户机(虚拟机)ip地址; netmask子网掩码,默认255.255.255.0; gateway网关地址,在虚拟网络编辑器的nat设置可以查看(最后八位一定要大于1)
(2)
vim /etc/resolv.conf
search localdomain
nameserver 192.168.190.2
nameserver 8.8.8.8
3、重启网卡配置
systemctl restart networking
或者
service networking restart
4、如果仍报错尝试以下命令
exited with error code
临时关闭
systemctl stop NetworkManager
永久关闭
systemctl disable NetworkManager
重启
systemctl restart network
或者
service networking restart
参考:linux网卡重启报错
更多推荐
已为社区贡献2条内容
所有评论(0)