# Enabling PIM on an Interface

You can enable PIM on an interface in one of the allowed modes and specify how often the interface sends hello messages to neighbors.

You can configure PIM and MLD on the same interface. If you configure MLD and PIM on an interface, the router considers that PIM owns the interface.

ipv6 pim query-interval

- Use to specify how often the router sends hello messages to neighbors.
- Example
  host1(config-if)#ipv6 pim query-interval
- Use the no version to restore the default setting, 30 seconds.
- See ipv6 pim query-interval.

ipv6 pim sparse-mode

- Use to enable PIM in sparse mode on an interface.
- Example
  host1(config-if)#ipv6 pim sparse-mode
- Use the no version to disable PIM in sparse mode on an interface.
- See ipv6 pim sparse-mode.

ipv6 pim sparse-mode graceful-restart-duration

- Use to set the graceful restart duration for PIM sparse mode.
- Example
  host1(config-if)#ipv6 pim sparse-mode graceful-restart-duration 10
- Use the no version to return to the default duration of 30 seconds.
- See ipv6 pim sparse-mode.