max-mcache

Configures the maximum size of the multicast cache.

Syntax

max-mcache num
no max-mcache

Command Default

By default, the size of the multicast cache is 32768 entries for IPv4 and 4096 entries for IPv6.

Parameters

num
Specifies the number of entries in the multicast cache. Valid values range from 1 through 32768 for IPv4 and from 1 through 4096 for IPv6.

Modes

Router PIM configuration mode

Usage Guidelines

If the max-mcache is changed to a value that is less than the current max-mcache value, the existing cache routes are not automatically deleted. The cache routes are deleted when new routes are added.

The no max-mcache form of the command restores the default size of the maximum multicast cache.

Examples

The following example changes the multicast cache to 500 entries for IPv4.

device(config)# router pim
device(config-pim-router)# max-mcache 500
 

The following example changes the multicast cache to 500 entries for IPv6.

device(config)# ipv6 router pim
device(config-ipv6-router-pim-vrf-default-vrf)# max-mcache 500