I need to create two wireless networks and one ethernet network with ns-3 but all my ideas doesn't seem to work as I can't have collison. I was trying to create something connected like:
(wifi) ----point to point--- (ethernet)--- point to point--- (wifi)
can't post image, here is a link
It didn't work, it seems because I need something called point-to-multipoint communication and I don't know how to do that on ns-3 (I didn't even found about it on ns-3) and I hardly find reference about this matter. Tried to just create three nodes and assign two with wireless node and one with ethernet while trying that.
Also tried to create two pair of nodes with a point-to-point communcation between each but I realized I was changing the problem.
What you need is add two network interfaces for each node, one for point-to-point and another for Wi-Fi.
Interfaces
See the code sample in the ns3 source code for an example: