bridge | A Linux bridge behaves like a network switch. It forwards packets between interfaces that are connected to it. It's usually used for forwarding packets on routers, on gateways, or between VMs and network namespaces on a host. Use a bridge when you want to establish communication channels between VMs, containers, and your hosts. A bridge is a way to connect two Ethernet segments together in a protocol independent way. Packets are forwarded based on Ethernet address, rather than IP address (like a router). Since forwarding is done at Layer 2, all protocols can go transparently through a bridge. |
LXC network | A LXC network provides a way for containers to communicate with each other and the host system, as well as with the outside world. It allows containers to access network resources and services, just like a physical machine. |
veth |
The veth devices are virtual Ethernet devices. They can act as
tunnels between network namespaces to create a bridge to a
physical network device in another namespace, but can also be used
as standalone network devices.
veth devices are always created in interconnected pairs. A pair
can be created using the command:
ip link add <p1-name> type veth peer name <p2-name>
In the above, p1-name and p2-name are the names assigned to the
two connected end points.
|