set cdp auth
6-4 Discovery Protocol Configuration
set cdp auth
UsethiscommandtosetaglobalCDPauthenticationcode.
Syntax
set cdp auth auth-code
Parameters
Defaults
None.
Mode
Switchcommand,readwrite.
Usage
Theauthenticationcodevaluedeterminesaswitch’sCDPdomain.Iftwoormoreswitcheshave
thesameCDPauthenticationcode,theywillbeenteredintoeachother’sCDPneighbortables.If
theyhavedifferentauthenticationcodes,theyareindifferentdomainsandwillnotbeentered
intoeachother’sCDPneighbortables.
Aswitchwiththedefaultauthenticationcode(16nullcharacters)willrecognizeallswitches,no
matterwhattheirauthenticationcode,andenterthemintoitsCDPneighbortable.
Example
ThisexampleshowshowtosettheCDPauthenticationcodeto1,2,3,4,5,6,7,8:
C3(su)->set cdp auth 1,2,3,4,5,6,7,8:
set cdp interval
Usethiscommandtosetthemessageintervalfrequency(inseconds)oftheCDPdiscovery
protocol.
Syntax
set cdp interval frequency
Parameters
Defaults
None.
Mode
Switchcommand,readwrite.
authcode SpecifiesanauthenticationcodefortheCDPprotocol.Thiscanbeupto16
hexadecimalvaluesseparatedbycommas.
frequency SpecifiesthetransmitfrequencyofCDPmessagesinseconds.Validvalues
arefrom5to900seconds.