<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<div>Goal:: I want to have my containers assigned an externally accessible static IP address.  I want the host to also have a static IP on the same subnet as the containers.</div>
<div><br>
</div>
<div>Result (so far):: Can only ping containers from host and vice-versa; I cannot ping external to the host from container and cannot ping the static IP assigned to the containers from external to the host.</div>
<div><br>
</div>
<div>Question for the group::  What am I missing?  </div>
<div>This seems to be a common scenario I've seen covered by many web sites but it just doesn't seem to work on the two systems I've tried this on (Ubuntu 13.04 with lxc-ubuntu template & MV CGE with custom rootfs).</div>
<div><br>
</div>
<div>My Setup::</div>
<div>HOST - assigned 172.27.62.121/25, 172.27.62.1 (gw)</div>
<div>___________________________________________</div>
<div>brctl addbr br0</div>
<div>ifconfig br0 172.27.62.121 netmask 255.255.255.128 promisc up</div>
<div>brctl setfd br0 0</div>
<div>brctl addif br0 eth0</div>
<div>ifconfig eth0 0.0.0.0 up</div>
<div>route add default gw 172.27.62.1 br0</div>
<div>
<div>echo 1 > /proc/sys/net/ipv4/ip_forward</div>
<div>
<div>echo 1 > /proc/sys/net/ipv4/conf/all/proxy_arp</div>
</div>
<div><br>
</div>
<div>iptables has no rules in standard tables as well as nat table.</div>
<div><br>
</div>
<div>
<div>bash-3.2# route -n</div>
<div>Kernel IP routing table</div>
<div>Destination     Gateway         Genmask         Flags Metric Ref    Use Iface</div>
<div>172.27.62.0     0.0.0.0         255.255.255.128 U     0      0        0 br0</div>
<div>0.0.0.0         172.27.62.1     0.0.0.0         UG    0      0        0 br0</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div>GUEST - assigned 172.27.62.122/25, 172.27.62.121 (gw)</div>
<div>___________________________________________</div>
</div>
<div>--| lxc.conf (network portion) |--</div>
<div>
<div>lxc.network.type = veth</div>
<div>lxc.network.link = br0</div>
<div>lxc.network.flags = up</div>
<div>lxc.network.ipv4 = 172.27.62.122/25</div>
<div>lxc.network.name = eth0</div>
</div>
<div><br>
</div>
<div>--| etc/network/interfaces |--</div>
<div>
<div>auto lo</div>
<div>iface lo inet loopback</div>
<div><br>
</div>
<div>auto eth0</div>
<div>iface eth0 inet static</div>
<div>address 172.27.62.122</div>
<div>netmask 255.255.255.128</div>
<div>gateway 172.27.62.121</div>
</div>
<div><br>
</div>
<div>route add default gw 172.27.62.121 eth0</div>
<div><br>
</div>
<div><br>
</div>
<div>Thanks for taking reading up to this point!!</div>
<div><br>
</div>
</div>
</body>
</html>