<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hi,<br>
      Can you please put your requirement more clear?<br>
      If you are looking for an additional network interface in the
      container first you will have create corresponding mapping in
      container's config file.<br>
      Below readings should help you :<br>
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <a
href="https://docs.oracle.com/cd/E37670_01/E37355/html/ol_config_os_containers.html">https://docs.oracle.com/cd/E37670_01/E37355/html/ol_config_os_containers.html</a><br>
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <a
href="http://www.boxtricks.com/multiple-network-interfaces-lxc-container/">http://www.boxtricks.com/multiple-network-interfaces-lxc-container/</a><br>
      <br>
      <pre class="moz-signature" cols="72">Thanks & Regards
Ashish Bunkar
Contact No.- +91-7259183696</pre>
      On 12/16/2014 06:00 PM, Thouraya TH wrote:<br>
    </div>
    <blockquote
cite="mid:CALbnis3DpZD=yqoRHsmmg6ogN+vcMQ_nD=j=G=TOZV==wHPYfw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>Hello, <br>
            <br>
          </div>
          <div>Please, i have a question about Network Interfaces in LXC
            container:<br>
          </div>
          <div>In my container,i have by default these interfaces:<br>
          </div>
          <div><br>
            ubuntu@u5:~$ ifconfig<br>
            eth0      Link encap:Ethernet  HWaddr 00:16:3e:b7:de:91  <br>
                      inet addr:10.0.3.138  Bcast:10.0.3.255 
            Mask:255.255.255.0<br>
                      inet6 addr: fe80::216:3eff:feb7:de91/64 Scope:Link<br>
                      UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1<br>
                      RX packets:56 errors:0 dropped:0 overruns:0
            frame:0<br>
                      TX packets:40 errors:0 dropped:0 overruns:0
            carrier:0<br>
                      collisions:0 txqueuelen:1000 <br>
                      RX bytes:7230 (7.2 KB)  TX bytes:3500 (3.5 KB)<br>
            <br>
            lo        Link encap:Local Loopback  <br>
                      inet addr:127.0.0.1  Mask:255.0.0.0<br>
                      inet6 addr: ::1/128 Scope:Host<br>
                      UP LOOPBACK RUNNING  MTU:65536  Metric:1<br>
                      RX packets:0 errors:0 dropped:0 overruns:0 frame:0<br>
                      TX packets:0 errors:0 dropped:0 overruns:0
            carrier:0<br>
                      collisions:0 txqueuelen:0 <br>
                      RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)<br>
            <br>
          </div>
          <div>i'd like to add this new interface:<br>
            <br>
            auto eth1<br>
            <br>
            iface eth1 inet static<br>
            address 192.168.1.3<br>
            netmask 255.255.255.0<br>
            network 192.168.1.1<br>
            broadcast 192.168.1.255<br>
            <br>
          </div>
          <div><b>So,i have modified this file: /etc/network/interfaces</b><br>
            <br>
            # This file describes the network interfaces available on
            your system<br>
            # and how to activate them. For more information, see
            interfaces(5).<br>
            <br>
            # The loopback network interface<br>
            auto lo<br>
            iface lo inet loopback<br>
            <br>
            auto eth0<br>
            iface eth0 inet dhcp<br>
            <br>
            auto eth1<br>
            <br>
            iface eth1 inet static<br>
            address 192.168.1.3<br>
            netmask 255.255.255.0<br>
            network 192.168.1.1<br>
            broadcast 192.168.1.255<br>
            <br>
          </div>
          <div>i have done reboot but it didn't work ! when i use
            ifconfig, i cant' find the new interface:<br>
            ubuntu@u5:/etc/network$ ifconfig<br>
            eth0      Link encap:Ethernet  HWaddr 00:16:3e:b7:de:91  <br>
                      inet addr:10.0.3.138  Bcast:10.0.3.255 
            Mask:255.255.255.0<br>
                      inet6 addr: fe80::216:3eff:feb7:de91/64 Scope:Link<br>
                      UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1<br>
                      RX packets:57 errors:0 dropped:0 overruns:0
            frame:0<br>
                      TX packets:40 errors:0 dropped:0 overruns:0
            carrier:0<br>
                      collisions:0 txqueuelen:1000 <br>
                      RX bytes:7337 (7.3 KB)  TX bytes:3500 (3.5 KB)<br>
            <br>
            lo        Link encap:Local Loopback  <br>
                      inet addr:127.0.0.1  Mask:255.0.0.0<br>
                      inet6 addr: ::1/128 Scope:Host<br>
                      UP LOOPBACK RUNNING  MTU:65536  Metric:1<br>
                      RX packets:0 errors:0 dropped:0 overruns:0 frame:0<br>
                      TX packets:0 errors:0 dropped:0 overruns:0
            carrier:0<br>
                      collisions:0 txqueuelen:0 <br>
                      RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)<br>
            <br>
          </div>
          <div>Have you an idea please ?<br>
          </div>
          <div><br>
            <br>
          </div>
          Thanks a lot.<br>
        </div>
        Best regards. <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
lxc-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a>
<a class="moz-txt-link-freetext" href="http://lists.linuxcontainers.org/listinfo/lxc-users">http://lists.linuxcontainers.org/listinfo/lxc-users</a></pre>
    </blockquote>
    <br>
  </body>
</html>