[lxc-users] Fun with lxc.network.type=phys

Fajar A. Nugraha list at fajar.net
Wed Jan 21 10:27:29 UTC 2015


On Wed, Jan 21, 2015 at 3:31 PM, ScrumpyJack <scrumpyjack at me.com> wrote:

> On Mon, 19 Jan 2015, ScrumpyJack wrote:
>
> > I'd like to connect a physical interface from a host to a LXC container
> > guest like so:
> >
> > lxc.network.type=phys
> >
> > And then assign a routable IP/32 address to the LXC container for it to
> > "just work".
> >
> > The problem is that I don't have a spare "real" physical interface, so on
> > the host i create a "virtual" interface
> >
> >  ip link add link eth0 mac0 type macvlan
>




> hi again. I'm wondering if my setup is so silly that all as ignoring it :)
>


It is, to be frank. lxc already supports macvlan, so there's no need to
create it manually and use phys.

What is it that you're trying to achieve? If it's "just because I want to",
then good luck.

If it's "I want to to have /32 in the container", then there are other ways
to do that. I deploy just that with veth and bridge.

-- 
Fajar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20150121/9b8431e1/attachment.html>


More information about the lxc-users mailing list