Bridged network for LXC - Ubuntu 18.04 - 1 minute read


Bridged network for LXC

I'd like to create a bridged network for three containers, with static IP addresses and connected to the internet through the ethernet card of the host machine.

For example, with the bridge named and the virtual interfaces of the containers named , running the command it should return something like

on the first container

on the second container

on the third container.

I know, if I'm not wrong, that I have to create before a bridged network through Netplan. In /etc/netplan I have the file 01-network-manager-all.yaml that contains:

This is the situation of my interfaces:

where is the ethernet card connected to the internet.

I have found several tutorial, but realized for previous version of Ubuntu (like this: https://www.itzgeek.com/how-tos/linux/ubuntu-how-tos/configure-bridged-networking-for-kvm-on-ubuntu-14-10.html).

Someone could help me?

Thank you very much!!

Source: Askubuntu.com

Powered by NewsAPI.org

Keywords:

Bridging (networking)Computer networkLXCBridging (networking)Computer networkOperating-system-level virtualizationIP addressIP addressInternetNetwork interface controllerHypervisorBridging (networking)Virtual machineInterface (computing)Operating-system-level virtualizationCOMMAND.COMOperating-system-level virtualizationOperating-system-level virtualizationComputer fileNetworkManagerYAMLApplication programming interfaceNetwork interface controllerInternetSoftware versioningUbuntu (operating system)