<div dir="auto"><p style="margin:0px 0px 0.8em;padding:0px;border:0px;font-size:15px;line-height:inherit;font-family:"helvetica neue",helvetica,arial,sans-serif;vertical-align:baseline;color:rgb(12,13,14);background-color:rgb(255,255,255)">I have a host ubuntu with dhcp and I would like to have a ubuntu guest container with ip fixed. I'm trying to set up the /etc/network/interface with these conf:</p><pre style="margin-top:0px;margin-bottom:0.8em;padding:10px;border:0px;font-size:13px;line-height:inherit;font-family:consolas,menlo,monaco,"lucida console","liberation mono","dejavu sans mono","bitstream vera sans mono","courier new",monospace;vertical-align:baseline;word-wrap:normal;background-color:rgb(240,240,240);max-height:300px;color:rgb(12,13,14)"><code style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-size:13px;line-height:inherit;font-family:consolas,menlo,monaco,"lucida console","liberation mono","dejavu sans mono","bitstream vera sans mono","courier new",monospace;vertical-align:baseline;max-height:300px"># The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.1.51
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 8.8.8.8
</code></pre><p style="margin:0px 0px 0.8em;padding:0px;border:0px;font-size:15px;line-height:inherit;font-family:"helvetica neue",helvetica,arial,sans-serif;vertical-align:baseline;color:rgb(12,13,14);background-color:rgb(255,255,255)">Also, I've modified the config file of the ubuntu lxc:</p><pre style="margin-top:0px;margin-bottom:0.8em;padding:10px;border:0px;font-size:13px;line-height:inherit;font-family:consolas,menlo,monaco,"lucida console","liberation mono","dejavu sans mono","bitstream vera sans mono","courier new",monospace;vertical-align:baseline;word-wrap:normal;background-color:rgb(240,240,240);max-height:300px;color:rgb(12,13,14)"><code style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-size:13px;line-height:inherit;font-family:consolas,menlo,monaco,"lucida console","liberation mono","dejavu sans mono","bitstream vera sans mono","courier new",monospace;vertical-align:baseline;max-height:300px">root@clusterb1:/var/lib/lxc/clusterb2# more config
lxc.include = /usr/share/lxc/config/ubuntu.common.conf
lxc.rootfs = /var/lib/lxc/clusterb2/rootfs
lxc.mount = /var/lib/lxc/clusterb2/fstab
lxc.utsname = clusterb2
lxc.arch = amd64
lxc.network.type = veth
lxc.network.flags = up
lxc.network.link = lxcbr0
lxc.network.hwaddr = 00:16:3e:90:15:39
lxc.network.ipv4 = <a href="http://192.168.1.223/24">192.168.1.223/24</a>
lxc.network.ipv4.gateway = 192.168.1.1
lxc.start.auto = 0
lxc.loglevel = 0
</code></pre><p style="margin:0px 0px 0.8em;padding:0px;border:0px;font-size:15px;line-height:inherit;font-family:"helvetica neue",helvetica,arial,sans-serif;vertical-align:baseline;color:rgb(12,13,14);background-color:rgb(255,255,255)">The problem is when I connect to guest I have ip but I can't do ping to other ip's like host ip. I says me destitation unreachable</p><pre style="margin-top:0px;margin-bottom:0.8em;padding:10px;border:0px;font-size:13px;line-height:inherit;font-family:consolas,menlo,monaco,"lucida console","liberation mono","dejavu sans mono","bitstream vera sans mono","courier new",monospace;vertical-align:baseline;word-wrap:normal;background-color:rgb(240,240,240);max-height:300px;color:rgb(12,13,14)"><code style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-size:13px;line-height:inherit;font-family:consolas,menlo,monaco,"lucida console","liberation mono","dejavu sans mono","bitstream vera sans mono","courier new",monospace;vertical-align:baseline;max-height:300px">ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
>From 192.168.1.223 icmp_seq=1 Destination Host Unreachable
>From 192.168.1.223 icmp_seq=2 Destination Host Unreachable
>From 192.168.1.223 icmp_seq=3 Destination Host Unreachable
</code></pre><p style="margin:0px;padding:0px;border:0px;font-size:15px;line-height:inherit;font-family:"helvetica neue",helvetica,arial,sans-serif;vertical-align:baseline;color:rgb(12,13,14);background-color:rgb(255,255,255)">Please any help? Thanks!</p></div>