Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux 在VMware机器上捕获数据包_Linux - Fatal编程技术网

Linux 在VMware机器上捕获数据包

Linux 在VMware机器上捕获数据包,linux,Linux,我在windows PC上安装了VMware工作站,并在其上运行Linux。我想当windows与Internet通信时,我可以在Linux中捕获数据包,我该怎么做 vmware网络是网桥,我设置eth0使用命令“ifconfig eth0 procmisc” linux IP为192.168.0.103,windows IP为192.168.0.102 运行“tcpdump not host 192.168.0.103”时没有结果 感谢您抽出时间,请帮助我虽然我以前没有使用过VMWare wo

我在windows PC上安装了VMware工作站,并在其上运行Linux。我想当windows与Internet通信时,我可以在Linux中捕获数据包,我该怎么做

vmware网络是网桥,我设置eth0使用命令“ifconfig eth0 procmisc”

linux IP为192.168.0.103,windows IP为192.168.0.102 运行“tcpdump not host 192.168.0.103”时没有结果


感谢您抽出时间,请帮助我

虽然我以前没有使用过VMWare workstation,但我已经在您描述的类似设置中使用了Oracle VirtualBox

我怀疑问题在于Linux虚拟机上的网络适配器实际上并没有直接访问物理网络适配器。您将使用中描述的网络映射类型之一

因此,您并没有获得到物理网络适配器的所有通信量。相反,VMWare传递给客户的流量减少了


要做到这一点,唯一的办法就是在你的Windows主机上进行窥探,使用类似于

的东西,我认为这是离题的,更适合