Take a look at the TapBridge module; it allows you to create or use existing TAP devices on the host for exactly this sort of purpose. That includes the host endpoint (i.e., vbox0) of a “host-only” connection. There might be other virtual network types you could use, all it really needs is the TAP interface on the host, but “host-only” is probably what you really want (least overhead, most direct).
FYI, chances are you’ll want to make sure you’re running the simulation in real-time; you can also find the documentation for that on the ns3 website.
Regards,
Josh
--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.
To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.