# 执行ifconfig发现只有lo,没有eth0了
ifconfig
# 启动 eth0
ifconfig eth0 up
# 在/etc/network/interfaces文件中加入以下内容
iface eth0 inet dhcp
# auto lo 改为
auto eth0
# 重启网络
service networking restart
kali关机后重启,无法上网
最新推荐文章于 2025-04-09 21:18:10 发布
# 执行ifconfig发现只有lo,没有eth0了
ifconfig
# 启动 eth0
ifconfig eth0 up
# 在/etc/network/interfaces文件中加入以下内容
iface eth0 inet dhcp
# auto lo 改为
auto eth0
# 重启网络
service networking restart