<div dir="ltr">Hi all,<div><br></div><div><div>I have an EC2 instance running inside a VPC. I need to run a service inside a LXC container started in that instance and to make the service available to the outside world.</div>
<div><br></div><div>I have therefore created a bridge (`br0`) and used the following `/etc/network/interfaces` file to get the IP address provided by EC2 (`10.0.3.1`) associated to the bridge:</div><div><br></div><div> auto lo</div>
<div> iface lo inet loopback</div><div> </div><div> auto eth0</div><div> iface eth0 inet dhcp</div><div> </div><div> auto eth1</div><div> iface eth1 inet manual</div><div> </div><div> auto br0</div>
<div> iface br0 inet dhcp</div><div> netmask 255.255.0.0</div><div> bridge_ports eth1</div><div> bridge_stp off</div><div> bridge_maxwait 0</div><div> post-up brctl setfd br0 0</div><div><br></div>
<div>This is what I get from `ifconfig`:</div><div><br></div><div> br0 Link encap:Ethernet HWaddr 16:2b:ae:07:29:82 </div><div> inet addr:10.0.3.1 Bcast:10.0.255.255 Mask:255.255.0.0</div><div> inet6 addr: fe80::142b:aeff:fe07:2982/64 Scope:Link</div>
<div> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1</div><div> RX packets:11 errors:0 dropped:0 overruns:0 frame:0</div><div> TX packets:9 errors:0 dropped:0 overruns:0 carrier:0</div>
<div> collisions:0 txqueuelen:0 </div><div> RX bytes:1026 (1.0 KB) TX bytes:1238 (1.2 KB)</div><div> </div><div> eth0 Link encap:Ethernet HWaddr 16:2b:ae:0a:db:b6 </div><div> inet addr:10.0.67.62 Bcast:10.0.255.255 Mask:255.255.0.0</div>
<div> inet6 addr: fe80::142b:aeff:fe0a:dbb6/64 Scope:Link</div><div> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1</div><div> RX packets:229 errors:0 dropped:0 overruns:0 frame:0</div>
<div> TX packets:217 errors:0 dropped:0 overruns:0 carrier:0</div><div> collisions:0 txqueuelen:1000 </div><div> RX bytes:25889 (25.8 KB) TX bytes:23330 (23.3 KB)</div><div> Interrupt:27 </div>
<div> </div><div> eth1 Link encap:Ethernet HWaddr 16:2b:ae:07:29:82 </div><div> inet6 addr: fe80::142b:aeff:fe07:2982/64 Scope:Link</div><div> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1</div>
<div> RX packets:14 errors:0 dropped:0 overruns:0 frame:0</div><div> TX packets:17 errors:0 dropped:0 overruns:0 carrier:0</div><div> collisions:0 txqueuelen:1000 </div><div> RX bytes:1222 (1.2 KB) TX bytes:1798 (1.7 KB)</div>
<div> Interrupt:28 </div><div> </div><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:16436 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><div><br></div><div>The problem here is that I cannot reach the LXC container, which has IP address `10.0.3.2`:</div><div><br></div><div> user@ip-10-0-67-62:~$ ping 10.0.3.2</div>
<div> PING 10.0.3.2 (10.0.3.2) 56(84) bytes of data.</div><div> From 10.0.67.62 icmp_seq=1 Destination Host Unreachable</div><div> ...</div><div><br></div><div>Any hint or suggestion on how to debug this would be much appreciated.</div>
<div><br></div>-- <br>Roberto<br><br>
</div></div>