Kfir Lavi
2010-Nov-14 17:45 UTC
[Bridge] Testing bridge setup with packet generator and qemu
Hi, I would like to test a simple bridge setup. br0 have eth0 and eth1 I want to create a fake traffic and see it crossing the bridge. My main goal is to write a local script that will run tests locally on the ebtables rules as I change them. Lets say i'm generating arp packet with nemesis: nemesis arp -v -d eth0 -S $SRC -D $DST -h $SRC_MAC -m $DST_MAC # request nemesis arp -v -r -d eth0 -S $DST -D $SRC -h $DST_MAC -m $SRC_MAC # reply This shows on eth0 tcpdump but not on eth1 tcpdump Why the bridge doesn't forward to eth1 the arp packets? I have a gentoo rootfs. qemu nics are define like this: ?-net nic,model=rtl8139,vlan=0 -net user,vlan=0 \ ?-net nic,model=rtl8139,vlan=1 Regards, Kfir