set cdp auth

Use this command to set a global CDP authentication code.

Syntax

set cdp auth auth-code

Parameters

auth-code Specifies an authentication code for the CDP protocol. This can be up to 16 hexadecimal values separated by commas. The default value is 00-00-00-00-00-00-00-00.

Defaults

None.

Mode

All command modes.

Usage

This value determines a device‘s CDP domain. If two or more devices have the same CDP authentication code, they will be entered into each other's CDP neighbor tables. If they have different authentication codes, they are in different domains and will not be entered into each other‘s CDP neighbor tables.

A device with the default authentication code (16 null characters) will recognize all devices, no matter what their authentication code, and enter them into its CDP neighbor table.

Example

This example shows how to set the CDP authentication code to 1,2,3,4,5,6,7,8:

System(rw)->set cdp auth 1,2,3,4,5,6,7,8