Re: hostapd in lxc

Ehud Kaldor <[email protected]>
Newsgroups gmane.org.user-groups.linux.svlug
Message-ID <CAL=Be0XFvR-mm0zBk1ZVYGfOO01VwEojJfN6uHfJAqtUpGcmJg@mail.gmail.com>
Sorry for the time lag.

I'm using Docker, so I'm not sure all will apply to lxc, but here goes:
I want to set up my home network (DHCP, DNS, gateway, file server etc.)
using containers. If for nothing else, than for the experience with
containers.

It works if the container is connected to the host's net directly
(--net=host), but I want the container to be its own network entity, with a
MAC and IP. That way, moving it between hosts is seamless.

It seems a macvlan network is the best option, but I have not tried it yet.
In fact, I tried it before libnetwork was released, so routing traffic to
the container on the host's network we hard. But it needed to, as DHCP
protocol is in effect before IP is up, so lower level protocols need to
routed in to the container, which was not simple.

These days, with Swarm and Docker network, it is probably simpler. Yet, I
am hunting for insights before I start breaking things apart again...

Ehud

On Wed, Dec 28, 2016, 00:20 Ivan Sergio Borgonovo <[email protected]>
wrote:

> On 12/28/2016 12:32 AM, Ehud Kaldor wrote:
> > Hi Ivan,
> > Do you also run DHCP in a container? If so, can you share how you did it?
>
> No, I don't. dnsmasqd runs on my router.
> I never configured a dhcp server (other than using the openwrt gui).
> Still I can not envision what extra problems you had to face.
> What went wrong? Which dhcp server?
>
> --
> Ivan Sergio Borgonovo
> http://www.webthatworks.it http://www.borgonovo.net
>
>
> _______________________________________________
> svlug mailing list
> [email protected]
> http://lists.svlug.org/lists/listinfo/svlug
>

_______________________________________________
svlug mailing list
[email protected]
http://lists.svlug.org/lists/listinfo/svlug
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.