Enabling/Disabling PIM-SM in an interface

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.

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
switch(config-if-vlan)# ip pim-sparse enable

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