Difference between revisions of "Give an lxc container a static ip address"

From MyWiki
Jump to: navigation, search
(Created page with "<source lang="text"> lxc stop c1 lxc network attach lxdbr0 c1 eth0 eth0 lxc config device set c1 eth0 ipv4.address 10.99.10.42 lxc start c1 </soruce>")
(No difference)

Revision as of 11:12, 16 March 2019

lxc stop c1
lxc network attach lxdbr0 c1 eth0 eth0
lxc config device set c1 eth0 ipv4.address 10.99.10.42
lxc start c1
</soruce>