On 10/08/2016 01:47 AM, Tommaso Pecorella wrote:
> Hi,
>
> no idea, but I guess that they'll have to have a 2nd virtual interface
> to be connected to the physical LAN.
In general, the most straightforward way to do this typically is to
create a bridge device on the host machine and add both the physical
interface on the host and the (2nd) virtual device on the container to
the bridge group. Something like this:
https://wiki.debian.org/LXC/SimpleBridge
Then if you add an IP address, within the same subnetwork as the IP
address of the host, on the container's 2nd virtual device, both the
host interface and the container interface should be reachable from
another computer.
- Tom
>
> Cheers,
>
> T.
>
>
> On Friday, October 7, 2016 at 7:54:42 AM UTC+2, Gelli Ravikumar wrote:
>
> Dear ns-3-users,
>
> I have been working on ns-3 in the emulation-mode (tap-bridge), and
> successfully accomplished the creation of Linux containers (virtual
> machines) and their connection to the ns-3 tap devices as explained
> in the "HOWTO Use Linux Containers to set up virtual networks
> (
https://www.nsnam.org/wiki/index.php/HOWTO_Use_Linux_Containers_to_set_up_virtual_networks)
> <
https://www.nsnam.org/wiki/index.php/HOWTO_Use_Linux_Containers_to_set_up_virtual_networks)>".
> The linux containers and the ns-3 are executed in the Host machine.
> With this setup, having the ns-3 simulator ON, ping between the two
> linux containers are achieved. Now, I would like to connect the
> linux containers created in the Host machine from a physical LAN
> computer. The LAN computer can ping the Host machine but could not
> the linux containers that are inside the Host machine, which is due
> to the linux containers doesn't have visibility (IP visibility) to
> the physical LAN. Can anyone help in this regard.
>
> -- Gelli
>
> --
> 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
> <mailto:
ns-3-users+...@googlegroups.com>.
> To post to this group, send email to
ns-3-...@googlegroups.com
> <mailto:
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.