Escolar Documentos
Profissional Documentos
Cultura Documentos
wesleysouza
Posted on 24 de out. de 2021 • Updated on 29 de out. de 2021
3 2
#ComputerNetworks2 - Configurando um
Switch HUAWEI S5720
#huawei #switch #computernetworks #tutorial
1 Acessando a CLI
Para configurar precisamos acessar a CLI, o acesso pode ser realizado utilizando o
Minicom. O acesso via Minicom é descrito no texto: Acessado a CLI de um Switch
com o Minicom.
https://dev.to/wesleysouza/computernetworks2-configurando-um-switch-huawei-s5720-19c 1/11
26/11/2023, 01:59 #ComputerNetworks2 - Configurando um Switch HUAWEI S5720 - DEV Community
user: admin
pwd: admin@huawei.com
<switch>
[Switch]
quit
2 Configuração Inicial
Geralmente, a primeira tarefa é mudar o nome do switch. Essa tarefa é importante,
pois se o nome for definido corretamente (considerando a localização física), fica
mais fácil encontra-lo caso for necessário.
https://dev.to/wesleysouza/computernetworks2-configurando-um-switch-huawei-s5720-19c 2/11
26/11/2023, 01:59 #ComputerNetworks2 - Configurando um Switch HUAWEI S5720 - DEV Community
[NomeDoSwitch]system-view
Para criar uma VLAN digite o comando vlan seguido do vlan-id (numero entre 2-
4094 que identifica a VLAN):
[NomeDoSwitch]vlan vlan-id
Para atribuir nome a VLAN digite o comando name seguido do nome que deseja
atribuir:
[NomeDoSwitch-vlan]name nomeDaVLAN
[NomeDoSwitch-vlan]description vlan-description
[NomeDoSwitch]system-view
[NomeDoSwitch]vlan 10
[NomeDoSwitch-vlan10]nome financeiro
[NomeDoSwitch-vlan10]description vlan-financeiro
[NomeDoSwitch-vlan10]quit
Para visualizar todas as VLANs criadas no switch digite o comando display vlan:
[NomeDoSwitch]display vlan
Total 2 VLAN exist(s).
The following VLAN exist:
1(default), 2,
https://dev.to/wesleysouza/computernetworks2-configurando-um-switch-huawei-s5720-19c 3/11
26/11/2023, 01:59 #ComputerNetworks2 - Configurando um Switch HUAWEI S5720 - DEV Community
[NomeDoSwitch]system-view
[NomeDoSwitch]interface Vlanif 10
[NomeDoSwitch-Vlanif10]ip address 10.0.10.50 255.255.0.0
[NomeDoSwitch]system-view
[NomeDoSwitch]vlan 2
[NomeDoSwitch-vlan2]port gigabitethernet 0/0/1 to 0/0/24
https://dev.to/wesleysouza/computernetworks2-configurando-um-switch-huawei-s5720-19c 4/11
26/11/2023, 01:59 #ComputerNetworks2 - Configurando um Switch HUAWEI S5720 - DEV Community
Para definir desse modo primeiro utilizamos o comando port link-type hybrid e
depois atribuímos as VLANs tagged com o comando port hybrid untagged vlan
vlan-id ou untagged com o comando port hybrid untagged vlan vlan-id.
No exemplo abaixo é descrito como definir a porta como hybrid e adicionar VLANs
<NomeDoSwitch> system-view
[NomeDoSwitch] interface gigabitethernet 0/0/1
[NomeDoSwitch-GigabitEthernet0/0/1] port link-type hybrid
[NomeDoSwitch-GigabitEthernet0/0/1] port hybrid tagged vlan 1
[NomeDoSwitch-GigabitEthernet0/0/1] port hybrid tagged vlan 6
Caso seja melhor filtrar as VLANs que vão passar veja o exemplo abaixo:
https://dev.to/wesleysouza/computernetworks2-configurando-um-switch-huawei-s5720-19c 5/11
26/11/2023, 01:59 #ComputerNetworks2 - Configurando um Switch HUAWEI S5720 - DEV Community
Caso for necessário remover de mais de uma porta também podemos utilizar o
range (se o número das portas for em sequência):
[NomeDoSwitch]system-view
[NomeDoSwitch]vlan 1
[NomeDoSwitch-vlan1] port gigabitethernet 0/0/1 to 0/0/24
<NomeDoSwitch>system-view
[NomeDoSwitch]sysname Telnet_Server
[Telnet_Server] telnet server enable
[Telnet_Server] aaa
[Telnet_Server-aaa] local-user suporte password irreversible-cipher Switch@12
[Telnet_Server-aaa] local-user suporte service-type telnet
[Telnet_Server-aaa] local-user suporte privilege level 3
[Telnet_Server-aaa] quit
$ telnet 10.0.10.50
4 Concluindo a configuração
Para finalizar a configuração, vamos cerificar se está tudo como planejado e salvar
todo o trabalho que foi realizado.
https://dev.to/wesleysouza/computernetworks2-configurando-um-switch-huawei-s5720-19c 7/11
26/11/2023, 01:59 #ComputerNetworks2 - Configurando um Switch HUAWEI S5720 - DEV Community
[NomeDoSwitch]display current-configuration
<NomeDoSwitch>save
Referências
Configuring a VLAN Based on Ports
Port link-type
Usando o Minicom
https://dev.to/wesleysouza/computernetworks2-configurando-um-switch-huawei-s5720-19c 8/11
26/11/2023, 01:59 #ComputerNetworks2 - Configurando um Switch HUAWEI S5720 - DEV Community
The AWS Community Builders DEV organization is the unofficially official place
for our community members to create and share content for other AWS
builders.
wesleysouza
LOCATION
Brazil
WORK
Professor and Infrastructure Analyst at Federal University of Sergipe
JOINED
https://dev.to/wesleysouza/computernetworks2-configurando-um-switch-huawei-s5720-19c 9/11
26/11/2023, 01:59 #ComputerNetworks2 - Configurando um Switch HUAWEI S5720 - DEV Community
8 de jul. de 2021
Sentry PROMOTED
https://dev.to/wesleysouza/computernetworks2-configurando-um-switch-huawei-s5720-19c 10/11
26/11/2023, 01:59 #ComputerNetworks2 - Configurando um Switch HUAWEI S5720 - DEV Community
https://dev.to/wesleysouza/computernetworks2-configurando-um-switch-huawei-s5720-19c 11/11