## Acesso / Modos
Entrar no modo privilegiado
enable
Entrar no modo de configuração global
configure terminal
Sair de níveis de configuração
exit
Sair totalmente para o modo EXEC
end
Mostrar ajuda
?
---
## Sistema
Mostrar versão do sistema
show version
Mostrar informações do switch
show system
Mostrar uptime
show uptime
Salvar configuração
write memory
Reiniciar switch
reload
Mostrar configuração ativa
show running-config
Mostrar configuração salva
show startup-config
---
## Interfaces / Portas
Mostrar status das interfaces
show interfaces brief
Mostrar detalhes da interface
show interfaces 1/1/1
Entrar na interface
interface 1/1/1
Habilitar interface
no shutdown
Desabilitar interface
shutdown
Configurar descrição
description Uplink-Core
Configurar velocidade
speed-duplex 1000-full
---
## VLANs
Mostrar VLANs
show vlan
Criar VLAN
vlan 10
Nomear VLAN
name CLIENTES
Adicionar porta access
untagged 1/1/1
Adicionar porta trunk/tagged
tagged 1/1/24
Remover porta da VLAN
no untagged 1/1/1
Excluir VLAN
no vlan 10
---
## Switching
Mostrar tabela MAC
show mac-address-table
Mostrar MAC específica
show mac-address-table address 00:11:22:33:44:55
Limpar tabela MAC
clear mac-address-table dynamic
---
## Layer 3 / IP
Mostrar interfaces IP
show ip interface brief
Criar interface VLAN
vlan 10
ip address 192.168.1.1 255.255.255.0
Mostrar tabela de rotas
show ip route
Adicionar rota estática
ip route 0.0.0.0 0.0.0.0 192.168.1.1
---
## STP / RSTP / MSTP
Mostrar status STP
show spanning-tree
Ativar RSTP
spanning-tree mode rstp
Mostrar detalhes STP
show spanning-tree detail
Mostrar portas bloqueadas
show spanning-tree inconsistentports
---
## LACP / Link Aggregation
Mostrar trunks/LAGs
show trunks
Criar agregação LACP
trunk 1/1/1,1/1/2 trk1 lacp
Mostrar detalhes LACP
show lacp
---
## LLDP
Mostrar vizinhos LLDP
show lldp info remote-device
Ativar LLDP
lldp run
Mostrar detalhes LLDP
show lldp info remote-device detail
---
## DHCP
Ativar DHCP Snooping
dhcp-snooping
Mostrar bindings DHCP
show dhcp-snooping binding
---
## Segurança / ACL
Criar ACL
ip access-list extended BLOQUEIO
Adicionar regra ACL
permit tcp any any eq 80
Aplicar ACL
interface vlan 10
ip access-group BLOQUEIO in
---
## SNMP
Configurar comunidade RO
snmp-server community public operator
Configurar comunidade RW
snmp-server community private manager
Mostrar SNMP
show snmp-server
---
## Diagnóstico
Ping
ping 8.8.8.8
Traceroute
traceroute 8.8.8.8
Mostrar ARP
show arp
Mostrar CPU
show system resources
Mostrar logs
show logging
---
## Monitoramento
Mostrar temperatura
show system temperature
Mostrar fontes
show power-supply
Mostrar status das ventoinhas
show environment fan
---
## Administração
Salvar configuração
write memory
Backup configuração
copy running-config tftp
Restaurar configuração
copy tftp running-config
Mostrar usuários conectados
show users



