Entrar no modo privilegiado
enable
Entrar no modo de configuração global
configure terminal
Sair do modo de configuração
exit
Sair completamente
quit
Mostrar ajuda
?
Salvar configuração
write memory
Mostrar versão do sistema
show version
Mostrar configuração atual
show running-config
Mostrar configuração salva
show startup-config
Sistema
Configurar hostname
hostname nome-switch
Criar usuário
username usuario privilege 15 password senha
Remover usuário
no username usuario
Alterar senha enable
enable secret senha
Reiniciar o switch
reload
Interfaces
Listar interfaces
show interfaces status
Mostrar interface específica
show interface gigabitEthernet 1/0/1
Entrar na interface
interface gigabitEthernet 1/0/1
Configurar descrição
description texto
Habilitar interface
no shutdown
Desabilitar interface
shutdown
Configurar velocidade e duplex
speed 1000
duplex full
VLAN
Criar VLAN
vlan 10
Definir nome da VLAN
name VLAN10
Mostrar VLANs
show vlan brief
Configurar porta ACCESS
interface gigabitEthernet 1/0/1
switchport mode access
switchport access vlan 10
Configurar porta TRUNK
interface gigabitEthernet 1/0/1
switchport mode trunk
switchport trunk allowed vlan all
Link Aggregation (LACP / Port‑Channel)
Criar Port‑Channel
interface port-channel 1
Adicionar interfaces ao Port‑Channel
interface gigabitEthernet 1/0/1
channel-group 1 mode active
Ver estado do LAG
show etherchannel summary
Spanning‑Tree (STP)
Mostrar STP
show spanning-tree
Configurar prioridade STP
spanning-tree vlan 10 priority 4096
Habilitar PortFast (edge)
spanning-tree portfast
Endereçamento / SVI (se modelo L3)
Criar interface VLAN
interface vlan 10
Configurar IP
ip address x.x.x.x y.y.y.y
Mostrar SVIs
show interface vlan
Diagnóstico
Ping
ping x.x.x.x
Traceroute
traceroute x.x.x.x
Mostrar tabela MAC
show mac address-table
Limpar tabela MAC
clear mac address-table dynamic
Mostrar ARP
show arp
SNMP
Configurar comunidade SNMP leitura
snmp-server community nome RO
Configurar comunidade SNMP escrita
snmp-server community nome RW



