kali突然无法联网(NAT模式)

打开/etc/network/interfaces

命令:sudo vi /etc/network/interfaces

打开是这样的

在最后加上

auto eth0

iface eth0 inet dhcp

设置静态ip

ESC+“:wq”保存退出

最后重启网络

/etc/init.d/networking restart

就好啦

参考:https://blog.csdn.net/qq_40637292/article/details/80861517

posted @ 2020-09-24 11:19  Web_Fresher  阅读(882)  评论(0编辑  收藏  举报