Configuring ANCP Neighbors

From the L2C Configuration mode (config-l2c), you can access the L2C Neighbor Configuration mode, from which you can create and manage ANCP neighbors.

Accessing L2C Neighbor Configuration Mode for ANCP

Use the neighbor command to create an ANCP neighbor and access the L2C Neighbor Configuration (config-l2c-neighbor) mode.

neighbor

Defining an ANCP Neighbor

The L2C Neighbor Configuration mode enables you to define an ANCP neighbor by specifying a neighbor ID and the maximum number of branches that the neighbor can have.

id

max-branches

Limiting Discovery Table Entries

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

Clearing ANCP Neighbors

You can clear an existing ANCP neighbor using the clear l2c command.

clear l2c neighbor