Use it when a MAC address must always be bound to a specific port and VLAN.
Static MAC entry
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.
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.
static config → fixed MAC to port mapping
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
show mac address-table staticVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
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 · 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.
- 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.
show mac address-table static— static entriesshow 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
| Variant | Effect |
|---|---|
interface | Frames to the MAC in that VLAN always leave this port; never aged |
drop | Frames to (and on many platforms from) the MAC are discarded — a quick block for a misbehaving host |
| Port-security sticky | Learned 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.
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
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
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%