## 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 hardware
show chassis
Mostrar uptime
show system information
Salvar configuração
admin save
Reiniciar switch
admin reboot
Mostrar configuração ativa
show configuration
---
## Interfaces / Portas
Mostrar status das portas
show port
Mostrar detalhes de interface
show port 1/1/1
Entrar na interface
configure port 1/1/1
Habilitar interface
no shutdown
Desabilitar interface
shutdown
Configurar descrição
description Uplink-Core
Configurar velocidade
ethernet speed 1000
Configurar duplex
ethernet duplex full
---
## VLANs
Mostrar VLANs
show vlan
Criar VLAN
configure service vpls 10 customer 1 create
Adicionar porta em access
configure service vpls 10 sap 1/1/1:10 create
Adicionar trunk/tagged
configure service vpls 10 sap 1/1/1:* create
Remover VLAN
no service vpls 10
---
## Switching
Mostrar MAC Address Table
show service fdb-info
Mostrar MAC específica
show service id 10 fdb mac 00:11:22:33:44:55
Limpar tabela MAC
clear service fdb all
---
## IP / Layer 3
Mostrar interfaces IP
show router interface
Configurar IP em interface
configure router interface "LAN"
address 192.168.1.1/24
Mostrar tabela de rotas
show router route-table
Adicionar rota estática
configure router static-route 0.0.0.0/0 next-hop 192.168.1.1
---
## STP / RSTP / MSTP
Mostrar status STP
show spanning-tree
Ativar STP
configure system bridge-mode rstp
Mostrar portas bloqueadas
show spanning-tree port
---
## LACP / Link Aggregation
Mostrar LAGs
show lag
Criar LAG
configure lag 1 create
Adicionar porta ao LAG
configure lag 1 port 1/1/1
Mostrar status LACP
show lag 1 detail
---
## LLDP
Mostrar vizinhos LLDP
show system lldp neighbor
Ativar LLDP
configure system lldp
---
## Diagnóstico
Ping
ping 8.8.8.8
Traceroute
traceroute 8.8.8.8
Mostrar ARP
show arp
Mostrar CPU
show system cpu
Mostrar memória
show system memory-pools
---
## Logs / Monitoramento
Mostrar logs
show log log-id 99
Monitorar logs em tempo real
monitor log
Mostrar alarmes
show system alarms
---
## SNMP
Configurar comunidade SNMP RO
configure system security snmp community public access-permissions r
Configurar comunidade SNMP RW
configure system security snmp community private access-permissions rw
Mostrar status SNMP
show system snmp
---
## ACL / Segurança
Criar ACL
configure filter ip-filter 100 create
Adicionar regra ACL
entry 10 create
match protocol tcp
action accept
Aplicar ACL
configure router interface "LAN"
ingress filter ip 100
---
## Administração
Salvar configuração
admin save
Backup configuração
admin save file backup.cfg
Restaurar configuração
admin rollback rescue
Mostrar usuários logados
show users
---
## Linux / Ferramentas Internas
Mostrar processos
show system process
Mostrar uso de recursos
show system resource-usage
Ver arquivos de log
file show log.log



