Macvlan and ipvlan are Linux network drivers that exposes underlay or host interfaces directly to VMs or Containers running in the host.
There are two ways for Containers or VMs to communicate to each other. In Underlay network approach
- In
underlaynetwork approach, VMs or Containers are directly exposed to host network -bridge,macvlanandipvlannetwork drivers are examples of this approach - In
overlaynetwork approach, there is an additional level of encapsulation likeVXLAN,NVGREbetween the Container/VM network and the underlay network
