fbpx

Comandos Básicos Switch Huawei

Comandos Básicos Switch Huawei

Entrar no modo privilegiado

 system-view 

Sair para modo anterior

 quit 

Sair completamente

 return 

Mostrar ajuda

 ? 

Mostrar comandos do modo atual

 display this 

Salvar configuração

 save 

Mostrar versão do equipamento

 display version 

Mostrar configuração atual

 display current-configuration 

Sistema Configurar hostname

 sysname nome-switch 

Mostrar histórico de comandos

 display history-command 

Reiniciar o switch

 reboot 

Interfaces Listar interfaces

 display interface 

Mostrar interface específica

 display interface GigabitEthernet 0/0/1 

Entrar na interface

 interface GigabitEthernet 0/0/1 

Habilitar interface

 undo shutdown 

Desabilitar interface

 shutdown 

Configurar descrição

 description texto 

VLAN Criar VLAN

 vlan batch 10 

Entrar na VLAN

 vlan 10 

Configurar porta acesso

 interface GigabitEthernet 0/0/1
port link-type access
port default vlan 10

Configurar porta trunk

 interface GigabitEthernet 0/0/1
port link-type trunk
port trunk allow-pass vlan all

Mostrar VLANs

 display vlan 

Endereçamento / VLANIF Criar interface L3 (SVI)

 interface Vlanif 10 

Configurar IP

 ip address x.x.x.x y.y.y.y 

Mostrar VLANIF

 display interface vlanif 10 

STP Mostrar STP

 display stp 

Configurar prioridade STP

 stp priority valor 

Link Aggregation (Eth-Trunk) Criar trunk

 interface Eth-Trunk 1 

Adicionar portas ao trunk

 interface GigabitEthernet 0/0/1
eth-trunk 1

Mostrar Trunks

 display eth-trunk 

Diagnóstico Ping

 ping x.x.x.x 

Traceroute

 tracert x.x.x.x 

Mostrar MACs

 display mac-address 

Limpar tabela MAC

 reset mac-address-table dynamic 

Ver ARP

 display arp 

SNMP Configurar comunidade SNMP

 snmp-agent community read nome 
 snmp-agent community write nome 

Logs Mostrar logs

 display logbuffer 

Limpar logs

 reset logbuffer 

Deixe uma resposta