You use the max-discovery-table-entries command to specify the maximum number of discovery table entries that a neighbor can have.
Using this command to change the maximum number of entries when an already greater number of current entries exists in the discovery table does not remove any existing entries. Instead, future entries are prevented. For example, if the current table contains 5000 entries, and you specify a maximum of 4000 entries, the software does not remove any existing entries from the table. The software prevents any new entries until the number of table entries falls below the specified maximum.
max-discovery-table-entries
- host1(l2c-neighbor)#max-discovery-table-entries
4000