Managing IPv4 and IPv6 Multicast 1217Configuring and Viewing PIM-SM for IPv4 Multicast RoutingBeginning in Privileged EXEC mode, use the following commands toconfigure PIM-SM for IPv4 multicast routing on the switch and on VLANrouting interfaces and to view PIM-SM information.Command Purposeconfigure Enter global configuration mode.ip pim sparse Enable PIM-SM as the multicast routing protocol onthe switch.ip pim spt-thresholdthresholdSet the Data Threshold rate, in Kbps (range: 0–2000)for the last-hop (or leaf) router to switch to theshortest path.ip pim register-thresholdthresholdSet the rate, in Kbps (range: 0–2000), above which theRendezvous Point router will switch to a source-specific shortest path tree.ip pim bsr-candidate vlanvlan-id hash-mask-length[priority]Configure the switch to announce its candidacy as abootstrap router (BSR).•vlan-id — A valid VLAN ID.•hash-mask-length — The length of a mask that is tobe ANDed with the group address before the hashfunction is called. All groups with the same seedhash correspond to the same RP. For example, if thisvalue is 24, only the first 24 bits of the groupaddresses matter. This allows you to get one RP formultiple groups. (Range 0–32 bits).•priority — The priority of the candidate BSR. TheBSR with the higher priority is preferred. If thepriority values are the same, the router with thehigher IP address is the BSR. (Range 0–255).ip pim rp-candidate vlanvlan-id group-address group-maskConfigure the router to advertise itself as a PIMcandidate rendezvous point (RP) to the bootstraprouter (BSR).•vlan-id — A valid VLAN ID.•group-address — Group IP address supported by RP.•group-mask — Group subnet mask for groupaddress.