[Lxc-users] Lxc wifi - removable physical network adapter

Dejan Babić babic060 at gmail.com
Tue Nov 5 23:51:58 UTC 2013


Hi,

I am trying to add two physical network adapters in one container, one
wired, always present, and one wireless, removable as USB dongle to some
embedded device with linux.

I have done it successfully and it works when the dongle is inserted, but
if containers are started with the dongle unplugged, creating network will
fail because of if_nametoindex (eth1 is not present) in create_network
function.

Does anyone have any idea how to configure network adapter that is not
present at initial time, and to work when usb dongle is plugged in? Is it
possible to link container adapter to some dummy interface and to relink it
to physical adapter in runtime when it becomes available (when the dongle
is inserted)?

Thanks in advance,
Kind regards.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20131106/cb87c6af/attachment.html>


More information about the lxc-users mailing list