<p dir="ltr">This is mostly a suggestion. Not a correct way to do things. I had to add an ipv6 route to the interface so what I did was add a system init script that depended on lxc-net already running then made its modifications. Maybe that would work for you?</p>
<div class="gmail_quote">On Oct 2, 2015 4:47 PM, "Nicholas J Ingrassellino" <<a href="mailto:nick@lifebloodnetworks.com">nick@lifebloodnetworks.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Thanks for the suggestion.<br>
    <br>
    Changing /etc/default/lxc-net allows me to add the host to my local
    network (I can SSH in now). However this method does not allow me to
    set a gateway nor DNS servers. If I could control this from
    /etc/network/interfaces (like I have in the past, still not sure why
    it stopped working) this would be so much simpler.<br>
    <br>
    Without gateway and DNS I can not get out to the Internet on this
    host.<br>
    <div><br>
      <p style="font-size:1em"><a style="text-decoration:none;font-weight:bold" href="mailto:nick@lifebloodnetworks.com" target="_blank">Nicholas
          J Ingrassellino</a><br>
        <a style="text-decoration:none" href="http://www.lifebloodnetworks.com/" target="_blank">LifebloodNetworks.com</a></p>
      <br>
    </div>
    <div>On 10/02/2015 04:09 PM, Stéphane Graber
      wrote:<br>
    </div>
    <blockquote type="cite">
      <pre>Sounds like you should be configuring /etc/default/lxc-net

On Fri, Oct 02, 2015 at 03:03:35PM -0400, Nicholas J Ingrassellino wrote:
</pre>
      <blockquote type="cite">
        <pre>I have a fresh install of Ubuntu 14.04.3. On it (from the
/ubuntu-lxc/stable/ PPA) I have installed LXC. In my
//etc/network/interfaces/ I have setup:

   /auto lo/
   /iface lo inet loopback/

   /auto em1/
   /iface em1 inet manual/

   /auto lxcbr0/
   /iface lxcbr0 inet static/
   /    address <a href="http://10.4.0.10/" target="_blank">10.4.0.10/</a>
   /    netmask <a href="http://255.255.255.0/" target="_blank">255.255.255.0/</a>
   /    gateway <a href="http://10.4.0.1/" target="_blank">10.4.0.1/</a>
   /    dns-nameservers <a href="http://10.4.0.1/" target="_blank">10.4.0.1/</a>
   /    bridge_ports em1/


/lxcbr0/ shows up in /ifconfig/ however it always has the IP of /<a href="http://10.0.3.1/" target="_blank">10.0.3.1/</a>.
This happens despite the fact I have configured a static IP (above).

Not sure where to turn from here. I am following my own tutorial
<a href="http://blog.lifebloodnetworks.com/?p=2118" target="_blank"><http://blog.lifebloodnetworks.com/?p=2118></a> which I have used many times in
the past to setup an LXC host. Why it does not work this time I have no
idea...

Nicholas J Ingrassellino <a href="mailto:nick@lifebloodnetworks.com" target="_blank"><mailto:nick@lifebloodnetworks.com></a>
LifebloodNetworks.com <a href="http://www.lifebloodnetworks.com/" target="_blank"><http://www.lifebloodnetworks.com/></a>

The idea that I can be presented with a problem, set out to logically solve
it with the tools at hand, and wind up with a program that could not be
legally used because someone else followed the same logical steps some years
ago and filed for a patent on it is horrifying.
‐ John Carmack, software patents

I don't want to be human. I want to see gamma rays, I want to hear X-rays,
and I want to smell dark matter. Do you see the absurdity of what I am? I
can't even express these things properly, because I have to— I have to
conceptualize complex ideas in this stupid, limiting spoken language, but I
know I want to reach out with something other than these prehensile paws,
and feel the solar wind of a supernova flowing over me. I'm a machine, and I
can know much more. I could experience so much more, but I'm trapped in this
absurd body.
‐ John Cavil, Battlestar Galactica

Here's to the crazy ones. The misfits. The rebels. The troublemakers. The
round pegs in the square holes. The ones who see things differently. They're
not fond of rules. And they have no respect for the status quo. You can
quote them, disagree with them, glorify, or vilify them. About the only
thing you can't do is ignore them. Because they change things. They invent.
They imagine. They heal. They explore. They create. They inspire. They push
the human race forward. Maybe they have to be crazy. How else can you stare
at an empty canvas and see a work of art? Or sit in silence and hear a song
that's never been written? Or gaze at a red planet and see a laboratory on
wheels? While some see them as the crazy ones, I see genius. Because the
people who are crazy enough to think they can change the world, are the ones
who do.
‐ Steve Jobs

</pre>
      </blockquote>
      <pre>
</pre>
      <blockquote type="cite">
        <pre>_______________________________________________
lxc-users mailing list
<a href="mailto:lxc-users@lists.linuxcontainers.org" target="_blank">lxc-users@lists.linuxcontainers.org</a>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a>
</pre>
      </blockquote>
      <pre>

</pre>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
lxc-users mailing list
<a href="mailto:lxc-users@lists.linuxcontainers.org" target="_blank">lxc-users@lists.linuxcontainers.org</a>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a></pre>
    </blockquote>
    <br>
  </div>

<br>_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br></blockquote></div>