This example defines sparse mode for PIM component 2. You can use the same procedure to set the mode to dense, but you would specify set mode dense.
SEFOS# configure terminal SEFOS(config)# set ip pim enable SEFOS(config)# ip pim component 2 SEFOS(pim-comp)# set mode sparse SEFOS(pim-comp)# end
SEFOS# show ip pim component 2 PIM Component Information --------------------------- Component-Id: 2 PIM Mode: sparse, PIM Version: 2 Elected BSR: 0.0.0.0 Candidate RP Holdtime: 0