Pcornel
Networking · Switching › Ethernet Switching › MAC Learning

Static MAC entry

Cheat sheet · https://pcornel.dk/topic.php?topic=961

Back to the Topic

Answer

A static MAC entry (mac address-table static <mac> vlan <id> interface <if>) is configured manually, never ages out and pins a MAC to a port.

Remember

  • Source MAC is learned on ingress; destination MAC drives egress selection
  • Known unicast is forwarded to one learned port; unknown unicast and broadcast are flooded within the VLAN
  • A frame received on the learned destination port is filtered
  • Dynamic entries age; static entries remain until removed.

First checks

  • show mac address-table static — static entries
  • show running-config | include mac address-table static — config

Commands

show mac address-table
show platform software fed switch active matm macTable vlan 10

Verify in this order

static config → fixed MAC to port mapping

Where it usually breaks

media/optics → administrative state → carrier/line protocol → negotiation → error/drop counters → neighbor discovery → upper-layer adjacency

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=961

Confirmation

Confirm action

Continue?