Difference between revisions of "Give an lxc container an external ip address"

From MyWiki
Jump to: navigation, search
(Created page with "https://www.techrepublic.com/article/how-to-set-up-a-bridge-for-lxd-containers/<br> <source lang="text"> lxc launch images:centos/8 cent8 lxc list lxc config device add cent8...")
(No difference)

Revision as of 09:35, 7 August 2021

https://www.techrepublic.com/article/how-to-set-up-a-bridge-for-lxd-containers/

lxc launch images:centos/8 cent8
lxc list
lxc config device add cent8 eth0 nic nictype=bridged parent=br0 name=eth0
lxc list
lxc exec cent8 – /bin/bash
lxc list
lxc stop cent8
lxc start cent8