This is the network I'm working on:
Bridges
*------------------------* *----------------------*
| Virtual Machine 100 | ------- vzbr100 ------- | NS-2 |
| | / \ | |
| eth0 ============== veth100.0 tap100 ============ |
| Ip: 10.0.0.100 | Mac: 00:00:00:00:01:00 Ip: 10.0.0.200 | |
| Mac: 00:00:00:00:02:00 | Mac: 16:2C:D1:C5:09:83 | |
*------------------------* | |
| WLAN Emulation |
*------------------------* | |
| Virtual Machine 101 | ------- vzbr101 ------- | |
| | / \ | |
| eth0 ============== veth101.0 tap101 ============ |
| Ip: 10.0.0.101 | Mac: 00:00:00:00:01:01 Ip: 10.0.0.201 | |
| Mac: 00:00:00:00:02:01 | Mac: D2:87:CA:1E:63:E8 | |
*------------------------* *----------------------*
- VM 100 is sending UDP broadcasts:
vn100:/# tcpdump -e -i eth0
06:23:05.415945 00:00:00:00:02:00 (oui Ethernet) > Broadcast, ethertype IPv4 (0x0800), length 62: 10.0.0.100.698 > 10.0.0.255.698: UDP, length 20
- I can see this packages on veth100.0 on the host-machine:
host:/# tcpdump -e -i veth100.0
08:25:32.584301 00:00:00:00:02:00 (oui Ethernet) > Broadcast, ethertype IPv4 (0x0800), length 62: 10.0.0.100.698 > 10.0.0.255.698: UDP, length 20
- I can see them on the bridge vzbr100:
host:/# tcpdump -e -i vzbr100
08:26:48.403584 00:00:00:00:02:00 (oui Ethernet) > Broadcast, ethertype IPv4 (0x0800), length 62: 10.0.0.100.698 > 10.0.0.255.698: UDP, length 20
- The packages enter the NS2 emulation through tap100:
host:/# tcpdump -e -i tap100
08:27:43.959279 00:00:00:00:02:00 (oui Ethernet) > Broadcast, ethertype IPv4 (0x0800), length 62: 10.0.0.100.698 > 10.0.0.255.698: UDP, length 20
- They are leaving the emulation through tap101:
host:/# tcpdump -e -i tap101
08:28:37.466638 00:00:00:00:02:00 (oui Ethernet) > Broadcast, ethertype IPv4 (0x0800), length 62: 10.0.0.100.698 > 10.0.0.255.698: UDP, length 20
- But they do NOT appear on the second bridge vzbr101
- They don't reach veth101.0
- And they don't reach the eth device of VM 101
Maybe this informations will help you to understand my configuration and my problem.
The same happens when I start the broadcasting on VM 101. They packages go through NS2 and don't appear on bridge vzbr100.