PIM Sparse Mode
Cheat sheet · https://pcornel.dk/topic.php?topic=647
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.
Remember
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.
First 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.
Commands
show ip pim neighbor- Inspect PIM adjacencies.
show ip mroute- Shows multicast routing table entries and incoming/outgoing interfaces.
ip multicast-routing- Enable IPv4 multicast routing globally.
ip pim sparse-mode- Enable PIM sparse mode on the interface.
ip pim rp-address <rp-address>- Set a static PIM rendezvous point address.
show ip pim interface- Display PIM-enabled interfaces.
show ip pim rp mapping- Display group-to-RP mappings.
ip pim spt-threshold infinityshow ip igmp groupsshow ip rpf <source>show ip mroute <group>
Verify in this order
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
Where it usually breaks
no interest → wrong RP/shared tree → source registration/RPF → OIL or TTL/link → receiver delivery
PIM-SM tree state
| 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 |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=647