<p dir="ltr"><br>
On Nov 24, 2015 5:46 AM, "Divya Vyas" <<a href="mailto:edivya.vyas@gmail.com">edivya.vyas@gmail.com</a>> wrote:<br>
><br>
> Hi,<br>
><br>
> I am creating a lxc container with this conf file<br>
><br>
><br>
> lxc.rootfs = /home/root/rootfs<br>
><br>
> lxc.devttydir = lxc<br>
> lxc.tty = 4<br>
> lxc.pts = 1024<br>
><br>
> #lxc.network.type = veth<br>
> lxc.network.flags = up<br>
> # Bridge net on the host<br>
> lxc.network.link = lxcbr0<br>
> # link name on the guest<br>
> <a href="http://lxc.network.name">lxc.network.name</a> = eth0<br>
> lxc.network.mtu = 1500<br>
><br>
><br>
> Host I have a eth0 and wlan0 interfaces but when I boot container I cannot see wlan0 interface. When I try to up the wlan0 on container , ifconfig says no such device.<br>
><br>
> How can I see wlan0 interface on container?<br>
></p>
<p dir="ltr">Let me guess you only see eth0 inside your container, but you can reach the LAN. <br>
That's because your containers are attached to lxcbr0, and you are exiting throug a NAT which it masquerades and forwards all packets to the wlan0 nic on the host and then to the rest of the cyber world.<br>
Please refer to man lxc.container.conf, iptables and bridge documentation[1] for more iformation.</p>
<p dir="ltr">[1] <a href="http://www.linuxfoundation.org/collaborate/workgroups/networking/bridge">http://www.linuxfoundation.org/collaborate/workgroups/networking/bridge</a><br></p>
<p dir="ltr">> I followed this blog as well but no success<br>
><br>
> <a href="https://s3hh.wordpress.com/2011/05/17/lxc-containers-on-a-host-with-wireless/">https://s3hh.wordpress.com/2011/05/17/lxc-containers-on-a-host-with-wireless/</a><br>
><br>
> Thanks,<br>
><br>
> _______________________________________________<br>
> lxc-users mailing list<br>
> <a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>
> <a href="http://lists.linuxcontainers.org/listinfo/lxc-users">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br>
</p>