Cheat Sheet (Referencia Técnica)
CDP / LLDP
Section titled “CDP / LLDP”| Característica | CDP | LLDP |
|---|---|---|
| Estándar | Propio Cisco | IEEE 802.1AB |
| Intervalo | 60s | 30s |
| Holdtime | 180s | 120s |
| Multi-vendor | No | Sí |
Comandos CDP
Section titled “Comandos CDP”cdp run # Habilitar globalmentecdp timer <segundos> # Intervalo de envíocdp holdtime <segundos> # Tiempo antes de borrar vecinoshow cdp neighbors # Lista de vecinosshow cdp neighbors detail # Detalle (IP, platform, puerto)show cdp interface <iface> # Estado CDP en interfazComandos LLDP
Section titled “Comandos LLDP”lldp run # Habilitar globalmentelldp timer <segundos> # Intervalo de envíolldp holdtime <segundos> # Tiempo antes de borrar vecinoshow lldp neighbors # Lista de vecinosshow lldp neighbors detail # Detalle LLDPshow lldp interface <iface> # Estado LLDP en interfazVersiones
Section titled “Versiones”| Versión | Seguridad | Autenticación | Cifrado |
|---|---|---|---|
| v1 | Ninguna | Community (texto plano) | No |
| v2c | Ninguna | Community (texto plano) | No |
| v3 | Alta | USM (hash) | DES/AES |
Comandos SNMP
Section titled “Comandos SNMP”snmp-server community <string> RO # Solo lecturasnmp-server community <string> RW # Lectura/escriturasnmp-server host <ip> version 2c <community> # IP del NMSsnmp-server enable traps # Habilitar trapssnmp-server contact <texto> # Contactosnmp-server location <texto> # Ubicaciónshow snmp # Estado SNMPshow snmp user # Usuarios SNMPshow snmp group # Grupos SNMPSyslog
Section titled “Syslog”Niveles de severidad
Section titled “Niveles de severidad”| Nivel | Nombre | Descripción |
|---|---|---|
| 0 | Emergencies | Sistema inoperativo |
| 1 | Alerts | Acción inmediata |
| 2 | Critical | Condiciones críticas |
| 3 | Errors | Errores |
| 4 | Warnings | Advertencias |
| 5 | Notifications | Eventos significativos |
| 6 | Informational | Información general |
| 7 | Debugging | Debug |
Comandos Syslog
Section titled “Comandos Syslog”logging host <ip> # Servidor sysloglogging trap <nivel> # Severidad mínimalogging buffered <bytes> # Buffer locallogging source-interface <iface> # IP de origenservice timestamps log datetime msec # Timestamps precisosshow logging # Ver logsshow logging history # Historialclear logging # Limpiar bufferTroubleshooting: 6 pasos
Section titled “Troubleshooting: 6 pasos”- Definir el problema
- Recopilar información
- Analizar la información
- Eliminar posibilidades
- Implementar la solución
- Verificar y documentar
Herramientas por capa OSI
Section titled “Herramientas por capa OSI”| Capa | Herramienta | Comando |
|---|---|---|
| 1 (Física) | LED, cable | show interfaces status |
| 2 (Enlace) | MAC table, STP | show mac address-table, show spanning-tree |
| 3 (Red) | IP, routing | show ip route, ping, traceroute |
| 4 (Transporte) | Puertos, ACLs | show access-lists, test ip port |
| 5–7 (App) | CPU, memoria | show processes cpu, show memory |
Comandos show esenciales
Section titled “Comandos show esenciales”show interfaces # Estado y errores de interfacesshow ip route # Tabla de routingshow vlan brief # VLANs y puertosshow mac address-table # Tabla MACshow arp # Tabla ARPshow cdp neighbors # Vecinos CDPshow running-config # Configuración activashow log # Mensajes de loggingshow processes cpu # Uso de CPUshow memory # Uso de memoriadebug ip packet # Debug de paquetes (¡con cuidado!)undebug all # Apagar todos los debugs