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

2015-7-18 / 2 评论 技术文章 / Mrxn

本文共计 1345 字,感谢您的耐心浏览与评论.

07-00-49-25.png

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

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

[email protected]:~# ping 192.168.1.1
connect: Network is unreachable
试了一下重新启动网络服务:

[email protected]:~# 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:

[email protected]:~# cat /etc/resolv.conf
nameserver 192.168.1.1
192.168.1.1在里面, DNS设置没有问题

再检查网卡:

[email protected]:~# 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 谢谢

转载:转载请注明原文链接 - VMWare桥接之 Kali Linux DHCP自动获取IP失败的解决办法


2条回应:“VMWare桥接之 Kali Linux DHCP自动获取IP失败的解决办法”

  1. study

    嗯嗯 学习了 支持大神!


发表评论

{view_code_no}