Kali在Vmware中通过Bridge联网

来源:互联网 发布:mac怎么把字体导入ps 编辑:程序博客网 时间:2024/06/08 08:43

先说明最终结果: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 interfaceauto loiface lo inet loopbackiface eth0 inet staticaddress 192.168.0.5netmask 255.255.255.0gateway 192.168.0.1               


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




重启网络服务

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




0 0
原创粉丝点击