MAC address table
termKept in this browser · My desk
The table a switch uses to forward frames: each entry maps a MAC address, in a VLAN, to the port it was last heard on, learned from the source address of every frame received and removed after a period of silence.
The rule dates from Digital in 1983: learn from the source, decide by the destination, then forward to one port, filter if the destination is on the arrival port, or flood when it is unknown. The IEEE calls the table the Filtering Database (802.1D, now 802.1Q); Perlman's 1985 paper and the Bridge MIB say forwarding database; Cisco says MAC address table and, in its notification commands, CAM table; Juniper says Ethernet switching table; Extreme says FDB; Cabletron's manuals said Source Address Table. The default ageing is 300 seconds on nearly every platform, and every modern switch keys its entries by VLAN.
What it is. The MAC address table is the switch's memory of where stations are: each entry ties a media access control (MAC) address, in a VLAN (virtual local area network) or filtering database, to the port it was last heard on, with a type (learned, static, the switch's own) and an age. The forwarding process reads it for every frame; the learning process writes it from every frame. The Internet Engineering Task Force (IETF) Bridge MIB (management information base, Request for Comments (RFC) 4188, September 2005) names the entry states other, invalid, learned, self and mgmt, and Cabletron's manuals of the 1990s listed static, dynamic, learned, self and permanent entries in what they called the Source Address Table.
Learning. The Learning Process creates a dynamic entry when the arrival port is in a state that allows learning, the source is an individual address, the table has room and the VLAN has a member port; one entry per address and filtering database, so a new sighting replaces the old one (a MAC move), and a static entry cannot be overwritten by learning (the University of New Hampshire (UNH) test suite, citing 802.1D-1998 clause 7.8). Whether VLANs share one filtering database or each has its own is a design choice the Q-BRIDGE MIB (RFC 4363, January 2006) reports as Independent VLAN Learning, Shared VLAN Learning or both; every modern switch keys its entries by VLAN, so the same address can sit on different ports in two VLANs.
A table walk. A four-port switch, VLAN 10, empty table; documentation addresses A = 00-00-5E-00-53-0A, B = 00-00-5E-00-53-0B, C = 00-00-5E-00-53-0C. Frame 1, A on port 1 to B: learn (A, VLAN 10, port 1); B is unknown, so flood to ports 2, 3 and 4. Frame 2, B on port 3 to A: learn (B, 10, 3); A is known on port 1, so forward to port 1 only, and the other ports never see it. Frame 3, C on port 3 (behind a small unmanaged switch with B) to B: learn (C, 10, 3); B is on port 3, the arrival port, so filter: the frame is dropped, because B already heard it on the shared segment. Then 300 seconds pass with no frame from A: the entry ages out, and the next frame for A is flooded again until A speaks. Four rules, learn, forward, filter and flood, and one timer explain almost every symptom on a switched LAN (local area network).
Ageing. The Bridge MIB allows 10 to 1,000,000 seconds and records that 802.1D-1998 recommends 300; the IEEE (Institute of Electrical and Electronics Engineers) YANG model keeps the same range and default. Platforms count it differently: ExtremeXOS polls every quarter of the ageing time (10 to 60 seconds), Huawei deletes an entry not refreshed within twice the ageing time, and during a spanning tree topology change the forward delay is used instead. Fortinet's FortiSwitchOS ages learned addresses after 300 seconds (10 to 1,000,000; 0 never), and when ageing is switched off still removes inactive addresses from the hardware after 24 hours by default (0 to 168 hours).
Names and commands. The IEEE calls the table the Filtering Database, in 802.1D and now in 802.1Q: 802.1D-2004 is marked superseded by 802.1Q-2014, its content merged there under the 2013 revision, and 802.1Q-2022 (published 22 December 2022) is the active standard. Cisco show mac address-table (H.H.H, fc58.9a02.7382); Juniper show ethernet-switching table; ExtremeXOS show fdb; VOSS show vlan mac-address-entry; AOS-CX show mac-address-table (age-time 60 to 3,600 s); H3C and Huawei display mac-address (H-H-H, 00e0-fc12-3456; H3C accepts f-e2-1 for 000f-00e2-0001); FortiSwitchOS calls it the layer-2 table; Linux bridge fdb show.
Hardware. The name CAM comes from content-addressable memory, but vendors' own messages describe hash tables: Extreme logs entries refused because their hash bucket is full while others have room, Huawei offers hash modes based on a cyclic redundancy check (CRC) and warns that conflicts make it fail to learn and broadcast, and Arista added a command listing addresses lost to hash collisions. Juniper's unified forwarding table shares one memory between MAC and layer 3 entries: on EX4600 and QFX5100 switches the MAC table ranges from 288K entries in l2-profile-one through 160K in the default l2-profile-three down to 96K, depending on how much space layer 3 takes.
Scale. One São Paulo IX.br switch held 79,877 entries in 2015 with an ageing time of 90,000 seconds. In data centres the pressure is virtual machines: RFC 7348 (VXLAN, 2014) notes that a top-of-rack switch must learn hundreds of addresses per server and that, when the table overflows, it may stop learning until idle entries age out, flooding unknown destinations meanwhile. Fortinet offers an early warning: an optional check logs when the layer-2 table first passes 75 per cent full and when it drops back under 70 per cent, every 2 minutes by default.
What goes wrong. Overflow turns unicast into flooding, which is the whole of MAC flooding; per-port limits answer it (Fortinet's learning limit runs from 1 to 128 addresses per interface or VLAN, 0 meaning none, with static addresses not counted). A forged source moves an address's traffic, and the table cannot tell a moved host from an impostor. Bugs poison tables too: the National Vulnerability Database (NVD) record CVE-2021-34793 (2021) describes crafted TCP segments through a Cisco firewall in transparent mode that poisoned the MAC address tables of adjacent devices. And a flushed or full table is a security event as well as a performance one: CVE-2025-20316 records that flooded traffic from an unlearned address bypassed an egress access control list (ACL) on Cisco Catalyst 9500X and 9600X switches. Neighbours: transparent bridging (the rules), content-addressable memory and TCAM (the hardware words), unknown unicast flooding, MAC flapping, MAC flooding and port security.
Also known as: mac table, cam table, forwarding database, fdb, filtering database, source address table, ethernet switching table, tabela mac, tabela de endereços mac
Sources
- Radia Perlman, Digital Equipment Corporation, An Algorithm for Distributed Computation of a Spanning Tree in an Extended LAN, 1985 (read 2026-11-23): the forwarding data base of station and link, built from source fields; flood to all links but the arrival link when no entry exists; do not forward when the entry points to the arrival link; infinitely circulating packets
- Google Patents, US4597078A, Bridge circuit for interconnecting networks, Mark F. Kempf, Digital Equipment Corporation, filed 19 October 1983, granted 24 June 1986 (read 2026-11-23): the learning rule in the abstract; a look-up RAM tagged with each station's side
- UNH InterOperability Laboratory, Bridge Functions Consortium, Filtering Database Operations Test Suite 1.4, 2006 (read 2026-11-23): the Learning Process conditions of 802.1D-1998 7.8 and 802.1Q-1998 8.10; one dynamic entry per MAC address and FID; static entries block learning; ageing time 10 to 1,000,000 s; forward delay as ageing during topology change
- IETF, RFC 4188, Definitions of Managed Objects for Bridges, September 2005 (read 2026-11-23): dot1dTpAgingTime 10 to 1,000,000 s, 802.1D-1998 recommends 300 s; FDB entry states other, invalid, learned, self, mgmt; dot1dTpLearnedEntryDiscards
- IEEE 802.1, ieee802-dot1q-bridge YANG module, revision 2023-10-26 (read 2026-11-23): filtering-database used by the Forwarding Process; aging-time 10 to 1,000,000 s, default 300; references 8.8.3 and 12.7 of IEEE Std 802.1Q
- Cisco, Catalyst 9300 IOS XE 17.12 System Management Configuration Guide, Administering the Device (read 2026-11-23): learning, filtering when the destination is on the arrival port, store-and-forward, a logical table per VLAN, ageing 10 to 1,000,000 s, default 300, 0 disables
- Cisco, Catalyst 9300 IOS XE 17.12 Command Reference, System Management Commands (read 2026-11-23): show mac address-table, the H.H.H format, sample fc58.9a02.7382, the CAM-table utilization notification (one line expands CAM as 'Counter-Addressable Memory'), MAC move notification
- Juniper Networks, MAC Table Aging (read 2026-11-23): the Ethernet switching table, also called the MAC table, organized by VLAN; unknown destinations flooded to the VLAN's other interfaces; flooding lets the switch learn
- Huawei, S12700 and S12700E V200R023C10 Command Reference, MAC Address Table Configuration Commands (read 2026-11-23) (read in a browser): display mac-address with H-H-H addresses; ageing default 300 s, 0 or 60 to 1,000,000; deletion after twice the ageing time; flapping detection on by default with error-down and quit-vlan actions; hash modes crc16 and crc32, default crc32-lower; hash conflicts make it fail to learn and broadcast
- H3C, S12500X-AF Layer 2 LAN Switching Configuration Guide (R320x), MAC address table configuration (read 2026-11-23): learning steps, static, dynamic and blackhole entries, ageing default 300 s, MAC learning limit, MAC move notifications and suppression (30 s, threshold 3)
- H3C, S6300 Layer 2 LAN Switching Command Reference (Release 243x) (read 2026-11-23): display mac-address, H-H-H with leading zeros omissible (f-e2-1 for 000f-00e2-0001), MAC move records
- Extreme Networks, ExtremeXOS 33.1.1 User Guide, FDB contents and ageing (read 2026-11-23): entry fields; frames for unknown addresses flooded to all VLAN members; polling interval ageing/4 between 10 and 60 s
- HPE Aruba Networking, AOS-CX 10.15 Layer-2 Bridging Guide (read 2026-11-23) (read in a browser): MAC address table, age-time 60 to 3,600 s, default 300; loop protection packets on ports, LAGs, VLANs and VXLANs; for unmanaged switches and authenticated ports; transmit interval 5 s; default action tx-disable
- Linux kernel documentation, Ethernet Bridging (read 2026-11-23): forwarding by destination MAC and VLAN tag; FDB ageing default 300 s, 0 never ages; per-port unicast, multicast and broadcast flood flags
- Cabletron Systems, CSX200 manual, Bridging, Filtering Database, page 4-46, ManualsOnline copy (read 2026-11-23): Aging Time for Dynamic and Learned Addresses in the Source Address Table, 10 to 1,000,000 s; entry types Static, Dynamic, Learned, Self, Permanent
- IETF, RFC 4363, Definitions of Managed Objects for Bridges with Traffic Classes, Multicast Filtering, and Virtual LAN Extensions, January 2006 (read 2026-11-23): dot1qIVLCapable (Independent VLAN Learning), dot1qSVLCapable (Shared VLAN Learning) and dot1qHybridCapable
- IEEE Standards Association, IEEE 802.1Q-2022, Bridges and Bridged Networks, standard page (read 2026-11-23): active standard, Board approval 21 September 2022, published 22 December 2022, superseding 802.1Q-2018, amendments to 802.1Qdy-2025
- IEEE Standards Association, IEEE 802.1D-2004, Media Access Control (MAC) Bridges, standard page (read 2026-11-23): status superseded, superseded by 802.1Q-2014 and superseding 802.1D-1998; Board approval 9 February 2004, published 9 June 2004, reaffirmed 31 March 2011
- Glenn Parsons, 802.1D withdrawal, IEEE 802.1 working group slides, 12 July 2021 (read 2026-11-23): all relevant 802.1D content is in 802.1Q since the 2013 revision PAR; 802.1D-1993 superseded in 1998, 802.1D-1998 in 2004; administrative withdrawal of 802.1D-2004 at the end of 2021; SA database to show it superseded by 802.1Q-2014
- Fortinet, FortiSwitchOS 7.2.1 Administration Guide, Dynamic MAC address learning (read 2026-11-23): learning on or off per port, unknown sources dropped or forwarded when off; learning limit 1 to 128 per interface or VLAN, 0 (the default) meaning none; since 7.0.2 a shutdown action on violation; learned addresses deleted after 300 s by default (10 to 1,000,000, 0 never); a learning-limit violation log
- Fortinet, FortiSwitch 7.4.1 FortiLink Guide, Dynamic MAC address learning (read 2026-11-23): static MAC addresses are not counted in the learning limit; with mac-aging-interval set to 0, inactive addresses are still removed after 24 hours by default (0 to 168 hours)
- Fortinet, FortiSwitchOS 7.0.0 Administration Guide, Layer-2 table (read 2026-11-23): static and dynamic MAC addresses in one layer-2 table; an optional size check, off by default, logs a warning the first time the table is over 75 per cent full and again when it falls under 70 per cent, checking every 2 minutes (5 to 86,400 s)
- Juniper Networks, Layer 2 Forwarding Tables (read 2026-11-23): the unified forwarding table shares memory between MAC, host and LPM entries in five profiles; EX4600 and QFX5100 MAC tables of 288K, 224K, 160K (l2-profile-three, the default) and down to 96K; TCAM space for IPv6 prefixes longer than /64 configurable, up to 4,000 entries from Junos 13.2X51-D15 (default 1,000) and up to 8,000 on QFX5210 from 18.1R1 (default 2,000)
- RFC 7348, Virtual eXtensible Local Area Network (VXLAN), M. Mahalingam and others, August 2014, Independent Submission, Informational (read 2026-11-23): a 24-bit segment identifier; top-of-rack MAC tables must learn the virtual machines' addresses, and if the table overflows the switch may stop learning until idle entries age out, flooding unknown destination frames; data-plane learning with IP multicast carrying unknown destination, broadcast and multicast frames
- Arista Networks, technical information tag mac-hash-collision, read in a browser by the research agent (read 2026-11-23): a hash collision defined; a command, from EOS 4.31.0F (29 November 2023), listing MAC addresses not learned because of hash collisions
- NIST National Vulnerability Database (NVD), CVE-2021-34793, record through the NVD API (read 2026-11-23): the TCP Normalizer of Cisco ASA and FTD software in transparent mode mishandled certain TCP segments, letting a remote attacker poison the MAC address tables of adjacent devices, a denial of service; published 27 October 2021
- NIST National Vulnerability Database (NVD), CVE-2025-20316, record through the NVD API (read 2026-11-23): on Cisco Catalyst 9500X and 9600X switches, traffic from an unlearned MAC address flooded on a switch virtual interface with an egress ACL could bypass that ACL; an attacker can cause it by making the VLAN flush its MAC table, and a full table has the same effect; published 24 September 2025