Skip to main content

Thread: make 2 lxc communicate through multiple virtual bridges


hi all.

need create 2 lxc s connected 2 different virtual briodges ( using "brctl") make them communicate through virtual network. done creation of bridges , connections ( using "ip link add" ) , have connected them. able develop custom application , run instance of attached each of bridges(using sysfs), , have traffic running through links.

issue/problem-1:
when comes communication between 2 lxc s ( lxc-1 ---- br1 ------ br2 --- lxc2 ) see communication not happening through link(s) created, , not through interface created after lxc-start. see traffic going through "any" , loop back(lo) seen through wireshark.

"route" displayes right interfaces ( in both container)

destination gateway genmask flags metric ref use iface
default www.routerlogin 0.0.0.0 ug 0 0 0 wlan0
10.0.3.0 * 255.255.255.0 u 0 0 0 lxcbr0
10.4.0.0 * 255.255.255.0 u 0 0 0 vethn3amsg <<<<< lxc-2--br2
10.4.0.0 * 255.255.255.0 u 0 0 0 vethunvryf <<<<<<lxc-1--br1
link-local * 255.255.0.0 u 1000 0 0 wlan0
192.168.0.0 * 255.255.255.0 u 2 0 0 wlan0
192.168.122.0 * 255.255.255.0 u 0 0 0 virbr0

==
br1
<edited>

br1-br2-l0 (1)
port id 8001 state forwarding
designated root 8000.560f511095d7 path cost 2
designated bridge 8000.560f511095d7 message age timer 0.00
designated port 8001 forward delay timer 0.00
designated cost 0 hold timer 0.55
flags

vethunvryf (2)
port id 8002 state forwarding
designated root 8000.560f511095d7 path cost 2
designated bridge 8000.560f511095d7 message age timer 0.00
designated port 8002 forward delay timer 0.00
designated cost 0 hold timer 0.54
flags

gvenkatsm@gvenkatsm-300e4z-300e5z-300e7z:~$ brctl showstp br2
br2
bridge id 8000.062575c67fe8
<edited>

br1-br2-l1 (1)
port id 8001 state forwarding
designated root 8000.062575c67fe8 path cost 2
designated bridge 8000.062575c67fe8 message age timer 0.00
designated port 8001 forward delay timer 0.00
designated cost 0 hold timer 0.00
flags

vethn3amsg (2)
port id 8002 state forwarding
designated root 8000.062575c67fe8 path cost 2
designated bridge 8000.062575c67fe8 message age timer 0.00
designated port 8002 forward delay timer 0.00
designated cost 0 hold timer 0.00
flags

==

need similar not have setup in:
http://lxc.sourceforge.net/index.php...configuration/


issue/problem-2
above link uses name-spaces. command ns_exec ubuntu. closest see lxc-unshare, unfortunately not documentation on except saying testing tool. or nsexec? not sure if use namespaces above problem.

lot , regards,
gvenkatsm



Forum The Ubuntu Forum Community Ubuntu Specialised Support Virtualisation [ubuntu] make 2 lxc communicate through multiple virtual bridges


Ubuntu

Comments

Popular posts from this blog

Thread: Can not create raid array: mdadm: no raid-devices specified.

Thread: HOW TO: Package and theme GTK+ / Gtkmm apps in Linux for Windows

Thread: Twinview issues