Kali在Vmware中通过Bridge联网

论坛 期权论坛 脚本     
匿名技术用户   2020-12-31 00:27   11   0

先说明最终结果:kali以桥接模式联网后,可以与局域网中任何一台主机ping通,并可以访问外网。

一开始安装结束时,ping不通宿主机也ping不通外网,具体设置步骤省略了,仅给出检测点以及配置示例截图:



检测Vmware桥接的网卡是否正确:

不要用“”自动“”模式,而要选择宿主机实际在使用的网卡。

菜单路径:编辑》虚拟网络编辑器,设置后的截图如下所示:



配置静态IP地址

文件路径:vi /etc/network/interfaces

配置示例如下所示:

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

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback
iface eth0 inet static
address 192.168.0.5
netmask 255.255.255.0
gateway 192.168.0.1               


这里之所以这么设置,与宿主机的配置相关,宿主机的配置如下:




重启网络服务

root@kali:/etc/network# /etc/init.d/networking restart




分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:7942463
帖子:1588486
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP