出于测试目的,我使用Open来镜像来自eth1和eth2到eth3的2个接口的流量。
在桥上增加了eth1,eth2和eth3
我使用以下命令设置镜像:
ovs-vsctl -- set Bridge br0 mirrors=@m \
-- --id=@eth1 get Port eth1 \
-- --id=@eth2 get Port eth2 \
-- --id=@eth3 get Port eth3 \
-- --id=@m create Mirror name=e1e2toe3 select-dst-port=@eth1 select-src-port=@eth1 output-port=@eth3具有tcpdump的节点连接到eth3。
tcpdump只显示layer2通信量: ARP、CDP (连接到eth1和eth2的思科设备)、连接到eth1和eth2的设备之间的会话,但不显示上层: ex: pings、ssh、telnet。

有什么暗示吗?
发布于 2015-07-09 13:19:33
确保将您的接口设置为混杂模式,因为默认情况下,交换机将忽略发送给它们的通信量,除非它们的端口设置为混杂模式:
ifconfig eth1 up
ifconfig eth1 promisc资料来源:
http://www.tcpdump.org/faq.html#q6
https://askubuntu.com/questions/430355/configure-a-network-interface-into-promiscuous-mode
否则,假设您正在重播.pcap文件,则使用tcprewrite更改重放通信量的目标MAC/IP地址。(我想你可能只需要换两种中的一种,但我不记得是哪一种)
下面的指南将告诉您如何做到这一点:
http://xmodulo.com/how-to-capture-and-replay-network-traffic-on-linux.html
https://stackoverflow.com/questions/29996213
复制相似问题