Example: Configuring PIM Sparse Mode
This example shows how to configure a static RP router and non-RP routers for sparse mode.
- Include the address statement at the [edit protocols pim rp local] hierarchy level.
For all interfaces, include the mode statement to set the mode to sparse, and include the version statement to set the PIM version to 2 at the [edit protocols PIM rp interface all] hierarchy level. When configuring all interfaces, exclude the fxp0.0 management interface by including the disable statement for that interface.
All systems on a subnet must run the same version of PIM.
The default PIM version can be version 1 or version 2, depending on the mode you are configuring. PIMv1 is the default for rendezvous point (RP) mode (at the [edit protocols pim rp static address address] hierarchy level). However, PIMv2 is the default for interface mode (at the [edit protocols pim interface interface-name] hierarchy level). Explicitly configured versions override the defaults. This example explicitly configures PIMv2 on the interfaces.

Note: You do not need to configure Internet Group Management Protocol (IGMP) version 2 for a sparse mode configuration. After you enable PIM, by default, IGMP version 2 is also enabled.
protocols {pim {interface all {mode sparse;version 2;}interface fxp0.0 {disable;}rp {local {family inet {address 192.168.3.253;}}}}} - In this example, you configure a non-RP
router for PIM sparse mode. To specify a static RP address, include
the address statement at the [edit protocols pim rp static] hierarchy level. Include the version statement at the [edit protocols pim rp static address] hierarchy level to specify
PIM version 2.
Include the mode statement at the [edit protocols pim interface all] hierarchy level to configure the interfaces for sparse mode operation. Then include the version statement at the [edit protocols pim interface all mode] to specify PIM version 2 for all interfaces. When configuring all interfaces, exclude the fxp0.0 management interface by adding the disable statement for that interface.
protocols {pim {rp {static {address 198.58.3.253 {version 2;}}}interface all {mode sparse;version 2;}interface fxp0.0 {disable;}}}
