Académique Documents
Professionnel Documents
Culture Documents
Chapitre 8
Protocole CDP
Le protocole CDP
CDP (Cisco Discovery Protocol) est un protocole propritaire Cisco de
couche 2 qui permet dobtenir des dispositifs Cisco voisins un certain
nombre dinformation leur sujet :
Type de dispositif
Le nom du dispositif
Linterface locale
La dure de conservation
Numro de modle
CDP est activ par dfaut depuis la version 10.3. Les quipements
envoient des messages CDP aux dispositifs Cisco directement
connects de faon priodique
ICND 2.00-3
Le protocole CDP
ICND 2.00-4
Utilisation de CDP
SwitchA
RouterA
S0
10.3.3.2
10.3.3.1
10.1.1.1
S1
RouterB
SwitchB
10.1.1.2
10.2.2.1
10.2.2.2
RouterA#sh cdp ?
entry
Information for specific neighbor entry
interface CDP interface status and configuration
neighbors CDP neighbor entries
traffic CDP statistics
5
2002, Cisco Systems, Inc. All rights reserved.
ICND 2.00-5
RouterA
S0
10.3.3.2
10.3.3.1
10.1.1.1
S1
RouterB
SwitchB
10.1.1.2
10.2.2.1
10.2.2.2
ICND 2.00-6
RouterA
S0
10.3.3.2
10.3.3.1
S1
RouterB
SwitchB
10.1.1.2
10.1.1.1
10.2.2.1
10.2.2.2
7
2002, Cisco Systems, Inc. All rights reserved.
ICND 2.00-7
RouterA
S0
10.3.3.2
10.3.3.1
S1
RouterB
SwitchB
10.1.1.2
10.1.1.1
10.2.2.1
10.2.2.2
8
2002, Cisco Systems, Inc. All rights reserved.
ICND 2.00-8
RouterA
S0
10.3.3.2
10.3.3.1
S1
RouterB
SwitchB
10.1.1.2
10.1.1.1
10.2.2.1
10.2.2.2
9
2002, Cisco Systems, Inc. All rights reserved.
ICND 2.00-9
RouterA
S0
10.3.3.2
10.3.3.1
10.1.1.1
S1
RouterB
SwitchB
10.1.1.2
10.2.2.1
10.2.2.2
10
2002, Cisco Systems, Inc. All rights reserved.
ICND 2.00-10
RouterA
S0
10.3.3.2
10.3.3.1
10.1.1.1
S1
RouterB
SwitchB
10.1.1.2
10.2.2.1
10.2.2.2
11
2002, Cisco Systems, Inc. All rights reserved.
ICND 2.00-11
RouterA
S0
10.3.3.2
10.3.3.1
10.1.1.1
S1
RouterB
SwitchB
10.1.1.2
10.2.2.1
10.2.2.2
RouterA#sh cdp
Sending CDP packets every 60 seconds
Holdtime is 180 seconds
12
2002, Cisco Systems, Inc. All rights reserved.
ICND 2.00-12
RouterA
S0
10.3.3.2
10.3.3.1
10.1.1.1
S1
RouterB
SwitchB
10.1.1.2
10.2.2.1
10.2.2.2
RouterA#config terminal
RouterA(config)#cdp timer <sec>
RouterA(config)#cdp timer 100
13
2002, Cisco Systems, Inc. All rights reserved.
ICND 2.00-13
RouterA
S0
10.3.3.2
10.3.3.1
10.1.1.1
S1
RouterB
SwitchB
10.1.1.2
10.2.2.1
10.2.2.2
RouterA#config terminal
RouterA(config)#cdp holdtime <sec>
RouterA(config)#cdp holdtime 100
14
2002, Cisco Systems, Inc. All rights reserved.
ICND 2.00-14
RouterA
S0
10.3.3.2
10.3.3.1
S1
RouterB
SwitchB
10.1.1.2
10.1.1.1
10.2.2.1
10.2.2.2
RouterA#config terminal
RouterA(config)#no cdp run
15
2002, Cisco Systems, Inc. All rights reserved.
ICND 2.00-15
RouterA
S0
10.3.3.2
10.3.3.1
10.1.1.1
S1
RouterB
SwitchB
10.1.1.2
10.2.2.1
10.2.2.2
RouterA#config terminal
RouterA(config)#interface s0
RouterA(config-if)#no cdp enable
16
2002, Cisco Systems, Inc. All rights reserved.
ICND 2.00-16