Filtering PIM Neighbors
Problem
You want to prevent your router from accepting PIM packets from another device.
Solution
In this example, we will configure a neighbor filter on Router1’s FastEthernet interface, which it
uses to connect to a foreign router called Router2:
Router1#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router1(config)#ip multicast-routingRouter1(config)#interfaceRouter1(config-if)#FastEthernet0/0ip addressRouter1(config-if)#192.168.1.1 255.255.255.0ip pim sparse-modeRouter1(config-if)#ip pim neighbor-filterRouter1(config-if)#18exitRouter1(config)#access-list18deny anyRouter1(config)#endRouter1#
Then, on the foreign router, we must configure an igmp helper-address:
Router2#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router2(config)#ip multicast-routingRouter2(config)#interfaceRouter2(config-if)#FastEthernet0/0ip addressRouter2(config-if)#192.168.1.2 255.255.255.0ip pim dense-modeRouter2(config-if)#ip igmp helper-addressRouter2(config-if)#192.168.1.1endRouter2#
Discussion
There are two main reasons for configuring a PIM neighbor filter. The first and most obvious reason is security. If you don’t control all of the routers on a network segment, but you want to maintain administrative control over your multicast routing trees, you might want to prevent the foreign devices from taking part in PIM. In particular, since PIM elects a Designated Router (DR) to handle multicast forwarding ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access