不知道什么原因,kali的eth0网卡突然不见了
ifconfig
发现eth0网卡不见了之后可以使用
ifconfig eth0 up
但是,eth0没有ipv4地址,还是没有办法上网,然后我们打开interfaces修改配置
vim /etc/network/interfaces
在配置文件中添加
auto eth0 iface eth0 inet dhcp
保存并退出后重启网络
/etc/init.d/networking restart
这样就可以解决 网络恢复