yes I used static ip.<br>I seted the static ip 10.0.0.2 in the config file.<br>It can't ping <a href="http://www.google.com">www.google.com</a><br><br>Today <br>I don't set the static ip?Will that use dhcp?<br>Now It can ping each other and ping <a href="http://www.google.com">www.google.com</a><br>
<br>In containers:<br>Then I traceroute the packages<br>I find a gateway.I think it's a dhcp and router<br> <br><br><div class="gmail_quote">2012/9/26 Fajar A. Nugraha <span dir="ltr"><<a href="mailto:list@fajar.net" target="_blank">list@fajar.net</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Please keep to/cc to the list<br>
<div class="im"><br>
On Tue, Sep 25, 2012 at 2:42 PM, ÐûÃúÒÕ <<a href="mailto:xuanmingyi@gmail.com">xuanmingyi@gmail.com</a>> wrote:<br>
> hi guys<br>
><br>
> I use veth mode now<br>
> container-left and container-right can ping each other<br>
><br>
> left ip is 10.0.0.2<br>
> right ip is 10.0.0.3<br>
><br>
<br>
</div>did you use static IP<br>
<br>
> host:<br>
> br0 10.0.2.15<br>
<br>
Did you know that if you use netmask /24, 10.0.0.x and 10.0.2.x is on<br>
different network?<br>
<div class="im"><br>
<br>
> eth0 0.0.0.0<br>
><br>
> and how to configure containers let container ping <a href="http://www.google.com" target="_blank">www.google.com</a>?<br>
<br>
</div>short version: if you don't know much about networking or bridge,<br>
better use the default lxcbr0 or virbr0 (whichever you have on your<br>
system) and use DHCP on the guest container.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Fajar<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<br>
><br>
><br>
> 2012/9/24 Fajar A. Nugraha <<a href="mailto:list@fajar.net">list@fajar.net</a>><br>
><br>
>> Why not just use veth + bridge, which is the default (at least the<br>
>> default on Ubuntu)?<br>
>><br>
>> --<br>
>> Fajar<br>
>><br>
>> On Mon, Sep 24, 2012 at 1:48 PM, ÐûÃúÒÕ <<a href="mailto:xuanmingyi@gmail.com">xuanmingyi@gmail.com</a>> wrote:<br>
>> > Hi guys<br>
>> > I have a host machine and want to create 3 containers on it.<br>
>> > Containers should can ping each other,but can't communicate with the<br>
>> > host.<br>
>> > All containers shoud surf the Internet.<br>
>> > Should I use macvlan bridge mode?And how to set the host's and<br>
>> > containers'<br>
>> > network environment<br>
>> ><br>
>> > the goal blow<br>
>> ><br>
>> ><br>
>> > My Host:<br>
>> > eth0 192.168.1.23 gateway 192.168.1.1 It connects to the Internet<br>
>> ><br>
>> > lxcbr0?? bridge? need it?<br>
>> ><br>
>> > Containers:<br>
>> > c1: 192.168.2.45 ? how to configure<br>
>> > c2: 192.168.2.46 ? how to configure<br>
>> > c3: 192.168.2.47 ? how to configure<br>
>> ><br>
><br>
><br>
><br>
><br>
> --<br>
> Ó£±¦±¦: <a href="http://www.xuanmingyi.com" target="_blank">http://www.xuanmingyi.com</a><br>
><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Ó£±¦±¦: <a href="http://www.xuanmingyi.com" target="_blank">http://www.xuanmingyi.com</a><br><br>