Before using the PIM routing protocol it is necessary to enable unicast and multicast forwarding on your router. In the following example the unicast routing protocol is started using RIP. The following are sample commands used to setting up the router:
Router1# configure terminal
Router1(config)# no ip routing
Router1(config)# ip routing
Router1(config)# ip multicast-routing
Router1(config)# router rip
Router1(config-router)# version 2
Router1(config-router)# network 10.0.0.0
Router1(config-router)# exit
After executing the above commands, you must configure the IP addresses of the interfaces of the routers and enable the multicast routing protocol PIM-DM on each interface. The following are sample commands useful for configurations:
Router1(config)# interface Fa0/0
Router1(config-if)# no shutdown
Router1(config-if)# ip address 10.0.2.1 255.255.255.0
Router1(config-if)# ip pim dense-mode
Router1(config-if)# interfacef Fa0/1
Router1(config-if)# no shutdown
Router1(config-if)# ip address 10.0.1.1 255.255.255.0
Router1(config-if)# ip pim dense-mode
Router1(config-if)# interface Serial1/0
Router1(config-if)# no shutdown
Router1(config-if)# ip address 10.0.5.1 255.255.255.0
Router1(config-if)# ip pim dense-mode
Router1(config-if)# end
Router1# clear ip route *
Router1# clear ip mroute *