[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 ips. Ive spend days looking up a successfull way and
failed.
Ive read the other static ip thread but i cant figure out how to setup the
method he describes
(https://lists.linuxcontainers.org/pipermail/lxc-users/2016-March/011271.htm
l)
So ive tried using the virtual lxd bridge which works in some way. I can
assign the container static ips but only in the virtual lxd network. So i
need to route the public ips from my server to the virtual ips but i dont
know why. Also the public ips are mac address bound, so does routing keep
the containers mac address or does it use the hosts mac after routing?
Next ive 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 cant use a bridge since this is for a production purpose and the
containers shouldnt 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