PIM Configuration Examples
Example 1: PIM-SM with Dynamic RP
1. Globally enable the PIM feature:
2. Configure a PIM network component with dynamic RP settings, and set it for PIM
Sparse Mode:
3. Define an IP interface for use with PIM:
4. Enable PIM on the IP interface and assign the PIM component:
5. Set the Bootstrap Router (BSR) preference:
© Copyright Lenovo 2017
This example configures PIM Sparse Mode for one IP interface, with the switch
acting as a candidate for dynamic Rendezvous Point (RP) selection.
CN 4093(config)# ip pim enable
CN 4093(config)# ip pim component 1
CN 4093(config-ip-pim-comp)# mode sparse
CN 4093(config-ip-pim-comp)# rp-candidate rp-address 225.1.0.0
255.255.0.0 10.10.1.1
CN 4093(config-ip-pim-comp)# exit
Where 225.1.0.0 is the multicast group base IP address, 255.255.0.0 is the multicast
group address mask, and 10.10.1.1 is the switch RP candidate address.
Note: Because, Sparse Mode is set by default for PIM component 1, the mode
command is needed only if the mode has been previously changed.
CN 4093(config)# interface ip 111
CN 4093(config-ip-if)# ip address 10.10.1.1 255.255.255.255
CN 4093(config-ip-if)# vlan 11
CN 4093(config-ip-if)# enable
The IP interface represents the PIM network being connected to the switch. The
IPv4 addresses in the defined range must not be included in another IP interface on
the switch under a different VLAN.
CN 4093(config-ip-if)# ip pim enable
CN 4093(config-ip-if)# ip pim component-id 1
Note: Because, PIM component 1 is assigned to the interface by default, the
component-id command is needed only if the setting has been previously
changed.
CN 4093(config-ip-if)# ip pim cbsr-preference 135
CN 4093(config-ip-if)# exit
Chapter 31: Protocol Independent Multicast
505