Entrar no modo de configuração
configure
Sair do modo de configuração
exit
Sair completamente para o modo operacional
quit
Cancelar alterações não salvas
rollback 0
Salvar configuração
commit
Salvar configuração com confirmação
commit confirmed
Mostrar diferenças entre running e candidato
show | compare
Mostrar versão do sistema
show version
Mostrar configuração completa
show configuration
Mostrar configuração no formato “set”
show configuration | display set
Sistema
Configurar hostname
set system host-name nome-switch
Criar usuário
set system login user usuario class super-user authentication plain-text-password
Excluir usuário
delete system login user usuario
Reiniciar switch
request system reboot
Mostrar histórico de comandos
show cli history
Interfaces
Mostrar resumo das interfaces
show interfaces terse
Mostrar interface específica
show interfaces ge-0/0/1
Entrar na interface
edit interfaces ge-0/0/1
Configurar descrição
set interfaces ge-0/0/1 description "Texto"
Desabilitar interface
set interfaces ge-0/0/1 disable
Habilitar interface
delete interfaces ge-0/0/1 disable
Configurar IP (SVI / routed port)
set interfaces vlan unit 10 family inet address x.x.x.x/yy
VLAN
Criar VLAN
set vlans vlan10 vlan-id 10
Mostrar VLANs
show vlans
Associar VLAN à interface — modo access
set interfaces ge-0/0/1 unit 0 family ethernet-switching port-mode access
set interfaces ge-0/0/1 unit 0 family ethernet-switching vlan members vlan10
Configurar interface trunk
set interfaces ge-0/0/1 unit 0 family ethernet-switching port-mode trunk
set interfaces ge-0/0/1 unit 0 family ethernet-switching vlan members all
STP
Mostrar STP
show spanning-tree
Ativar RSTP
set protocols rstp interface all
Configurar prioridade
set protocols rstp bridge-priority valor
Ethernet Switching / MAC
Mostrar tabela MAC
show ethernet-switching table
Limpar tabela MAC
clear ethernet-switching table
LACP / Port-Channel
Criar agregação
set chassis aggregated-devices ethernet device-count 4
Configurar AE interface
set interfaces ae0 aggregated-ether-options lacp active
Adicionar portas ao AE
set interfaces ge-0/0/1 ether-options 802.3ad ae0
set interfaces ge-0/0/2 ether-options 802.3ad ae0
Mostrar LACP
show lacp interfaces
Diagnóstico
Ping
ping x.x.x.x
Traceroute
traceroute x.x.x.x
Mostrar ARP
show arp
Mostrar logs
show log messages
Mostrar CPU / memória
show system processes extensive



