Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

PIM Sparse Mode

Direct answer

PIM sparse mode sends multicast only where it is requested. Receivers' routers join a shared tree rooted at a rendezvous point (RP); sources' routers register their streams with the RP; routers can then switch to the shortest path tree directly towards the source.

When to use this

Use it for most any-source multicast, and when streams do not reach receivers in another part of the network.

First 30 seconds

1. show ip pim rp mapping — the same RP for the group on every router?

2. Receivers' router: show ip mroute <group> — (*,G) towards the RP?

3. RP: is there an (S,G) for the source? None → registration not arriving.

4. show ip rpf <rp> and show ip rpf <source> along the path.

5. Stream on the shared tree but not switching to the source tree → SPT threshold, or RPF towards the source fails.

Operational verification

RP known for the group on every router → receivers' router joins (*,G) towards the RP → source's router registers with the RP → RP joins (S,G) towards the source → stream flows; optionally switches to the SPT

Failure signatureSources register but receivers in other parts of the network get nothing

Receivers join, but (*,G) state does not lead to the source; RP mapping is missing or different between routers.

Possible stored cause: Routers do not agree on the RP for the group, or the RP address is not reachable in the unicast table.
Evidence · next step

Verify RPF/unicast route, IGMP receiver state and mroute/OIL.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Protocol standard + deployed implementation
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.

PlatformProtocol standard · Cisco IOS / IOS XE · IOS/IOS XE
Key commandip multicast-routing
Scope / prerequisiteUse it for most any-source multicast, and when streams do not reach receivers in another part of the network.
Show · 4Reference · 3
What next?3 suggested next steps
Child topics (this level)4
Catalog command links7
Evidence1
On this pageJump to a specific section
Cisco IOS / IOS XE first

Primary Commands

Configuration and operational commands for this Topic.

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 ip pim neighbor

Look first: neighbor, interface, uptime/expiry, mode/flags

Healthy: Expected PIM neighbor is stable on the intended interface.

Warning: Missing/flapping neighbor or wrong interface.

Does not prove: PIM adjacency does not prove receiver membership or multicast forwarding.

show ip mroute

Look first: (S,G)/(*,G), IIF/RPF, flags, OIL

Healthy: Expected source/group has correct IIF and receiver-facing OIL.

Warning: Null/wrong IIF, RPF failure or empty/unexpected OIL.

Does not prove: mroute state does not prove the source is actively sending or receiver consumes traffic.

Operational workflow

Verification & Troubleshooting

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

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

Receivers join, but (*,G) state does not lead to the source; RP mapping is missing or different between routers.

Step 1 PIM Sparse Mode: bounded example and recovery Verify boundary

Illustrative isolated sender 10.1.1.10, ASM group 239.1.1.1, one receiver and a deliberately configured RP. Ensure routed links have reviewed PIM, receiver membership is observed and sender TTL reaches the test topology. Correlate source traffic with IIF/OIL and receiver packets.

Withdraw only the isolated receiver membership and observe leave/prune behavior according to timers and any remaining listeners; do not promise immediate removal of every multicast entry. Restore membership and verify delivery again without clearing all routes. Save original group/RP/interface policy. Expected outcomes are authored, not device Evidence.

Step 2 Verification and output interpretation Verify boundary

Use show ip pim neighbor to show router-to-router PIM adjacency on participating links, show ip pim interface for enabled interfaces, and show ip pim rp mapping to verify the RP chosen for ASM groups. show ip mroute is the central forwarding-state view: read the (S,G) or (*,G) entry, incoming interface/RPF neighbor and outgoing interface list together. Confirm receiver interest separately through IGMP and source reachability through show ip rpf <source>. Packet counters on the multicast route help show traffic is traversing the state. An RP mapping can be correct while no receiver has joined, and a PIM neighbor can be healthy while the RPF path toward the source is wrong, so layer the evidence.

Step 3 PIM Sparse Mode: first failed boundary Narrow the fault

No receiver interest: inspect host join, IGMP and the local L2 snooping/router-facing path. Interest but missing shared tree: inspect RP mapping and reachability. Source not discovered/delivered: inspect source registration and the actual source RPF path. Incorrect IIF can cause an RPF drop even with PIM neighbors present.

An OIL with no packet delivery requires source traffic/TTL, counters, downstream links and receiver behavior. A PIM neighbor alone is not group membership or forwarding evidence. Keep the RP path and source path distinct when interpreting transitions toward a source tree.

Step 4 Verification & troubleshooting Narrow the fault

1. Verify multicast routing is enabled.

2. Verify PIM interface state and neighbors.

3. Verify RP mapping for the group.

4. Verify receiver IGMP membership.

5. Check RPF toward source/RP as appropriate.

6. Inspect show ip mroute IIF/OIL and state flags.

7. Validate data flow after control-plane state is correct.

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.

other · 1
Command lookup Jump straight to Cisco syntax
Drill down

Subtopics

Go one level deeper into this subject.

Failure signatures

Recognize the symptom, then prove the boundary

Observed symptom → candidate boundary → discriminating check → original-test closure. A signature narrows the search; it never proves root cause by itself.

Expected PIM neighbor is missing
1 · Observe

The intended multicast routing adjacency is absent on an interface where it should form.

2 · Candidate boundaries

PIM not enabled · L3/interface reachability · control-plane filtering · wrong interface/network boundary

3 · Discriminate

check interface/PIM enablement → prove unicast neighbor reachability → inspect control-plane filtering

4 · Proof limit

Missing PIM adjacency does not prove receiver membership is wrong.

Repeat the original failing test after the minimum controlled change before calling recovery verified.
Key points

Every router must agree on the RP for each group range (static, Auto-RP or BSR). (*,G) means the shared tree; (S,G) the source tree. The source's router must reach the RP to register, and the RP must be reachable from all receivers' routers.

Key checks
  • show ip igmp groups — groups joined on the receivers' router.
  • show ip pim neighbor — PIM neighbours.
  • show ip pim rp mapping — the rendezvous point for each group range.
  • show ip mroute <group> — (*,G) and (S,G) entries: incoming interface, outgoing list, flags.
  • show ip rpf <source> — the interface the router expects traffic from that source on.
  • show ip mroute <group> count — packets forwarded per entry.
ReferenceWhat it is1 section · depth on demand

What it is

PIM Sparse Mode builds multicast distribution state only where receivers request it. In traditional ASM, a Rendezvous Point (RP) provides a shared-tree meeting point before routers may transition to source-specific shortest-path state.

Multicast delivery joins host membership to router IGMP state, PIM neighbor/RP or source-tree state, RPF validation and outgoing-interface-list programming.

ReferenceHow it works2 sections · depth on demand

Shared tree and source tree

In ASM PIM-SM, receiver joins initially build toward the RP and can create (*,G) shared-tree state. Active-source traffic can produce (S,G) source state and, depending on platform/design, shortest-path-tree forwarding toward S. Use both entries to understand where the tree changes.

PIM Sparse Mode: observation versus configuration

Scope: IPv4 ASM PIM-SM on supported IOS / IOS XE, source S and non-SSM group G explicitly selected. ip multicast-routing enables configuration; it is not a read-only state command.

Read PIM interfaces/neighbors, show ip pim rp mapping, receiver-side show ip igmp groups, show ip rpf <source> and show ip mroute <group>. Inspect the actual multicast RPF source, including configured multicast-specific route policy, rather than assuming every unicast route is the whole decision.

RP/shared-tree (*,G), source-tree (S,G), IIF and OIL are different observations. Reference: Cisco multicast routing.

ReferenceImportant terms & boundaries3 sections · depth on demand

In depth

PIM sparse mode

PIM sparse mode (PIM-SM) builds multicast trees only where receivers asked for traffic. RFC 7761 describes the operation: receivers' designated routers send (*,G) Joins towards the RP to build the shared tree; a source's DR encapsulates the first packets in Register messages to the RP, which joins towards the source and sends a Register-Stop once native traffic arrives; last-hop routers may then switch to the source tree.

Tree building (RFC 7761)

PhaseMessages
Receiver joinsIGMP report → (*,G) Join hop by hop to the RP
Source startsDR sends Register (unicast, encapsulated) to the RP
RP joins the source(S,G) Join towards the source; Register-Stop to the DR
SPT switchoverLast-hop router sends (S,G) Join to the source and (S,G,rpt) Prune towards the RP
Duplicates on a LANAssert elects one forwarder

Key state

EntryMeaning
(*,G)Shared tree state for group G
(S,G)Source tree state
(S,G,rpt)Prune of S from the shared tree
R3# show ip mroute 239.1.1.1
(*, 239.1.1.1), 01:02:11/00:03:12, RP 10.255.0.1, flags: SJC
  Incoming interface: GigabitEthernet0/0/1, RPF nbr 10.0.13.1
  Outgoing interface list:
    Vlan130, Forward/Sparse, 01:02:11/00:03:12
(10.10.0.25, 239.1.1.1), 00:04:02/00:02:55, flags: JT
  Incoming interface: GigabitEthernet0/0/2, RPF nbr 10.0.23.2
  Outgoing interface list:
    Vlan130, Forward/Sparse, 00:04:02/00:03:12
R3# show ip pim interface
R3# show ip pim rp mapping

Design points

PointDetail
RP placement and redundancyAnycast RP with MSDP or PIM anycast RP
DR on each LANHighest priority, then highest IP
SPT thresholdDefault switchover on first packet in IOS; ip pim spt-threshold infinity keeps the shared tree
SSM rangeExcluded from the RP mapping

Checks

Missing traffic usually comes from a missing RP mapping, an RPF failure, a missing PIM neighbour or no IGMP membership; check them in that order along the path.

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.

State model and protocol mechanics

PIM Sparse Mode forms neighbor relationships on multicast-enabled router interfaces and builds control state in response to receiver joins and source activity. In Any-Source Multicast, the Rendezvous Point provides a meeting function: receiver-side routers can build shared-tree (*,G) state toward the RP, while source registration and subsequent switching can create source-specific (S,G) state along a shortest path. Each multicast forwarding entry has an incoming interface selected by Reverse Path Forwarding logic and one or more outgoing interfaces that lead toward interested receivers. PIM itself does not calculate unicast reachability; it depends on the existing unicast routing table (or multicast-specific routing information where supported) to determine the RPF direction. This creates a tight but explicit dependency between unicast topology and multicast tree formation.

Limits and common misconceptions

A PIM neighbor relationship shows local multicast control adjacency, not a complete multicast tree. An RP mapping shows control configuration/selection, not that source registration or receiver joins are functioning. (*,G) and (S,G) states have different meanings and can coexist during normal transition; one should not be treated as universally “better.” Sparse Mode depends on unicast reachability for RPF, so multicast can fail even when every PIM-facing interface is operational. Conversely, unicast ping success to the source does not show the multicast tree or receiver state is present. Separate receiver membership, PIM adjacency, RP/source control state, RPF, mroute OIL and actual packet delivery.

ReferenceConfiguration & state1 section · depth on demand

Design and configuration model

Enable multicast routing intentionally, enable PIM sparse mode on every routed interface that should participate in the multicast path, and define a robust RP strategy for ASM groups. Static RP configuration is simple but operationally centralized; dynamic mechanisms may provide scale/resilience but add their own control state. Keep receiver-side IGMP, PIM transit interfaces and source-facing reachability aligned. Avoid enabling PIM everywhere without a topology/security reason, especially on untrusted boundaries. For SSM, use the SSM model instead of forcing RP semantics where source-specific receiver signaling is available. Document which unicast route source determines RPF, because a normal unicast routing change can silently alter multicast incoming-interface expectations.

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 docProtocol standard + deployed implementation RFC 7761

Authoritative/upstream documentation reviewed for bounded claims in Routing → Multicast → PIM Sparse Mode. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.rfc-editor.org/rfc/rfc7761.html · confidence 94%
2026-09-13 · vendor docCisco IOS XE current

Official Cisco vendor documentation reviewed for bounded reference claims: PIM sparse-mode, RPF and multicast forwarding state. This is documentation-based technical verification, not lab or production-runtime proof. Deployment-specific applicability and runtime outcome remain separate evidence.

Basis: https://www.cisco.com/c/en/us/td/docs/routers/ios-xe/ip-multicast/ip-multicast/m_imc_basic_cfg-0.html · confidence 94%
Useful command sets

Commands commonly referenced together

Compact reference collections only; they are not a guided troubleshooting workflow.

IOS/IOS XE Multicast delivery bundle

IGMP → PIM → RPF/mroute

Use when a receiver is not getting multicast traffic.
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Embedded reference data

Quick lookup tables

PIM-SM tree state

How to read shared and source entries

StateMeaningTypical upstream reference
(*,G)shared-tree state for group Gtoward RP
(S,G)source-specific state for source S/group Gtoward source S
IIFvalid incoming directionRPF path
OILdownstream forwarding branchesreceiver/PIM joins

Multicast IGMP / PIM / RPF boundaries

Which subsystem answers which multicast question.

MechanismMain question
IGMPIs there receiver interest on this local LAN?
PIMHow do multicast routers build/control the tree?
RPFDid traffic arrive from the expected source-facing direction?
mroute IIFWhich interface should source traffic enter?
OILWhich interfaces should receive forwarded multicast traffic?

PIM Sparse Mode · operational reference

Compact state and interpretation boundaries for fast lookup.

Multicast stateMeaning
PIM neighborRouter control adjacency on a link
RP mappingASM rendezvous-point selection
(*,G)Shared-tree group state
(S,G)Source-specific tree/forwarding state
IIF/OILExpected incoming and receiver-facing outgoing interfaces
Embedded quick reference

Operational notes

Former standalone Cheat Sheet content now lives directly inside the Topic where it belongs.

PIM sparse-mode skeleton

Enable multicast routing and PIM on the routed path

ip multicast-routing
!
interface GigabitEthernet0/0
 ip pim sparse-mode
!
interface Vlan40
 ip pim sparse-mode

RP configuration/discovery depends on the design. Verify IGMP receiver state, PIM neighbors, then mroute IIF/RPF/OIL.

Multicast delivery cheat sheet

Receiver interest → PIM → RPF → mroute

1. show ip igmp groups — receiver interest.

2. show ip pim neighbor — multicast control adjacency.

3. show ip mroute — IIF/RPF/OIL forwarding state.

4. Verify unicast route toward the source for RPF.

5. Then inspect downstream L2/receiver/application.

IGMP membership alone does not prove the multicast tree forwards.

Multicast Fast Check

Receiver → IGMP → RPF → PIM tree → forwarding.

30-second flow

1. Receiver membership / IGMP

2. show ip igmp groups

3. show ip rpf <source>

4. show ip pim neighbor

5. show ip mroute <group>

6. Packet counters/capture

Husk

RPF is source-facing routing evidence; IGMP membership is receiver-facing evidence.

Confirmation

Confirm action

Continue?