Comandos Switch D-Link

## Acesso / Modos Entrar no modo privilegiado
 enable 
Entrar no modo de configuração global
 configure terminal 
Sair de níveis de configuração
 exit 
Sair totalmente para o modo EXEC
 end 
Mostrar ajuda
 ? 
--- ## Sistema Mostrar versão do sistema
 show version 
Mostrar informações do switch
 show switch 
Mostrar uptime
 show switch 
Salvar configuração
 save 
Reiniciar switch
 reboot 
Mostrar configuração ativa
 show config current_config 
Mostrar configuração salva
 show config config_id 1 
--- ## Interfaces / Portas Mostrar status das portas
 show ports 
Mostrar detalhes da interface
 show ports 1 
Entrar na interface
 interface ethernet 1/0/1 
Habilitar interface
 no shutdown 
Desabilitar interface
 shutdown 
Configurar descrição
 description Uplink-Core 
Configurar velocidade
 speed auto 
Configurar duplex
 duplex full 
--- ## VLANs Mostrar VLANs
 show vlan 
Criar VLAN
 create vlan VLAN10 tag 10 
Adicionar porta untagged
 config vlan VLAN10 add untagged 1-10 
Adicionar porta tagged
 config vlan VLAN10 add tagged 24 
Remover porta da VLAN
 config vlan VLAN10 delete 1 
Excluir VLAN
 delete vlan VLAN10 
--- ## Switching Mostrar tabela MAC
 show fdb 
Mostrar MAC específica
 show fdb mac_address 00-11-22-33-44-55 
Limpar tabela MAC
 clear fdb dynamic 
--- ## Layer 3 / IP Mostrar interfaces IP
 show ip interface 
Configurar IP de gerenciamento
 config ipif System ipaddress 192.168.1.2/24 
Mostrar tabela de rotas
 show iproute 
Adicionar rota estática
 create iproute default 192.168.1.1 
--- ## STP / RSTP / MSTP Mostrar status STP
 show stp 
Ativar RSTP
 config stp version rstp 
Mostrar detalhes STP
 show stp ports 
--- ## LACP / Link Aggregation Mostrar LAGs
 show link_aggregation 
Criar grupo LACP
 create link_aggregation group_id 1 type lacp 
Adicionar portas ao LAG
 config link_aggregation group_id 1 add 1-2 
Mostrar detalhes LACP
 show lacp_port 
--- ## LLDP Mostrar vizinhos LLDP
 show lldp remote_ports 
Ativar LLDP
 enable lldp 
Mostrar detalhes LLDP
 show lldp local_ports 
--- ## DHCP Ativar DHCP Snooping
 enable dhcp_snooping 
Mostrar bindings DHCP
 show dhcp_snooping binding 
--- ## Segurança / ACL Criar ACL
 create access_profile profile_id 10 ip 
Adicionar regra ACL
 config access_profile profile_id 10 add access_id 1 ip source_ip 192.168.1.0/24 permit 
Aplicar ACL
 config access_profile profile_id 10 add port 1-10 
--- ## SNMP Configurar comunidade RO
 create snmp community public view CommunityView read_only 
Configurar comunidade RW
 create snmp community private view CommunityView read_write 
Mostrar SNMP
 show snmp community 
--- ## Diagnóstico Ping
 ping 8.8.8.8 
Traceroute
 traceroute 8.8.8.8 
Mostrar ARP
 show arpentry 
Mostrar CPU
 show cpu utilization 
Mostrar logs
 show log 
--- ## Monitoramento Mostrar temperatura
 show environment 
Mostrar fontes
 show power 
Mostrar status das ventoinhas
 show fan 
--- ## Administração Salvar configuração
 save 
Backup configuração via TFTP
 upload cfg_toTFTP 192.168.1.100 filename backup.cfg 
Restaurar configuração
 download cfg_fromTFTP 192.168.1.100 filename backup.cfg 
Mostrar usuários conectados
 show account 

Leave A Comment