ITNuvoAkademiya
Academy homePackagesPlaylistsToolsSubnet calculatorSearchGlossary
CiscoCCNA · CCNA: networking fundamentals1. Introduction2. Network Fundamentals3. Network Access4. IP Connectivity5. IP Services6. IPv67. Security Fundamentals8. AutomationCCNP: Enterprise networks · coming soon
LinuxLinux: system administrator üçün · Linux for system administrators1. Getting to know Linux2. Working with text3. Users and permissions4. Processes and packages5. Inside the system6. Monitoring and logs7. NetworkingRed Hat Enterprise Linux · Red Hat Enterprise Linux: from beginner to advanced1. Getting started2. Packages3. Users and permissions4. SELinux5. Services6. Storage7. Networking8. Building services9. Boot and recovery10. DevOps11. Security and monitoring
FortinetFortiGate Administrator · FortiGate Administrator: from first login to ZTNA1. Getting to know FortiGate2. Routing, policy and NAT3. Security profiles4. Users and logs5. Resilience, SD-WAN and automation6. VDOM7. VPN and ZTNA8. Proxy9. DMZ
MonitoringZabbix · Zabbix: from installation to alerts1. Introduction2. Installation and the database3. Basics: groups, templates, users4. Connecting devices5. Alerts, Grafana and the API
VirtualizationProxmox VE · coming soonVMware ESXi · coming soon
My account / Sign in
AZENRU
← itnuvo.com

How a switch learns: the MAC address table, flooding and forwarding

Lesson 2.289 minBeginnerNovember 3, 2026

Sign in to read this lesson

A switch builds a MAC address table and learns only from source MAC addresses: whichever port a frame came in on, its source MAC is recorded against that port. If the destination MAC is not in the table, the switch sends the frame out every port except the one it came in on (flooding). When the reply comes back, the second MAC is learned too, and from then on frames go only to the right port. You view the table with show mac address-table dynamic, and Wireshark shows that flooding happens only for the first frame.

What you will learn

  • A switch builds a MAC address table (CAM table): which MAC address is behind which port.
  • The switch learns only from the source MAC: if a frame arrives on port 1 with source AAA, it records "1: AAA". The destination MAC is used only to decide where to send the frame.
  • If the destination MAC is not in the table, the switch sends the frame out every port except the one it came in on: this is flooding (unknown unicast). A computer the frame is not meant for discards it.
  • If the destination MAC is in the table, the frame goes only to that port (forwarding). Computer C sees only the first, flooded frame of the traffic between A and B.
  • show mac address-table dynamic shows the learned MACs: Vlan, Mac Address, Type (DYNAMIC), Ports. Dynamic entries are removed after 300 seconds (5 minutes) of inactivity by default (aging).

The lesson has 5 key points, an explanation and 5 questions. It opens with a package.