Skip to content

Bridges and veth pairs: how containers share a network

Select an icon to see what it is.

Step 4 of 6

ARP finds api's MAC address

web wants 172.18.0.3 and knows it is on its own subnet, so it broadcasts an ARP request asking who has that address. The bridge floods the broadcast to its ports, and api answers with its MAC. The bridge also learns which port each MAC is on.

ARP request, broadcast

ff:ff:ff:ff:ff:ff from 02:42:ac:12:00:02
who-has 172.18.0.3 tell 172.18.0.2