1、vim /etc/network/interfaces
2、文末添加:
auto eth0
iface eth0 inet dhcp
3、重启network服务:/etc/init.d/networking restart
4、ifconfig获得IP
注:如果有多个网卡,却只获得了一个网卡的IP,只需在文末再添加与eth0相同格式的eth1两行配置即可,以此类推
Kali获取不到IP解决方案
猜你喜欢
转载自blog.csdn.net/qq_41617034/article/details/104398717
今日推荐
周排行