Configuring Bidirectional PIM
Problem
You want to use Bidirectional PIM to improve efficiency of your sparse-mode multicast network.
Solution
To use Bidirectional PIM, you must configure all of the routers in your network to support this method of building multicast forwarding trees. The RP configuration looks like this:
Router-RP1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z. Router-RP1(config)#ip multicast-routing
Router-RP1(config)#ip pim bidir-enable
Router-RP1(config)#ip pim rp-address
192.168.12.1
bidir
Router-RP1(config)#ip pim rp-candidate
Loopback0
group-list 15 bidir
Router-RP1(config)#ip pim bsr-candidate
Router-RP1(config)#
Loopback0 1
access-list
15
permit
Router-RP1(config)#
239.5.5.0 0.0.0.255
access-list
15
deny any
Router-RP1(config)#interface Loopback0
Router-RP1(config-if)#ip address
Router-RP1(config-if)#
192.168.12.1 255.255.255.255
ip pim sparse-mode
Router-RP1(config-if)#exit
Router-RP1(config)#interface
Router-RP1(config-if)#
FastEthernet0/0
ip address
Router-RP1(config-if)#
192.168.1.1 255.255.255.0
ip pim sparse-mode
Router-RP1(config-if)#exit
Router-RP1(config)#interface
Router-RP1(config-if)#
Serial1/0
ip address
Router-RP1(config-if)#
192.168.2.5 255.255.255.252
ip pim sparse-mode
Router-RP1(config-if)#exit
Router-RP1(config)#end
Router-RP1#
And the other multicast routers in this network will be configured to use Bidirectional PIM for this RP, as follows:
Router1#configure terminal
Enter configuration commands, one per line. ...
Get Cisco IOS Cookbook, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.