«

VMWare桥接之 Kali Linux DHCP自动获取IP失败的解决办法

时间:2015-7-18 23:47     作者:admin     分类: 技术文章


07-00-49-25.png

如图所示,在VMWare虚拟机安装Kali之后出现不能自动获取到ip的情况.

首先是ping了一下出现如下的错误:

root@kali:~# ping 192.168.1.1
connect: Network is unreachable
试了一下重新启动网络服务:

root@kali:~# service networking restart
[....] Running /etc/init.d/networking restart is deprecated because it [warnot re-enable some interfaces ... (warning).
[....] Reconfiguring network interfaces...Internet Systems Consortium DHCP Client 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:50:56:27:52:c8
Sending on   LPF/eth0/00:50:56:27:52:c8
Sending on   Socket/fallback
DHCPRELEASE on eth0 to 192.168.1.1 port 67
send_packet: Network is unreachable
send_packet: please consult README file regarding broadcast address.
Reloading /etc/samba/smb.conf: smbd only.
done.
然后是检查DNS:

root@kali:~# cat /etc/resolv.conf
nameserver 192.168.1.1
192.168.1.1在里面, DNS设置没有问题

再检查网卡:

root@kali:~# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp
网卡自动激活, 并配置dhcp获取IP方式,这没有错呀.

最后就只能检查VMWare 桥接设置了:

00.png

由于我装有Virual Box & VMWare Workstation, 所以有多个虚拟网卡, 桥接为自动模式, 心想是不是自动桥接到不能连外网的Virtual Box的虚拟网卡了? -_- | (貌似是的!)

果断选成实际外网网卡, 重启Kali Linux networking服务, 问题解决.

希望可以帮到有同样困扰的朋友.欢迎转载,请注明出处.Mrxn's Blog https://mrxn.net 谢谢

版权所有:Mrxn's Blog
文章标题:VMWare桥接之 Kali Linux DHCP自动获取IP失败的解决办法
文章链接:https://mrxn.net/jswz/315.html
本站文章均为原创,未经授权请勿用于任何商业用途

扫描二维码,在手机上阅读

推荐阅读:

评论:
avatar
218.201.174.* 2021-09-11 11:22
终于解决了,废了我一上午劲
commentator
Mrxn 2021-09-11 12:52
@218.201.174.*: 解决了就好
avatar
study 2015-07-19 16:12
嗯嗯 学习了 支持大神!
commentator
Mrxn 2015-07-19 16:16
@study:呵呵 哪里....都是百度搜索 自己记下了而已