linuxlab.io
Tutorials▾
  • Linux & networking
    File system, processes, TCP/IP, BGP and OSPF
    →
  • Terraform & IaC
    HCL, state, plan/apply on a LocalStack sandbox
    →
  • Git & GitHub
    Object model, plumbing, branching, GitHub Actions
    →
All tutorials →
PricingAboutSign inCreate account
/
  • Introduction
  • Lessons
  • How it works
  • Simulator
  • Knowledge base
  • Interview prep
Index
Categories
All entries
Footer
linuxlab-TutorialsPricingAboutPrivacy & cookies
Copyright © 2026 LinuxLab. All rights reserved.
home/linux/kb/Networking: L2 / L3/broadcast-domain

kb/network-l2-l3 ── Networking: L2 / L3 ── beginner

Broadcast Domain: What It Is and Who Lives in It

A group of devices where an L2 frame with dst MAC `FF:FF:FF:FF:FF:FF` (broadcast) reaches everyone. A switch extends a broadcast domain; a router stops it.

view as markdownaka: broadcast, l2-broadcast

What it is

A broadcast domain is an area of audibility: if someone shouts over L2 (sends a frame to the special MAC FF:FF:FF:FF:FF:FF = broadcast), who hears it?

Every device in the same broadcast domain must hear a broadcast frame. This is required by protocols that do not yet know their peers by name:

  • arp - "who has this IP?" (the question goes out as a broadcast)
  • [[ipv4-addressing|DHCP]] - "is there a DHCP server here?" (the client shouts)
  • mDNS - "who on the network goes by airprint.local?"

Who extends it, who stops it

DeviceWhat it does with broadcast
HubBlindly repeats to all ports, extending the broadcast domain
SwitchFloods broadcast to all ports except the incoming one, extending it
RouterStops broadcast (it operates at L3)
FirewallUsually stops it too, but can pass it selectively

The practical rule: two devices connected through a switch share one broadcast domain. Connected through a router, they are in different broadcast domains.

Why to limit it

Broadcast is overhead: every broadcast frame is processed by all hosts in the domain, even those that do not care. With many devices, broadcast traffic starts to choke the network. This is called a broadcast storm.

In production, the network is cut into small broadcast domains with VLANs (virtual L2 networks, see ethernet-frame) or physical routers. A typical size is /24 (up to 254 hosts) or /22 (up to 1022) for office networks.

Broadcast address vs. broadcast MAC

Do not confuse L2 broadcast (FF:FF:FF:FF:FF:FF in the Ethernet header) with L3 broadcast (192.168.1.255 for the subnet 192.168.1.0/24, the last address in the range). They often travel together (DHCP DISCOVER uses both), but they belong to different layers.

IPv6 has no broadcast at all. It was replaced by multicast.

See who is in the domain

bash
# arp scanner: broadcasts ARP across the subnet; whoever replies is in the domain
sudo arp-scan -l
# or:
ip neigh    # current ARP cache = known neighbors

§ команды

bash
ip neigh

Neighbors we have seen recently. All of them are in our broadcast domain.

bash
sudo arp-scan -l

Active scan of the broadcast domain using ARP requests.

bash
tcpdump -i eth0 'ether broadcast'

Capture only broadcast frames to see DHCP, ARP, and mDNS traffic.

§ см. также

  • mac-addressMAC AddressMAC address is a 48-bit hardware identifier for a network interface, written as `aa:bb:cc:dd:ee:ff`. It is unique within an L2 segment and is used in [[ethernet-frame]] for L2 addressing.
  • arpARP: Address Resolution ProtocolARP answers the question "who has MAC = ?" for a given IP inside one network. Linux keeps the result in the neighbor table (`ip neigh`).
  • vlan-and-trunkVLAN: 802.1Q Virtual LAN and Trunk PortsVLAN logically splits one physical switch into multiple L2 segments. The 802.1Q tag adds 4 bytes to an Ethernet frame with a VLAN ID (12 bits, up to 4094 VLANs). Trunk = multiple VLANs on a port, access = one.
  • linux-bridgeLinux Bridge: Software SwitchA bridge is a software L2 switch in the Linux kernel. It learns MACs in the FDB and forwards frames between interfaces. It underpins the Docker default network, KVM bridge, and libvirt. With vlan_filtering it emulates a managed switch.
  • dhcp-protocolDHCP: Dynamic Host Configuration ProtocolDHCP gives a host its IP address, subnet mask, gateway, and DNS via broadcast. 4 packets: DORA = Discover (client), Offer (server), Request (client), Ack (server). The lease renews at 50% of the TTL.
Footer
linuxlab-
Copyright © 2026 LinuxLab. All rights reserved.
Tutorials
Pricing
About
Privacy & cookies