liveBook · Manning

Dynamic mac address

As explained in Acing the CCNA Exam: Volume 2 Advanced Networking and Security

A dynamic MAC address is a MAC address that a switch learns automatically from received frames and can remove through aging.

A dynamic MAC address is learned automatically when a switch receives a frame from a device. The switch records the address in its MAC address table without manual configuration. section 12.2.3

Regular dynamic MAC addresses age out after five minutes without traffic, and receiving another frame resets the timer. This removes stale entries as devices leave the LAN. Port Security changes the default behavior: dynamically learned secure MAC addresses remain indefinitely while their port stays up unless secure aging is enabled. section 12.2.2

Dynamic MAC addresses have these operational characteristics:

  • Require no manual MAC-address configuration and provide a hands-off way to learn permitted devices. section 12.2.3
  • Disappear when a Port Security–enabled port goes down, allowing the port to learn a new dynamic secure address. section 12.2.3
  • Count toward the port’s maximum secure-MAC limit; a port connected to multiple devices may require switchport port-security maximum maximum. section 12.1.2 section 12.3
  • Differ from static secure MAC addresses, which are manually configured and persist through a port outage, and from sticky addresses, which are learned dynamically but saved in running-config. section 12.2.3

Learning and verifying dynamic secure addresses

Configure an access port for Port Security, then inspect its learned address: `interface f0/1`, `switchport mode access`, and `switchport port-security`. `show port-security interface f0/1` reports the maximum and current totals; for example, Maximum MAC Addresses 1 and Total MAC Addresses 1 show that one secure MAC address has been learned. Use `show port-security address` to identify it as SecureDynamic.

Enabling secure aging

On a Port Security interface, `switchport port-security aging time 5` enables a five-minute aging timer. The default aging type is absolute, so the timer does not reset when frames arrive. `switchport port-security aging type inactivity` changes the behavior so traffic resets the timer and preserves an active address.

How Acing the CCNA Exam: Volume 2 Advanced Networking and Security covers it

How deep it goes
Details learning, persistence, aging types, limits, and Cisco IOS verification, stopping short of frame-forwarding internals.
Examples
Uses access-port commands, port-security verification output, SecureDynamic entries, and five-minute absolute or inactivity aging.
What it assumes
Assumes basic MAC address-table behavior while distinguishing regular five-minute aging from Port Security’s default indefinite retention.
What you can do after
Operate and verify dynamically learned secure MAC addresses, then configure their limits and aging behavior.
How it connects
Connects dynamic MAC addresses with MAC address tables, Port Security, static MAC addresses, sticky MAC addresses, and secure MAC aging.

Also explained in

Compare how 2 books explain dynamic mac address →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Acing the CCNA Exam: Volume 2 Advanced Networking and Security. The section links point to the parts of the book it draws on.