kali linux 上不了网的解决办法:
(原网址: http://www.ithao123.cn/content-3055289.html)
到根目录下/../etc/network找到interfaces文件
vi打开:vi interfaces
此时你会发现,只有两行:
auto lo
iface lo inet loopback
之所以不能联网是因为这个文件不完整。
将这两行替换为:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
auto eth1
iface eth1 inet dhcp
auto eth2
iface eth2 inet dhcp
auto ath0
iface ath0 inet dhcp
auto wlan0
iface wlan0 inet dhcp
然后退出vi,启动项 /etc/init.d/networking,重启网络连接sudo /etc/init.d/networking restart,就ok了