Ethernet
Ethernet (IEEE 802.3) moves frames between devices on the same network segment, addressed by MAC address. Nearly every capture starts with an Ethernet header.
- OSI layer
- 2 Data link
- Carried in
- Physical medium (copper, fibre)
- Identified by
- Carries IPv4 (0x0800), ARP (0x0806), IPv6 (0x86DD), ...
- Specs
- IEEE 802.3, RFC 894
- Wireshark filter
eth- Encrypted
- no
Packet structure
Select a field to see what it does.
The header is 14 bytes (18 with a VLAN tag). The minimum frame is 64 bytes including FCS, the maximum 1518 (1522 tagged); jumbo frames go up to about 9000.
How it works
Ethernet only gets a frame to the next device on the same segment. Routers strip the Ethernet header and build a new one for the next hop, so MAC addresses change at every router, IP addresses do not.
Switches learn which source MAC lives behind which port (the MAC address table, or CAM table). Frames to a known MAC go out one port; frames to an unknown MAC, broadcast and (without IGMP snooping) multicast are flooded to all ports of the VLAN.
MAC address format: 6 bytes, written aa:bb:cc:dd:ee:ff. The first 3 bytes are the vendor’s OUI. Two bits of the first byte matter:
| Bit (of first byte) | 0 | 1 |
|---|---|---|
| Lowest (I/G) | Unicast | Multicast / broadcast |
| Second lowest (U/L) | Vendor-assigned | Locally administered (random MAC, VM) |
In Wireshark
| Filter | Shows |
|---|---|
eth.addr == aa:bb:cc:dd:ee:ff | Frames from or to a MAC |
eth.dst == ff:ff:ff:ff:ff:ff | Broadcasts |
eth.dst.ig == 1 | All multicast and broadcast |
eth.src.lg == 1 | Locally administered (often randomised) source MACs |
eth.type == 0x0806 | ARP (same as arp) |
eth.addr matches "^00:50:56" | VMware OUI (works for any vendor prefix) |
!(eth.type == 0x0800 or eth.type == 0x86dd) | Everything that is not IP |
What normal looks like: a steady background of broadcasts (ARP, DHCP) and multicast (mDNS, SSDP, LLDP, STP). Captures on the sending host often show frames larger than 1514 bytes: that is segmentation offload (TSO/GSO), the NIC splits them later.
Security notes
- MAC flooding: thousands of fake source MACs fill the switch’s MAC table; some switches then flood all traffic like a hub, so the attacker sees it (
macof). Port security / MAC limits per port prevent it. - MAC spoofing: a MAC is just a field. It bypasses MAC filters and MAC-based NAC; 802.1X is the real fix.
- No authentication or encryption: anyone on the segment can send any frame. MACsec (802.1AE) adds both, hop by hop.
- Information leaks: the OUI identifies vendors (cameras, printers, PLCs), which helps attackers pick targets. Etherleak: some drivers padded short frames with memory contents.
- Trust boundary: layer-2 attacks (ARP spoofing, DHCP spoofing, STP manipulation, VLAN hopping) all need access to the segment, which is why segmentation and port security matter.
Versions and related
- Ethernet II vs IEEE 802.3: the type/length field decides. Ethernet II (EtherType ≥ 0x0600) carries IP; 802.3 with LLC is used by STP and some legacy protocols.
- 802.1Q VLAN adds a 4-byte tag after the source MAC.
- ARP maps IPv4 addresses to MACs; IPv6 uses neighbour discovery (ICMPv6).
- 802.11 (Wi-Fi) frames are converted to Ethernet by the access point; captures in monitor mode show the 802.11 header instead.
References
- IEEE 802.3: Ethernet
- RFC 894: IP over Ethernet
- IEEE OUI lookup
- IANA EtherTypes