[lxc-users] Setup container with static ip

Sebastian Ühlin sebuehlin at me.com
Thu Jan 19 22:44:38 UTC 2017


Hello,

 

my problem is static ip‘s. I’ve spend days looking up a successfull way and
failed.

 

I’ve read the other static ip thread but i can’t figure out how to setup the
method he describes
(https://lists.linuxcontainers.org/pipermail/lxc-users/2016-March/011271.htm
l)

 

So i’ve tried using the virtual lxd bridge which works in some way. I can
assign the container static ip‘s but only in the virtual lxd network. So i
need to route the public ip‘s from my server to the virtual ips but i don’t
know why. Also the public ip‘s are mac address bound, so does routing keep
the containers mac address or does it use the hosts mac after routing?

 

Next i’ve read that p2p creates a virtual device on my host system which is
connected to the device in the container but again i need to route the
traffic on my host system (similar to the bridge aproach?). Also there is
absolutely no documentation about setting up a p2p device.

 

Since these 2 aproaches seem kind of similiar to me, i would prefer a p2p
device since i can restrict the bandwidth.

 

I can’t use a bridge since this is for a production purpose and the
containers shouldn’t be able to change there ip address.

 

 

--

Sebastian Ühlin

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20170119/c984237c/attachment.html>


More information about the lxc-users mailing list