<div dir="ltr"><div><div><div>Hi Ferenc,<br><br></div>Thanks for answer, it helped me. <br><span id="result_box" class="" lang="en"><span class="">Mistake was</span> <span class="">that I</span> <span class="">forgot</span> <span class="">to put netmask in one guest /etc/network/interface</span></span>.<br>
<br></div>Regards,<br></div>Jelena<br><div><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Aug 26, 2013 at 2:47 PM, Ferenc Holzhauser <span dir="ltr"><<a href="mailto:ferenc.holzhauser@gmail.com" target="_blank">ferenc.holzhauser@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Jelena,<div><br></div><div>I'm using similar setup with 4 bridges (actually 5 including the lxcbr0 that lxc creates for DHCP/NAT) on Ubuntu with no problems. Could it be that you are accidentally reusing MAC in the lxc guest config of the new guests?</div>

<div><br></div><div>Example pieces of my configuration below. I hope it helps. <br></div><div><br></div><div>host /etc/network/interfaces</div><div>...</div><div><div>auto br2</div><div>iface br2 inet static</div><div>  address 10.2.0.1</div>

<div>  netmask 255.255.255.0</div><div>  network 10.2.0.0</div><div>  pre-up brctl addbr br2</div><div>  post-down brctl delbr br2 </div></div><div>...</div><div>guest config</div><div>...</div><div><div>lxc.network.type = veth</div>

<div>lxc.network.link = br2</div><div><a href="http://lxc.network.name" target="_blank">lxc.network.name</a> = eth2</div><div>lxc.network.flags = up</div></div><div>...</div><div>guest /etc/network/interfaces<br></div><div>
...</div><div>
<div>auto eth2</div><div>iface eth2 inet static</div><div>  address 10.2.0.10</div><div>  netmask 255.255.255.0</div><div>  network 10.2.0.0</div></div><div>...</div><div>another guest <br></div><div>...</div><div><div>auto eth2</div>

<div>iface eth2 inet static</div><div>  address 10.2.0.11</div><div>  netmask 255.255.255.0</div><div>  network 10.2.0.0</div></div><div>...</div><div><br></div><div><br></div><div>BR,</div><div>Ferenc</div></div><div class="gmail_extra">

<br><br><div class="gmail_quote"><div><div class="h5">On 26 August 2013 13:24, Jelena Seovic <span dir="ltr"><<a href="mailto:jelena.seovic@gmail.com" target="_blank">jelena.seovic@gmail.com</a>></span> wrote:<br></div>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
<div dir="ltr"><div><div><div><div><div>Hi all,<br><br></div>I have problem with connecting virtual interfaces in containers on bridges. I wont to create for example two virtual interfaces in container and each of them to connect to different bridge. On that way I wont connect one container with other containers and to ping one form another (like creating small network container1-bridge1-container2-bridge2-container3...).<br>


<br></div><div>First I started with two containers (container1-bridge-container2). I have created one virtual interfaces in each container in config file (/var/lib/lxc/container1/config and /var/lib/lxc/container2/config). Beside that i created bridge and i could ping one interface from another.<br>


<br></div><div>Then I wonted to connect one more container (container1-bridge1-container2-bridge2-container3). Created one more interface in config file in container2, and one in container3. Also I created one more bridge. But I couldn't ping interface in container2 from container3 <span lang="en"><span>and vice versa. Still I was able to ping container1 from container2.</span></span>   </div>


<br></div><span lang="en"><span>I checked</span> <span>every config file</span> <span>several</span> <span>times, bridges too but i couldn't find problem. </span></span><br>
<span lang="en"><span><span lang="en"><span>I'm sure</span> <span>that I am making mistake somewhere</span>, but I don't know where. Can anyone help me?</span><br>
<br></span></span></div><span lang="en"><span>Regards,<br></span></span></div><span lang="en"><span>Jelena<br></span></span></div>
<br></div></div>------------------------------------------------------------------------------<br>
Introducing Performance Central, a new site from SourceForge and<br>
AppDynamics. Performance Central is your source for news, insights,<br>
analysis and resources for efficient Application Performance Management.<br>
Visit us today!<br>
<a href="http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk" target="_blank">http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk</a><br>_______________________________________________<br>


Lxc-users mailing list<br>
<a href="mailto:Lxc-users@lists.sourceforge.net" target="_blank">Lxc-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/lxc-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/lxc-users</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>