Difference between revisions of "Give an lxc container a static ip address"
From MyWiki
(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>") |
|||
Line 4: | Line 4: | ||
lxc config device set c1 eth0 ipv4.address 10.99.10.42 | lxc config device set c1 eth0 ipv4.address 10.99.10.42 | ||
lxc start c1 | lxc start c1 | ||
− | </ | + | </source> |
Latest revision as of 11:13, 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