ip pim graceful-restart

Use this command to set the multicast graceful-restart period, which is the period of time in which a restarting router and its neighbors can continue to forward multicast packets during the failover.

Syntax

ip pim graceful-restart [period value]
no ip pim graceful-restart

Parameters

period value Specifies the maximum amount of time in seconds that this router will remain in multicast graceful-restart mode starting at the time it enters graceful-restart. Possible values are 30–600 seconds. The default value is 120 seconds.

Defaults

The default value is 120 seconds.

Mode

Configuration command.

Usage

Multicast graceful restart requires OSPF graceful restart. Ensure that you have configured and enabled OSPF graceful restart before you enable multicast graceful restart. For more information about configuring and enabling OSPF graceful restart, see OSPFv2 Commands or OSPFv3 Commands.

The “no” form of this command disables the multicast graceful-restart period.

To view the current graceful-restart setting, use the show running-config pim command.

Example

This example shows the multicast graceful-restart period set to 180 seconds.

System(su-config)->ip pim graceful-restart period 180