[lxc-users] Changing ip address

Thouraya TH thouraya87 at gmail.com
Sat Dec 27 19:16:12 UTC 2014


Hello,

Please, i have created these two containers:

NAME     STATE    IPV4        IPV6  AUTOSTART
---------------------------------------------
worker   RUNNING  *10.0.3.238*  -     NO
worker1  RUNNING  *10.0.3.68*   -     NO
root at parapluie-8:~# brctl show
bridge name    bridge id        STP enabled    interfaces

*lxcbr0        8000.fe7cb6d68210    no        veth4FEW6P
                                           vethCCMR1U*



How can i modify the two ip address (which are in the same bridge):
i have used inside the container:

                           container1: ifconfig eth0 192.168.1.2
                           container2: ifconfig eth0 192.168.1.3


this works but when i restart the containers, i can't find the new adresses
!

Have you an idea please ?

Thanks a lot.

Best Regards.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20141227/15a0c35f/attachment.html>


More information about the lxc-users mailing list