Use it for most any-source multicast, and when streams do not reach receivers in another part of the network.
PIM Sparse Mode
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.
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.
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
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.Verify RPF/unicast route, IGMP receiver state and mroute/OIL.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
ip multicast-routingPrimary Commands
Configuration and operational commands for this Topic.
ip multicast-routingReferenceEnable IPv4 multicast routing globally.
Use when: Enable routed IPv4 multicast forwarding on platforms using this syntax.
Quick note: Verify PIM interfaces/neighbors and mroute after configuration.
Cisco IOS / IOS XE · mixedip pim sparse-modeReferenceEnable PIM sparse mode on the interface.
Use when: Enable PIM-SM participation on links that carry multicast control/data traffic.
Quick note: Verify with show ip pim interface and show ip pim neighbor.
ip pim rp-address <rp-address>ReferenceSet a static PIM rendezvous point address.
Use when: Provide a static RP mapping for PIM-SM ASM groups.
Quick note: Verify with show ip pim rp mapping and RPF toward RP.
Show Commands
Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.
show ip pim neighborShowInspect PIM adjacencies.
Use when: Multicast prerequisite check.
IOS/IOS XE · mixedshow ip pim interfaceShowDisplay PIM-enabled interfaces.
Use when: Verify PIM is operational on the exact routed links in the multicast path.
Quick note: Use before changing PIM mode.
Cisco IOS / IOS XE · mixedshow ip pim rp mappingShowDisplay group-to-RP mappings.
Use when: Verify which RP a group uses and whether mapping is bidirectional where applicable.
Quick note: Then verify route/RPF to RP and mroute state.
Cisco IOS / IOS XE · mixedshow ip mrouteShowShows multicast routing table entries and incoming/outgoing interfaces.
Use when: Inspect multicast tree/forwarding state for a source/group.
Quick note: Central command after IGMP/PIM/RPF prerequisites are understood.
Cisco IOS XE · mixedHow to read the output
show ip pim neighborLook 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 mrouteLook 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.
Verification & 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.
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 · 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.
Subtopics
Go one level deeper into this subject.
A PIM neighbor is another PIM-speaking router discovered on a shared routed link.
Subtopic Rendezvous PointThe Rendezvous Point is the shared-tree root used by PIM Sparse Mode ASM to connect receivers and sources during initial tree building.
Subtopic Shared TreeA PIM Sparse Mode shared tree is rooted at the RP and represented by `(*,G)` state: any source for group G can initially use the shared-tree structure.
Subtopic Source TreeA source tree is source-specific multicast state represented as `(S,G)`, with forwarding rooted toward source S for group G.
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
The intended multicast routing adjacency is absent on an interface where it should form.
PIM not enabled · L3/interface reachability · control-plane filtering · wrong interface/network boundary
check interface/PIM enablement → prove unicast neighbor reachability → inspect control-plane filtering
Missing PIM adjacency does not prove receiver membership is wrong.
Repeat the original failing test after the minimum controlled change before calling recovery verified.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.
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)
| Phase | Messages |
|---|---|
| Receiver joins | IGMP report → (*,G) Join hop by hop to the RP |
| Source starts | DR sends Register (unicast, encapsulated) to the RP |
| RP joins the source | (S,G) Join towards the source; Register-Stop to the DR |
| SPT switchover | Last-hop router sends (S,G) Join to the source and (S,G,rpt) Prune towards the RP |
| Duplicates on a LAN | Assert elects one forwarder |
Key state
| Entry | Meaning |
|---|---|
| (*,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
| Point | Detail |
|---|---|
| RP placement and redundancy | Anycast RP with MSDP or PIM anycast RP |
| DR on each LAN | Highest priority, then highest IP |
| SPT threshold | Default switchover on first packet in IOS; ip pim spt-threshold infinity keeps the shared tree |
| SSM range | Excluded 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.
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
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 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%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%Commands commonly referenced together
Compact reference collections only; they are not a guided troubleshooting workflow.
IGMP → PIM → RPF/mroute
Use when a receiver is not getting multicast traffic.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.
Quick lookup tables
PIM-SM tree state
How to read shared and source entries
| State | Meaning | Typical upstream reference |
|---|---|---|
(*,G) | shared-tree state for group G | toward RP |
(S,G) | source-specific state for source S/group G | toward source S |
| IIF | valid incoming direction | RPF path |
| OIL | downstream forwarding branches | receiver/PIM joins |
Multicast IGMP / PIM / RPF boundaries
Which subsystem answers which multicast question.
| Mechanism | Main question |
|---|---|
| IGMP | Is there receiver interest on this local LAN? |
| PIM | How do multicast routers build/control the tree? |
| RPF | Did traffic arrive from the expected source-facing direction? |
| mroute IIF | Which interface should source traffic enter? |
| OIL | Which interfaces should receive forwarded multicast traffic? |
PIM Sparse Mode · operational reference
Compact state and interpretation boundaries for fast lookup.
| Multicast state | Meaning |
|---|---|
| PIM neighbor | Router control adjacency on a link |
| RP mapping | ASM rendezvous-point selection |
(*,G) | Shared-tree group state |
(S,G) | Source-specific tree/forwarding state |
| IIF/OIL | Expected incoming and receiver-facing outgoing interfaces |
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
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.