Configuring router protocol independent multicast (PIM)
For more information, see Configuration steps for PIM-SM.
The following steps configure PIM-SM in the router PIM context (switch(pim)#_
):
-
Specify the VLAN interface to advertise as the Bootstrap Router (BSR) candidate and enable the router to advertise itself as a candidate BSR in a PIM-SM domain. (Use the command
bsr-candidate source-ip-vlan [vid].
) -
Optional: To make BSR candidate selection occur quickly and predictably, set a different priority on each BSR candidate in the domain. (Use the command
bsr-candidate priority
.) -
Do one of the following to configure RP operation:
- Recommended: Enable Candidate Rendezvous Point (C-RP) operation and configure the router to advertise itself as a C-RP to the BSR for the current domain. This step includes the option to allow the C-RP to be a candidate for either all possible multicast groups or for up to four multicast groups and/or ranges of groups. Use the command
rp-candidate source-ip-vlan [vid] [group-addr/group-mask .]
- Optional: Use the command
to statically configure the router as the RP for a specified multicast group or range of multicast groups. (This must be configured on all PIM-SM routers in the domain.)rp-address [ip-addr] [group-addr/group-mask]
- Recommended: Enable Candidate Rendezvous Point (C-RP) operation and configure the router to advertise itself as a C-RP to the BSR for the current domain. This step includes the option to allow the C-RP to be a candidate for either all possible multicast groups or for up to four multicast groups and/or ranges of groups. Use the command
-
Optional: In the PIM router context, change one or more of the traffic control settings in the following table.
Options accessed in router PIM context
Operation
rp-candidate group-prefix [group-addr/group-mask]
Enter an address and mask to define an additional multicast group or a range of groups.
rp-candidate hold-time [30-255]
Tells the BSR how long it should expect the sending C-RP router to be operative. Default: 150; 0 if router is not a candidate
rp-candidate priority [0-255]
Changes the priority for the C-RP router. When multiple C-RPs are configured for the same multicast groups, the priority determines which router becomes the RP for such groups. A smaller value means a higher priority. Default: 192
Changing the shortest-path tree (SPT) operationno spt-threshold
Disable or enable the router's ability to switch multicast traffic flows to the shortest path tree. Default: enabled
join-prune-interval [5-65535]
Option: Globally change the interval for the frequency at which join and prune messages are forwarded on the router's VLAN interfaces. Default: 60 seconds
trap [neighbor-loss | hardware-mrt-full | software-mrt-full | all]
Option: Enable or disable PIM traps. Default: disabled