[lxc-users] LXC networking stop working between containers and real network
Ruzsinszky Attila
ruzsinszky.attila at gmail.com
Wed Jul 20 06:42:07 UTC 2016
Hi Alex,
Thanks for your information!
I'll test soon what you wrote.
I did a workaround. I forgot the lxcbr0 bridge and my LXC containers were
"connected" directly into my vbr0 in OVS. It was almost perfect without any
scripting except I has to tagging those interface and I did it by hand
(tag=myVLANid).
It is working perfectly.
Is that a bug or a feature with Ubuntu's bridge? Or kernel problem? Under
Fedora 23 everything is working but I think more clear the direct connected
containers than double bridge (lxcbr0 under vbr0). I think theoretically
both of them have to work so I don't understand exactly why not.
Here is my LXC container's config:
# Network configuration
lxc.network.type = veth
lxc.network.flags = up
#lxc.network.link = lxcbr0
lxc.network.link = vbr0
lxc.network.veth.pair=veth-lub4
#lxc.network.hwaddr = 00:16:3e:9f:1f:b8
OVS:
Bridge "vbr0"
Port "vbr0"
Interface "vbr0"
type: internal
Port "mgmt0"
tag: 999
Interface "mgmt0"
type: internal
Port "veth-lub4"
tag: 800
Interface "veth-lub4"
Port "gre0"
Interface "gre0"
type: gre
options: {remote_ip="192.168.52.141"}
Port "mgmtlxc0"
tag: 800
Interface "mgmtlxc0"
type: internal
Port "veth-lub5"
tag: 800
Interface "veth-lub5"
Port "veth-lub6"
tag: 800
Interface "veth-lub6"
ovs_version: "2.0.2"
On Fedora 23 the normal config:
# Network configuration
lxc.network.type = veth
lxc.network.flags = up
lxc.network.link = lxcbr0
lxc.network.hwaddr = 00:16:3e:9f:1f:b8
Bridge "vbr0"
Port "lxcbr0"
tag: 800
Interface "lxcbr0"
Port "mgmtlxc0"
tag: 800
Interface "mgmtlxc0"
type: internal
Port "vsar2_111"
tag: 100
Interface "vsar2_111"
Port "vlan10"
tag: 10
Interface "vlan10"
type: internal
Port "vsar2_a1"
tag: 999
Interface "vsar2_a1"
Port "mgmt0"
tag: 999
Interface "mgmt0"
type: internal
Port "vsar3_111"
tag: 100
Interface "vsar3_111"
Port "vbr0"
Interface "vbr0"
type: internal
Port "vsar3_a1"
tag: 999
Interface "vsar3_a1"
Port "gre0"
Interface "gre0"
type: gre
options: {remote_ip="192.168.52.141"}
Port "vx0"
Interface "vx0"
type: vxlan
options: {remote_ip="192.168.52.141"}
TIA,
Ruzsi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20160720/57df7f9c/attachment-0001.html>
More information about the lxc-users
mailing list