Enabling/disabling PIM-SM in an interface

Prerequisites

You must be in the interface configuration context, as indicated by the switch(config-if)# prompt, switch(config-if-vlan)# prompt, or switch(config-lag-if)# prompt.

Procedure

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

For example, the following command enables PIM-SM on interface vlan40:

For IPv4 configurations:

ip pim-sparse {enable|disable}

switch(config)# interface vlan40 switch(config-if-vlan)# ip address 40.0.0.4/24 switch(config-if-vlan)# ip pim-sparse enable

For IPv6 configurations:

ipv6 pim6-sparse {enable|disable}

switch(config)# interface vlan40 switch(config-if-vlan)# ip address 2001::01/64 switch(config-if-vlan)# ipv6 pim6-sparse enable

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