Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Virtual MAC

Direct answer

HSRP uses a virtual MAC address tied to the group number (0000.0c07.acXX for v1, 0000.0c9f.fXXX for v2), owned by the Active router. Hosts ARP for the virtual IP and learn this MAC, so failover needs no ARP change on hosts.

When to use this

Use it when the design or fault is specifically about the HSRP group-owned Layer-2 identity associated with the virtual gateway so hosts can keep one ARP mapping while Active ownership moves between peers. Stay on that boundary until configuration intent, live protocol state and the adjacent forwarding dependency agree.

First 30 seconds

1. HSRP v1 virtual MAC is 0000.0c07.acXX (XX = group in hex); v2 uses 0000.0c9f.fXXX.

2. Only the Active sources frames from it, so switches learn it on the Active's port.

3. Failover sends gratuitous ARP to move the MAC.

4. Version mismatch means different MACs and no peering.

5. Avoid manual virtual MAC changes.

Operational verification

Active owns virtual MAC → switches learn it → failover gratuitous ARP → MAC moves

Evidence · next step

Trace CAM/STP state, observe relearning after failover and verify the Active router is reachable on the expected Layer 2 path.

Continue only after interpreting the current observation.
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 · IOS/IOS XE
Key commandshow mac address-table [dynamic]
Scope / prerequisiteUse it when the design or fault is specifically about the HSRP group-owned Layer-2 identity associated with the virtual…
Show · 1
What next?3 suggested next steps
Catalog command links1
Evidence1
On this pageJump to a specific section
Verification

Show Commands

Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.

How to read the output

show mac address-table [dynamic]

Look first: VLAN, MAC, type, learned interface

Healthy: Endpoint MAC is learned in expected VLAN/interface.

Warning: Missing, flapping or learned on unexpected interface/VLAN.

Does not prove: MAC learning does not prove ARP/IP routing or application reachability.

Operational workflow

Verification & Troubleshooting

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

5 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 Operational verification and known-good state Verify boundary
show standby vlan 10 | include virtual MAC
show mac address-table address 0000.0c9f.f00a

The first shows the virtual MAC in use. HSRP version 2 uses 0000.0c9f.f followed by the group number in hex (group 10 gives …f00a); version 1 uses 0000.0c07.ac plus the group (…ac0a). The second, run on the switches, shows the port on which that MAC was learned — it should lead to the Active router.

Known-good: the virtual MAC matches the group and version, switches learn it on the port toward the Active router, and hosts have it in their ARP table for the gateway.

Step 2 Verification and output interpretation Verify boundary

Verify the virtual MAC shown by HSRP, the client ARP mapping for the virtual IP and the switch CAM entry for the virtual MAC. During a controlled failover, confirm that the virtual MAC location moves to the new Active router and that stale Layer-2 state converges promptly. If clients retain the correct ARP entry but forwarding fails, inspect CAM learning and the new Active router’s RIB/CEF separately. Conversely, a correct CAM move does not show remote routing or applications are healthy.

Step 3 Verification & troubleshooting Narrow the fault

1. Confirm the configured HSRP version and group.

2. Read the virtual MAC from detailed HSRP state where available.

3. Check a client ARP entry for the VIP.

4. Trace the virtual MAC in the switching table toward the current Active gateway.

5. If role and CAM disagree after failover, investigate stale Layer 2 state or topology problems.

Step 4 Failure signatures and troubleshooting branches Narrow the fault
  • Hosts lose the gateway for a while after a failover. A switch still has the virtual MAC on the old port; the new Active router announces itself with a gratuitous ARP, so check that the MAC table has moved.
  • The virtual MAC flaps between two ports. Both routers are Active at once, or there is a Layer 2 loop.
  • The virtual MAC is not the expected one. The routers run different HSRP versions, or standby mac-address / standby use-bia is configured.
  • Hosts have a router's real MAC for the gateway. They are not using the virtual IP.
Step 5 When the problem is really fixed Narrow the fault
  • The virtual MAC matches group number and HSRP version on all routers.
  • Switches learn it on the port toward the current Active router, also after a failover.
  • No MAC-flap messages for it.
  • Hosts' ARP entry for the gateway is the virtual MAC.
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.

state · 1
Command lookup Jump straight to Cisco syntax
Key points

Do not infer service health from one role or command. For Virtual MAC, distinguish configured intent, election/database state, installed forwarding state and the original workload result.

Key checks
  • show standby <interface> <group> — Virtual mac address
  • show mac address-table address <vmac> — learned on Active's port
ReferenceWhat it is1 section · depth on demand

What it is

HSRP associates the virtual gateway with a virtual MAC address so hosts can keep the same Layer 2 next-hop identity when the Active role moves between routers. The newly Active router assumes forwarding for that virtual MAC.

ReferenceWhy it matters1 section · depth on demand

Why it matters

Use virtual-MAC evidence when the HSRP role looks correct but host gateway traffic, ARP resolution or switch CAM forwarding still points at the wrong place.

ReferenceImportant terms & boundaries6 sections · depth on demand

Key points

  • HSRPv1 IPv4 commonly uses 0000.0c07.acXX for group 0-255

- HSRPv2 IPv4 commonly uses 0000.0c9f.fXXX for group 0-4095

- The version/group determines the expected virtual-MAC pattern

- Endpoints learn the virtual MAC through ARP for the VIP

- CAM/ARP state may need to reconverge after a role change; HSRP role alone does not show Layer 2 forwarding is correct.

In depth

The virtual MAC is derived from the HSRP version and group number

The active router answers ARP for the virtual IP with a virtual MAC address. Hosts therefore keep the same gateway MAC after a failover.

VersionVirtual MAC formatGroup range
HSRP v10000.0c07.acXX (XX = group in hex)0–255
HSRP v20000.0c9f.fXXX (XXX = group in hex)0–4095

Cisco's HSRP FAQ gives the v2 format (0000.0C9F.Fyyy, yyy from 000 to FFF) and the group ranges, and notes that v1 and v2 can't interoperate on the same interface.

C9300-A# show standby Vlan20 | include virtual MAC
  Active virtual MAC address is 0000.0c9f.f014 (MAC In Use)
    Local virtual MAC address is 0000.0c9f.f014 (v2 default)
host$ ip neigh show 10.20.0.1
10.20.0.1 dev eth0 lladdr 00:00:0c:9f:f0:14 REACHABLE
C9300-ACC# show mac address-table address 0000.0c9f.f014
  20    0000.0c9f.f014    DYNAMIC     Te1/1/1

Group 20 = 0x014, so the v2 MAC is 0000.0c9f.f014.

standby use-bia

The FAQ describes standby use-bia as using the interface's burned-in MAC instead of the virtual MAC, and lists its drawbacks: the gateway MAC changes on failover, some hosts don't handle the gratuitous ARP well, and proxy ARP breaks. Avoid it unless a specific requirement forces it.

Failover and switches

When a new router becomes active, it sends a gratuitous ARP from the virtual MAC. Access switches then move the virtual MAC entry to the new uplink.

Troubleshooting

SymptomCheck
Virtual MAC learned on the wrong uplinkBoth routers active (split brain); check hellos
Hosts still use the old router's MACuse-bia configured, or a host ignoring gratuitous ARP
Two groups with the same MACSame group number in different VLANs is fine; within one VLAN it isn't

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.

Quick reference

HSRP uses a virtual MAC address so hosts' ARP entries for the gateway stay valid after failover. Version 1 uses 0000.0c07.acXX (group 0–255); version 2 uses 0000.0c9f.fXXX (group 0–4095). The new Active router sends gratuitous ARP when taking over.

show standby Vlan20 20 | include Virtual mac

Documented example, not captured output.

In the MAC address table, the virtual MAC moves to the port facing the new Active router after failover.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Mechanics and state ownership

HSRP couples the shared virtual IP with a protocol-defined virtual MAC that is owned by the current Active router for the group. Endpoints ARP for the virtual IP and should learn the virtual MAC rather than a specific router interface MAC, allowing gateway ownership to move without changing the host default-gateway configuration. During failover the new Active router assumes responsibility for that Layer-2 identity and may send gratuitous ARP or related announcements so switches and hosts converge quickly. The virtual MAC is group/version derived and distinct from each peer physical MAC; debugging must therefore correlate HSRP group, VIP, virtual MAC, ARP cache and switch MAC-table state.

State model and technical mechanics

HSRP uses a virtual MAC so hosts can keep a stable ARP mapping for the virtual IP while the gateway role moves between routers. The Active router sources/answers using the virtual identity as required, and the access/distribution switching fabric learns that MAC on the path toward the Active router. When failover occurs, the same virtual MAC becomes reachable through the new Active path, often assisted by gratuitous ARP and normal CAM relearning. This separation between virtual identity and physical interface MAC is what lets first-hop redundancy change owners without requiring every host to learn a new gateway address.

Limits and common misconceptions

The virtual MAC is not the physical burned-in address of either router and should not be used to identify which chassis is Active without checking current MAC-table location or HSRP state. Seeing the virtual MAC in a client ARP cache shows only gateway identity resolution. It does not show the switch points it to the correct port, nor that the Active router has upstream reachability. Keep ARP, CAM, HSRP role and routed forwarding as separate evidence layers.

ReferenceConfiguration & state1 section · depth on demand

Design and configuration model

Keep the HSRP group configuration consistent so peers agree on the virtual identity, and avoid static switch MAC entries that pin the virtual MAC to one router unless a specific design requires it. Ensure Layer-2 topology allows the virtual MAC to move between peer-facing ports. Where security features inspect source MAC or ARP behavior, account for the expected HSRP virtual identity and failover movement. If multiple groups provide load sharing, each group’s virtual MAC/IP relationship should remain explicit.

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 Routing → First Hop Redundancy → HSRP → Virtual MAC. 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%
Embedded reference data

Quick lookup tables

Virtual MAC · technical reference

Compact OSPF/FHRP mechanics, design and evidence boundaries for fast lookup.

ItemMeaning
Virtual MACStable Layer-2 gateway identity
CAM locationShould point toward current Active
FailoverSame virtual identity moves to peer
Not proof ofUpstream route or application health

Virtual MAC operational reference

Topic-specific bounded interpretation: known-good state, suspicious signatures and the next technical proof boundary.

BoundaryKnown-good for Virtual MACSuspicious signatureNext proof
IntentMatches the HSRP group-owned Layer-2 identity associated with the virtual gateway so hosts can keep one ARP mapping while Active ownership moves between peers designConfiguration differs from design/peerCompare effective configuration
Control-plane stateStable expected election/adjacency/LSA/role stateclients resolving the VIP to an unexpected physical MAC, stale MAC/ARP state after failover, mismatched HSRP group/version producing a different virtual identity, switch security features rejecting the moved virtual MAC, or Active state changing while Layer-2 forwarding stays pinned to the old portInspect peer/database/election detail
ForwardingExpected RIB/FIB or virtual-gateway pathControl state exists but traffic path disagreesARP/MAC/RIB/FIB/CEF proof
ClosureOriginal test passes for explained reasonSymptom moved, was bypassed or role was forcedRegression test
Depth when you need it

Deep reference

Additional depth

Virtual MAC after failover

After takeover, the new Active router must receive traffic destined for the virtual MAC. Gratuitous ARP/control behavior and normal switching learning help update adjacent devices, but stale or inconsistent Layer 2 state can still cause a transient or persistent forwarding mismatch even when HSRP roles look correct.

Confirmation

Confirm action

Continue?