IOS Configuration: PIM
Enabling PIM Sparse-Dense Mode
- Enable multicast routing
- Turn on PIM in the appropriate mode on selected interfaces
- Set up rendezvous points (RPs)
Enable Multicast Routing
Router(config)# ip multicast-routing
Turning on PIM
PIM is enabled at the interface level.
Enabling PIM on an interface automatically enables IGMP.
Router(config-if)# ip pim {dense-mode | sparse-mode | sparse-dense-mode}
Router(config-if)# ip pim version {1 | 2}
Changing the PIM version is optional.
Configuring RPs
Manual configuration
Router(config)# ip pim rp-address <IP address> [<ACL>] [override]
Auto-RP (PIMv1)
Configure a router to act as the mapping agent:
Router(config)# ip pim send-rp-discovery <interface> scope <TTL>
The TTL specified determines the scope of the RP (in hop counts).
Configure candidate RPs:
Router(config)# ip pim send-rp-announce <interface> scope <TTL> [group-list <ACL>]
[interval <seconds>]
Bootstrap Router Method (PIMv2)
Define a BSR:
Router(config)# ip pim bsr-candidate <interface> <hash mask length> [<priority>]
Configure candidate RPs:
Router(config)# ip pim rp-candidate <interface> <ttl> [group-list <ACL>]
By default, bootstrap messages flood throughout the PIM domain. Border routers can be defined to stop forwarding the messages:
Router(config)# ip pim border
Verifying Operation
show ip mroute- Displays the multicast routing table.
show ip pim interface- Lists all interfaces participating in PIM.
show ip pim neighbors- Lists all PIM neighbors.
show ip pim rp- Displays the RP for each multicast group.
show ip rpf <address>- Inspects reverse-path forwarding information for an address.
