<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #000000"><div>Hi,</div><div><br data-mce-bogus="1"></div><div>can you provide from  the host and from the container :</div><div><br data-mce-bogus="1"></div><div>route -n <br><br></div><div>can you provide from the container  :</div><div><br data-mce-bogus="1"></div><div>arp -n </div><div><br data-mce-bogus="1"></div><div>can you also give the bridge configuration from /etc/network/interfaces</div><div><br></div><div>LXC configuration looks good to me . <br>I would try to set the mac address manually in the configuration file like : </div><div><br data-mce-bogus="1"></div><div>lxc.network.hwaddr = <span style="color: #000000; font-family: arial, helvetica, sans-serif; font-size: 13.3333330154419px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: #ffffff;" data-mce-style="color: #000000; font-family: arial, helvetica, sans-serif; font-size: 13.3333330154419px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: #ffffff;">fe:fa:9c:21:8d:0b</span></div><div><br></div><div data-marker="__SIG_PRE__"><div><span style="color: rgb(51, 51, 51); font-family: times new roman,new york,times,serif;" data-mce-style="color: #333333; font-family: times new roman,new york,times,serif;">Cordialement,</span><span style="color: rgb(51, 51, 51); font-family: times new roman,new york,times,serif; font-weight: bold;" data-mce-style="color: #333333; font-family: times new roman,new york,times,serif; font-weight: bold;"><span style="color: rgb(51, 51, 51); font-family: times new roman,new york,times,serif; font-weight: bold;" data-mce-style="color: #333333; font-family: times new roman,new york,times,serif; font-weight: bold;"><br></span></span></div><div><br></div><div><span style="color: rgb(51, 51, 51); font-family: times new roman,new york,times,serif; font-weight: bold;" data-mce-style="color: #333333; font-family: times new roman,new york,times,serif; font-weight: bold;">Benoît Georgelin -</span><span style="color: rgb(51, 51, 51); font-family: times new roman,new york,times,serif; font-weight: bold;" data-mce-style="color: #333333; font-family: times new roman,new york,times,serif; font-weight: bold;"><br></span><span data-mce-style="color: #c0c0c0; font-weight: bold; font-size: xx-small;" style="color: #c0c0c0; font-weight: bold; font-size: xx-small;" size="1"><span style="font-family: times new roman,new york,times,serif; font-style: italic;" data-mce-style="font-family: times new roman,new york,times,serif; font-style: italic;">Afin de contribuer au respect de l'environnement, merci de n'imprimer ce mail qu'en cas de nécessité</span></span><span style="color: rgb(51, 51, 51); font-family: times new roman,new york,times,serif; font-weight: bold;" data-mce-style="color: #333333; font-family: times new roman,new york,times,serif; font-weight: bold;"><br></span></div></div><br><hr id="zwchr" data-marker="__DIVIDER__"><div data-marker="__HEADERS__"><b>De: </b>"Joshua Schaeffer" <jschaeffer0922@gmail.com><br><b>À: </b>"lxc-users" <lxc-users@lists.linuxcontainers.org><br><b>Envoyé: </b>Vendredi 23 Octobre 2015 13:40:35<br><b>Objet: </b>[lxc-users] Container doesn't connect to bridge<br></div><br><div data-marker="__QUOTED_TEXT__"><div dir="ltr"><div>I have a lxc container on version 1.1.2 on Debian that cannot connect to</div><div>the network. My host has br0 setup and I can access any machine on the</div><div>network and internet from the host:</div><br><div>This is the host:</div><div>jschaeffer@prvlxc01:~$ sudo ifconfig</div><div>[sudo] password for jschaeffer: </div><div>br0       Link encap:Ethernet  HWaddr 00:50:56:be:13:94  </div><div>          inet addr:192.168.54.65  Bcast:192.168.54.127</div><div>Mask:255.255.255.128</div><div>          inet6 addr: fe80::250:56ff:febe:1394/64 Scope:Link</div><div>          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1</div><div>          RX packets:9891 errors:0 dropped:0 overruns:0 frame:0</div><div>          TX packets:4537 errors:0 dropped:0 overruns:0 carrier:0</div><div>          collisions:0 txqueuelen:0 </div><div>          RX bytes:4078480 (3.8 MiB)  TX bytes:521427 (509.2 KiB)</div><br><div>eth0      Link encap:Ethernet  HWaddr 00:50:56:be:13:94  </div><div>          inet6 addr: fe80::250:56ff:febe:1394/64 Scope:Link</div><div>          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1</div><div>          RX packets:10872 errors:0 dropped:0 overruns:0 frame:0</div><div>          TX packets:5085 errors:0 dropped:0 overruns:0 carrier:0</div><div>          collisions:0 txqueuelen:1000 </div><div>          RX bytes:4159749 (3.9 MiB)  TX bytes:575863 (562.3 KiB)</div><br><div>lo        Link encap:Local Loopback  </div><div>          inet addr:127.0.0.1  Mask:255.0.0.0</div><div>          inet6 addr: ::1/128 Scope:Host</div><div>          UP LOOPBACK RUNNING  MTU:65536  Metric:1</div><div>          RX packets:0 errors:0 dropped:0 overruns:0 frame:0</div><div>          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0</div><div>          collisions:0 txqueuelen:0 </div><div>          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)</div><br><div>vethAGP5QO Link encap:Ethernet  HWaddr fe:fa:9c:21:8d:0b  </div><div>          inet6 addr: fe80::fcfa:9cff:fe21:8d0b/64 Scope:Link</div><div>          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1</div><div>          RX packets:536 errors:0 dropped:0 overruns:0 frame:0</div><div>          TX packets:3013 errors:0 dropped:0 overruns:0 carrier:0</div><div>          collisions:0 txqueuelen:1000 </div><div>          RX bytes:49648 (48.4 KiB)  TX bytes:332247 (324.4 KiB)</div><br><div>From the container I cannot even reach the gateway:</div><br><div>This is the container:</div><div>root@thinkweb:/# ifconfig</div><div>eth0      Link encap:Ethernet  HWaddr aa:0a:f7:64:12:db  </div><div>          inet addr:192.168.54.110  Bcast:192.168.54.127</div><div>Mask:255.255.255.128</div><div>          inet6 addr: fe80::a80a:f7ff:fe64:12db/64 Scope:Link</div><div>          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1</div><div>          RX packets:3194 errors:0 dropped:0 overruns:0 frame:0</div><div>          TX packets:536 errors:0 dropped:0 overruns:0 carrier:0</div><div>          collisions:0 txqueuelen:1000 </div><div>          RX bytes:352314 (344.0 KiB)  TX bytes:49648 (48.4 KiB)</div><br><div>lo        Link encap:Local Loopback  </div><div>          inet addr:127.0.0.1  Mask:255.0.0.0</div><div>          inet6 addr: ::1/128 Scope:Host</div><div>          UP LOOPBACK RUNNING  MTU:65536  Metric:1</div><div>          RX packets:4 errors:0 dropped:0 overruns:0 frame:0</div><div>          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0</div><div>          collisions:0 txqueuelen:0 </div><div>          RX bytes:336 (336.0 B)  TX bytes:336 (336.0 B)</div><br><div>root@thinkweb:/# ping 192.168.54.1</div><div>PING 192.168.54.1 (192.168.54.1) 56(84) bytes of data.</div><div>^C</div><div>--- 192.168.54.1 ping statistics ---</div><div>7 packets transmitted, 0 received, 100% packet loss, time 6049ms</div><br><div>jschaeffer@prvlxc01:~$ cat /var/lib/lxc/thinkweb/config</div><div>cat: /var/lib/lxc/thinkweb/config: Permission denied</div><div>jschaeffer@prvlxc01:~$ sudo cat /var/lib/lxc/thinkweb/config</div><div># Template used to create this</div><div>container: /usr/share/lxc/templates/lxc-download</div><div># Parameters passed to the template: -d debian -r jessie -a amd64</div><div># For additional config options, please look at lxc.container.conf(5)</div><br><div># Distribution configuration</div><div>lxc.include = /usr/share/lxc/config/debian.common.conf</div><div>lxc.arch = x86_64</div><br><div># Container specific configuration</div><div>lxc.rootfs = /var/lib/lxc/thinkweb/rootfs</div><div>lxc.utsname = thinkweb</div><div>lxc.tty                                 = 4</div><div>lxc.pts                                 = 1024</div><div>lxc.cap.drop                            = sys_module mac_admin</div><div>mac_override sys_time</div><div># When using LXC with apparmor, uncomment the next line to run</div><div>unconfined:</div><div>#lxc.aa_profile                         = unconfined</div><br><div># Network configuration</div><div>lxc.network.type                        = veth</div><div>lxc.network.flags                       = up</div><div>lxc.network.link                        = br0</div><div>lxc.network.ipv4                       = <a href="http://192.168.54.110/25" target="_blank">192.168.54.110/25</a></div><div><a href="http://lxc.network.name" target="_blank">lxc.network.name</a>                        = eth0</div><br><div>## Limits</div><div>lxc.cgroup.cpu.shares                   = 1024</div><div>lxc.cgroup.cpuset.cpus                  = 0,1,2,3</div><div>lxc.cgroup.memory.limit_in_bytes        = 2G</div><div>#lxc.cgroup.memory.memsw.limit_in_bytes = 3G</div><br><br><div>Thanks,</div><div>Joshua</div></div>
<br>_______________________________________________<br>lxc-users mailing list<br>lxc-users@lists.linuxcontainers.org<br>http://lists.linuxcontainers.org/listinfo/lxc-users<br></div></div></body></html>