Yes, I have done this previously; I will try to type up an example and
HOWTO on Monday.
Tom
I went to write this example and HOWTO, and it reminded me that this is
not yet fixed. Basically, USE_BRIDGE mode requires the underlying
device to support SendFrom(). Wifi adhoc mode does not support this, so
there needs to be support added to the TapBridge to allow it to use
Send() in this case.
(See bug 510 in the tracker if you are interested in more background).
I will try to elevate the priority of this.
http://www.nsnam.org/bugzilla/show_bug.cgi?id=569
- Tom
There is a document in doxygen to explain this problem:
http://www.nsnam.org/doxygen-release/group___tap_bridge_model.html
But I did not found the so-called SingleSource mode in latest
codes.
Any suggestion?
Thanks very much!
Best wishes!
Jinxue Zhang
Yes, UseBridge mode only works with devices that support the SendFrom
method.
>
> There is a document in doxygen to explain this problem:
> http://www.nsnam.org/doxygen-release/group___tap_bridge_model.html
> But I did not found the so-called SingleSource mode in latest
> codes.
The documentation in tap.h is out of date. We'll get it up to date
early next week. These are the valid modes:
.AddAttribute ("Mode",
"The operating and configuration mode to use.",
EnumValue (USE_LOCAL),
MakeEnumAccessor (&TapBridge::SetMode),
MakeEnumChecker (CONFIGURE_LOCAL, "ConfigureLocal",
USE_LOCAL, "UseLocal",
USE_BRIDGE, "UseBridge"))
We'll try to give an update on the status of this type of emulation
(OpenVZ with ns-3) early next week.
- Tom
--
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To post to this group, send email to ns-3-...@googlegroups.com.
To unsubscribe from this group, send email to ns-3-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ns-3-users?hl=en.
> What do you mean by create a Tap devie on the HN and move it into a VPS? Thanks very much!
Create a tap on the hardware node using tunctl, and move it into the VPS using vzctl –netdev_add. Something like this:
---------- Begin Snippet ----------
# create VPS 1000 and 1001
sudo vzctl start 1000
sudo vzctl start 1001
# create the taps
sudo tunctl -p -t t1000
sudo tunctl -p -t t1001
# set the taps up
sudo ifconfig t1000 promisc 10.1.1.1 up
sudo ifconfig t1001 promisc 10.1.1.2 up
# move the VPS-side taps into their respective VPSs
sudo vzctl set 1000 --netdev_add t1000
sudo vzctl set 1001 --netdev_add t1001
# Bring up the taps
sudo vzctl exec 1000 ifconfig t1000 10.1.1.1 up
sudo vzctl exec 1001 ifconfig t1001 10.1.1.2 up
---------- End Snippet ----------
Craig knows more about this than I do, but tap appears to interact badly
with OpenVZ. It is possible to work around this restriction but the
system is very fragile and I wouldn't recommend it. So, probably the
documentation should not recommend OpenVZ when discussing use of TapBridge.
We have had much better success using netns than OpenVZ with ns-3.
- Tom