Vous êtes sur la page 1sur 17

2002, Cisco Systems, Inc. All rights reserved.

Chapitre 8
Protocole CDP

2002, Cisco Systems, Inc. All rights reserved.

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

2002, Cisco Systems, Inc. All rights reserved.

ICND 2.00-3

Le protocole CDP

 CDP v2 apporte les informations


supplmentaires suivantes :
Le VLAN natif
Le nom de domaine VTP
Le mode de transmission (half ou full duplex)

2002, Cisco Systems, Inc. All rights reserved.

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

La commande show cdp neighbor


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 neighbors


Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
S - Switch, H - Host, I - IGMP, r - Repeater
Device ID
Local Intrfce Holdtme Capability Platform Port ID
RouterB
Ser 0
148
R
2522
Ser 1
SwitchA0050BD855780 Eth 0
167
TS
1900
2

SwitchA fournit galement son adresse MAC


2002, Cisco Systems, Inc. All rights reserved.

ICND 2.00-6

La commande show cdp neighbor detail


SwitchA

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#sh cdp neighbor detail


------------------------Device ID: RouterB
Entry address(es):
IP address: 10.1.1.2
Platform: cisco 2522, Capabilities: Router
Interface: Serial0, Port ID (outgoing port): Serial1
Holdtime : 168 sec
Version :
IOS (tm) 2500 Software (C2500-JS-L), Version 12.0(3), RELEASE SOFTWARE (fci)

7
2002, Cisco Systems, Inc. All rights reserved.

ICND 2.00-7

La commande show cdp entry *


SwitchA

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#sh cdp entry *


------------------------Device ID: RouterB
Entry address(es):
IP address: 10.1.1.2
Platform: cisco 2522, Capabilities: Router
Interface: Serial0, Port ID (outgoing port): Serial1
Holdtime : 168 sec
Version :
IOS (tm) 2500 Software (C2500-JS-L), Version 12.0(3), RELEASE SOFTWARE (fci)

8
2002, Cisco Systems, Inc. All rights reserved.

ICND 2.00-8

La commande show cdp entry <hostname>


SwitchA

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#sh cdp entry Router B


------------------------Device ID: RouterB
Entry address(es):
IP address: 10.1.1.2
Platform: cisco 2522, Capabilities: Router
Interface: Serial0, Port ID (outgoing port): Serial1
Holdtime : 168 sec
Version :
IOS (tm) 2500 Software (C2500-JS-L), Version 12.0(3), RELEASE SOFTWARE (fci)

9
2002, Cisco Systems, Inc. All rights reserved.

ICND 2.00-9

La commande show cdp traffic


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 traffic


CDP counters :
Packets output: 56, Input: 38
Hdr syntax: 0, Chksum error: 0, Encaps failed: 3
No memory: 0, Invalid packet: 0, Fragmented: 0

10
2002, Cisco Systems, Inc. All rights reserved.

ICND 2.00-10

La commande show cdp interface


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 interface


BRI0 is administratively down, line protocol is down
Encapsulation HDLC
Sending CDP packets every 60 seconds
Holdtime is 180 seconds

11
2002, Cisco Systems, Inc. All rights reserved.

ICND 2.00-11

Commande pour visualiser les timers


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
Sending CDP packets every 60 seconds
Holdtime is 180 seconds

12
2002, Cisco Systems, Inc. All rights reserved.

ICND 2.00-12

Configuration des timers dez mise jour


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#config terminal
RouterA(config)#cdp timer <sec>
RouterA(config)#cdp timer 100

13
2002, Cisco Systems, Inc. All rights reserved.

ICND 2.00-13

Configuration des timers holddown


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#config terminal
RouterA(config)#cdp holdtime <sec>
RouterA(config)#cdp holdtime 100

14
2002, Cisco Systems, Inc. All rights reserved.

ICND 2.00-14

Commande pour desactiver cdp sur un routeur


SwitchA

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

Commande pour desactiver cdp sur une interface


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#config terminal
RouterA(config)#interface s0
RouterA(config-if)#no cdp enable

16
2002, Cisco Systems, Inc. All rights reserved.

ICND 2.00-16

Vous aimerez peut-être aussi