Entrar no modo privilegiado
enable
Entrar no modo de configuração
configure
Sair do modo atual
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 gravada
show startup-config
Sistema
Configurar hostname
hostname nome-switch
Criar usuário
username usuario password senha
Remover usuário
no username usuario
Reiniciar o switch
reload
Interfaces
Listar interfaces
show interfaces status
Mostrar interface específica
show interfaces ethernet 0/1
Entrar na interface
interface ethernet 0/1
Configurar descrição
description texto
Habilitar interface
no shutdown
Desabilitar interface
shutdown
Configurar velocidade
speed 1000
Configurar duplex
duplex full
VLAN
Criar VLAN
vlan database
vlan 10
exit
Mostrar VLANs
show vlan
Configurar porta ACCESS
interface ethernet 0/1
switchport mode access
switchport access vlan 10
Configurar porta TRUNK
interface ethernet 0/1
switchport mode trunk
switchport trunk allowed vlan add all
Link Aggregation (LACP / Port‑Channel)
Criar Port‑Channel
interface port-channel 1
Adicionar interfaces ao LAG
interface ethernet 0/1
channel-group 1 mode active
Mostrar EtherChannel
show etherchannel summary
Spanning‑Tree
Mostrar STP
show spanning-tree
Configurar prioridade STP
spanning-tree vlan 10 priority 4096
Ativar Portfast (edge)
spanning-tree portfast
Endereçamento / Interface VLAN (SVI)
Criar interface VLAN
interface vlan 10
Configurar IP
ip address x.x.x.x y.y.y.y
Mostrar interfaces VLAN
show interfaces 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



