Comandos Básicos Switch Datacom

Entrar no modo privilegiado
 enable 
Entrar no modo de configuração global
 configure 
Sair do modo atual
 exit 
Sair totalmente
 quit 
Mostrar ajuda
 ? 
Mostrar histórico de comandos
 show history 
Salvar configuração
 write 
Mostrar configuração atual
 show running-config 
Mostrar configuração de startup
 show startup-config 
Mostrar versão do switch
 show version 
Sistema Configurar hostname
 hostname nome-switch 
Configurar senha de enable
 enable password senha 
Criar usuário
 username usuario password senha 
Remover usuário
 no username usuario 
Reiniciar o switch
 reload 
Interfaces Listar interfaces
 show interface 
Mostrar interface específica
 show interface ethernet 1/1 
Entrar na interface
 interface ethernet 1/1 
Configurar descrição
 description Texto 
Habilitar interface
 no shutdown 
Desabilitar interface
 shutdown 
Configurar velocidade / duplex
 speed 1000 
 duplex full 
VLAN Criar VLAN
 vlan 10 
Adicionar nome à VLAN
 name VLAN10 
Mostrar VLANs
 show vlan 
Configurar porta ACCESS
 interface ethernet 1/1
switchport mode access
switchport access vlan 10
Configurar porta TRUNK
 interface ethernet 1/1
switchport mode trunk
switchport trunk allowed vlan all
Link Aggregation (LACP) — Port-Channel Criar Port-Channel
 interface port-channel 1 
Agregar interfaces
 interface ethernet 1/1
channel-group 1 mode active
Mostrar EtherChannel
 show etherchannel 
Spanning-Tree (STP) Mostrar STP
 show spanning-tree 
Configurar prioridade da VLAN
 spanning-tree vlan 10 priority 4096 
Habilitar PortFast (Edge)
 spanning-tree port type edge 
Endereçamento / Interface VLAN (SVI) Criar interface VLAN
 interface vlan 10 
Configurar IP
 ip address x.x.x.x y.y.y.y 
Mostrar VLANIF
 show interface vlan 10 
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 
Mostrar ARP
 show arp 
SNMP Configurar comunidade de leitura
 snmp-server community nome ro 
Configurar comunidade de escrita
 snmp-server community nome rw 

Leave A Comment