⚠️ La bonne pratique est d désactiver le protocole DCP pour qu'aucun attaquant ne puisse scanner le réseau à la recherche d'information réseau.
Router(config)# cdp run
Router(config)# no cdp run
Router(config)# interface GigabitEthernet0/1
Router(config-if)# cdp enable
Router(config)# interface GigabitEthernet0/1
Router(config-if)# no cdp enable
Router# show cdp neighbors
💡 Capability Codes:
R - Router, T - Trans Bridge, B - Source Route Bridge, S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone, D - Remote, C - CVTA, M - Two-port Mac Relay
Router# show cdp neighbors detail
💡 Cette commande affiche des détails supplémentaires comme l'adresse IP du voisin et le modèle du périphérique.
Router# show cdp entry *
Router(config)# show cdp
Router(config)# cdp timer 30
💡 Cette commande ajuste l'intervalle à 30 secondes.
Router(config)# cdp holdtime 120
Router(config)# lldp run
Router(config)# no lldp run
Router(config)# interface GigabitEthernet0/1
Router(config-if)# lldp transmit
Router(config-if)# lldp receive
Router(config)# interface GigabitEthernet0/1
Router(config-if)# no lldp transmit
Router(config-if)# no lldp receive
Router# show lldp neighbors
💡 Cette commande affiche des informations telles que l'ID du périphérique, le port local, le port distant et le type de plateforme.
Router# show lldp neighbors detail
💡 Cette commande affiche des détails supplémentaires comme l'adresse IP du voisin et le modèle du périphérique.
Router(config)# lldp timer 20
💡 Cette commande réduit l'intervalle à 20 secondes.
Router(config)# lldp holdtime 90