Comandos Básicos Switch ⁠TP-Link

Entrar no modo privilegiado
 enable 
Entrar no modo de configuração global
 configure 
Sair do modo de configuração
 exit 
Sair completamente
 quit 
Mostrar ajuda
 ? 
Mostrar histórico de comandos
 show history 
Salvar configuração
 copy running-config startup-config 
Mostrar configuração atual
 show running-config 
Mostrar versão
 show version 
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 detalhes de interface
 show interfaces 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
 speed 1000 
Configurar duplex
 duplex full 
VLAN Criar VLAN
 vlan 10 
Dar nome à VLAN
 name VLAN10 
Mostrar VLANs
 show vlan 
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) Criar agregação
 interface port-channel 1 
Vincular porta ao LAG
 interface gigabitEthernet 1/0/1
channel-group 1 mode active
Ver LAGs
 show etherchannel summary 
Spanning‑Tree Mostrar STP
 show spanning-tree 
Configurar prioridade
 spanning-tree vlan 10 priority 4096 
Ativar PortFast (edge)
 spanning-tree portfast 
SVI / Endereçamento Criar interface VLAN
 interface vlan 10 
Configurar IP
 ip address x.x.x.x y.y.y.y 
Mostrar SVIs
 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 
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