Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Static MAC entry

Direct 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.

When to use this

Use it when a MAC address must always be bound to a specific port and VLAN.

First 30 seconds

1. Static MAC entries never age and override learning.

2. Used for special devices.

3. Wrong static entries black-hole traffic.

4. Document them.

5. Remove when devices move.

Operational verification

static config → fixed MAC to port mapping

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Cisco IOS / IOS XE
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformCisco IOS / IOS XE · Cisco IOS XE
Key commandshow mac address-table static
Scope / prerequisiteUse it when a MAC address must always be bound to a specific port and VLAN.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Verification & troubleshooting Narrow the fault

1. Confirm ingress VLAN and STP forwarding state.

2. Verify source MAC learning.

3. Inspect destination MAC entry/type/age.

4. Trace trunk VLAN allowance to egress.

Step 2 Common mistakes Narrow the fault
  • Static entry pointing to the old port after the device moved.
  • Forgetting static entries when troubleshooting unreachable hosts.
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Command lookup Jump straight to Cisco syntax
Key points
  • 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.
Key checks
  • show mac address-table static — static entries
  • show running-config | include mac address-table static — config
ReferenceWhy it matters1 section · depth on demand

How it works

A static MAC entry pins a MAC address to a VLAN and port so the switch never learns or ages it elsewhere. Frames to that MAC go only to that port, and on most platforms the MAC cannot be learned on other ports. Used for devices that rarely transmit (silent hosts) or to prevent MAC moves.

ReferenceImportant terms & boundaries1 section · depth on demand

In depth

Static entry variants

mac address-table static 0011.2233.4455 vlan 10 interface GigabitEthernet1/0/5
mac address-table static 0011.2233.4466 vlan 10 drop
VariantEffect
interfaceFrames to the MAC in that VLAN always leave this port; never aged
dropFrames to (and on many platforms from) the MAC are discarded — a quick block for a misbehaving host
Port-security stickyLearned and saved into the configuration as switchport port-security mac-address sticky ...; a security entry, not a forwarding pin

Verify in software and hardware

Switch# show mac address-table static vlan 10
          Mac Address Table
-------------------------------------------
Vlan    Mac Address       Type        Ports
----    -----------       --------    -----
  10    0011.2233.4455    STATIC      Gi1/0/5

On Catalyst 9000 the MAC Address Table Manager programs entries into hardware; when forwarding disagrees with show mac address-table, compare with the platform view, for example show platform software fed switch active matm macTable vlan 10.

Behaviour when the host moves

The switch does not relearn a static MAC on another port. If the device is moved, traffic towards it still leaves the old port, and frames sourced from it on the new port may be dropped as a MAC move violation depending on platform. That is exactly what a static entry is for — and the reason to document every static entry next to the device it pins.

When static entries make sense

  • Silent hosts that rarely transmit (some printers, load-balancer VIPs in unicast mode), to avoid constant unknown-unicast flooding.
  • Blackholing a known bad MAC quickly with drop.
  • Lab or migration setups where flooding must be avoided.

Audit with show running-config | include mac address-table static before troubleshooting "unexplained" forwarding.

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
ReferenceConfiguration & state1 section · depth on demand

Configuration

mac address-table static 0011.2233.4455 vlan 10 interface Gi1/0/5
show mac address-table static

Documented example, not captured output.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docCisco IOS / IOS XE Current documentation reviewed 2026-09-14

Authoritative/upstream documentation reviewed for bounded claims in Switching → Ethernet Switching → MAC Learning → Static MAC entry. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · confidence 94%
Confirmation

Confirm action

Continue?