Guía de Comandos de Router y Switch (Cisco)
Modos del CLI
enable → Modo privilegiado
configure terminal → Configuración global
exit / end → Salir de modo
Comandos SHOW
show running-config → Configuración actual
show startup-config → Configuración guardada
show ip interface brief → Estado de interfaces
show interfaces → Detalles de interfaces
show version → Información del equipo
show mac address-table → Tabla MAC
show vlan brief → VLANs
show ip route → Tabla de rutas
Configuración básica
hostname NOMBRE → Cambiar nombre
no ip domain-lookup → Evitar DNS
enable secret PASS → Contraseña
service password-encryption → Cifrar contraseñas
banner motd #mensaje# → Mensaje
Interfaces
interface fa0/1 → Seleccionar interfaz
ip address IP MASK → Asignar IP
no shutdown → Activar
shutdown → Desactivar
description TEXTO → Descripción
VLANs
vlan 10 → Crear VLAN
name Ventas → Nombre
switchport mode access → Modo acceso
switchport access vlan 10 → Asignar VLAN
switchport mode trunk → Trunk
Rutas
ip route RED MASK NEXT-HOP → Ruta estática
ip route [Link] [Link] GW → Ruta por defecto
DHCP
ip dhcp pool RED → Crear pool
network IP MASK → Red
default-router IP → Gateway
dns-server IP → DNS
ip dhcp excluded-address IP → Excluir IP
Seguridad
line console 0 → Consola
password PASS → Contraseña
login → Activar login
line vty 0 4 → Acceso remoto
transport input ssh → Solo SSH
Guardar configuración
copy running-config startup-config → Guardar
write → Guardar rápido
Diagnóstico
ping IP → Probar conexión
traceroute IP → Ver ruta
debug → Monitoreo
clear arp → Limpiar tabla