[Lxc-users] how to use routing with LXC?

Nirmal Guhan vavatutu at gmail.com
Wed Jan 12 00:06:40 UTC 2011


On Fri, Jan 7, 2011 at 5:39 PM, Mike <debian at good-with-numbers.com> wrote:
> The instructions that I've seen for LXC suggest creating a bridge in the
> host, placing its name in lxc.network.link.
>
> On a diskless system I have eth0 & eth1, and create the bridge on eth1.
> I can't put eth0 in a bridge, because it's the port for the NFS root.
> But when I want traffic to go from the container's port to (the host's)
> eth0, I don't see how to direct that--I don't think that's even
> possible.  It instead goes out eth1 to the next hop, where the eth0
> address isn't even routeable.
>
> So it seems that a router configuration for LXC is what I want.  I've
> done this in Xen, using their vif-route script.  How would that work
> with LXC?
>
> ------------------------------------------------------------------------------
> Gaining the trust of online customers is vital for the success of any company
> that requires sensitive data to be transmitted over the Web.   Learn how to
> best implement a security strategy that keeps consumers' information secure
> and instills the confidence they need to proceed with transactions.
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> Lxc-users mailing list
> Lxc-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lxc-users
>

Did you try macvlan instead of veth?

~Nirmal




More information about the lxc-users mailing list