Skip to content

Overlay networks: VXLAN between two hosts

Select an icon to see what it is.

Step 2 of 6

Each host builds a local bridge and a VXLAN device

On each host, docker makes a network namespace for the overlay with a bridge and a vxlan device that carries a VNI, a number that identifies the network. Containers plug into that bridge with veth pairs, as on a normal bridge. web on host A gets 10.10.0.2, and api on host B gets 10.10.0.3.

Overlay namespace on host A (shape)

br0 bridge, the containers' switch
vxlan0 VNI 4097 (illustrative), UDP port 4789
veth joins web (10.10.0.2, 02:42:0a:0a:00:02)