Enabling/Disabling PIM-SM in an interface

Prerequisites
You must be in the PIM configuration context, as indicated by the switch(config-pim)# prompt.

IP address must be configured on the interface to enable PIM-SM.

Procedure
Enable or disable PIM-SM in an interface using the following command.

ip pim-sparse {enable|disable}

For example, the following command enables PIM-SM on interface vlan40:
switch(config)# interface vlan40
switch(config-if-vlan)# ip address 40.0.0.4/24
switch(config-if-vlan)# ip pim-sparse enable

The no form of the command disables PIM-SM in an interface.