A Layer 2 network operates at the data-link layer of the networking model and allows connected systems to communicate within the same virtual network segment.
Private Layer 2 networking can be used to connect cloud servers without routing their internal communication across the public internet.