新安装kali解决无法上网问题

重安了一遍kali,发现不仅百度ping不通了,主机都ping不通了,。。。

ifconfig 查看一下,发现只是没有ip地址,网卡还是有的

 

 输入命令 

cd /etc/network/interfaces 

复制到你的这个文件下就可以,直接覆盖即可 

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

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback
auto etho
iface eth0 inet dhcp

 最后,在terminal里执行   /etc/init.d/networking restart   重启网络,使刚才的配置生效,发现还是没网,

ifup eth0

重启开机,发现还是没启动

然而发现竟然可以联网,。。。,神奇 

猜你喜欢

转载自blog.csdn.net/qq_40657585/article/details/84864384
今日推荐