03 Configuracion SW Huawey
Huawei
Yunier Valdés Pérez
ETECSA
División Territorial de Villa Clara
2013
Objetivos
Describir las características de los switch huawei
• Utilizar las principales tecnologías de los switch L2
•
•VLANs
•SNMP
•ACLs
•Spanning
Tree
•Port Mirroring
•Troncales por agregación de enlaces
Familiarizarse con la CLI de Huawei
• Aprender a configurar un switch Huaweicon los
elementos básicos
•
Administración
•
•
•
•
Consola de administración local (interfaz RS232)
Telnet
SSH
HTTP
Conexión inicial con el SW
Huawei
•
Conexión usando la interfaz RS232 y el
software HyperTerminal
Ponerle nombre al equipo
system-view
sysname SW-huawei-A
return
Poner localización y
contacto
## Poner Localización del equipo
system-view
snmp-agent sys-info location Aula decapacitacion
Return
## Poner contacto del equipo
system-view
snmp-agent sys-info contact yunier.valdesperez@etecsa.cu
return
Crear VLAN
## Creación de VLANs
system-view
vlan 10
description subred-10
quit
vlan 20
description subred-20
quit
vlan 30
description subred-30
quit
vlan 192
description subred-192
quit
return
Adicionar puertos a una
VLAN
## modo access
system-view
interface ethernet0/0/1
port link-type access
port default vlan 10
quit
interface ethernet 0/0/2
port link-type access
port default vlan 10
quit
interface ethernet 0/0/3
port link-type access
port default vlan 10
quit
## modo hybrid
system-view
interface GigabitEthernet 0/0/1
port link-type hybrid
port hybrid tagged vlan all
port hybrid untagged vlan 192
port hybrid pvid vlan 192
return
## modo trunk
system-viewinterface GigabitEthernet 0/0/2
port link-type trunk
port trunk allow-pass vlan all
return
Adicionar puertos a una
VLAN
Puertos en modo trunk (802.1q)
para las vlan1 y vlan2
access vlan1
access vlan2
access vlan2
access vlan1
Crear una interfaz VLAN y
ponerle IP
## system-view
interface vlanif 1
undo ip address dhcp-alloc
return
## crear la interfaz y asignarle dirección IP
system-viewinterface vlanif 192
ip address 192.168.190.251 255.255.255.192
return
## configurar la ruta por defecto
system-view
ip route-static 0.0.0.0 0 192.168.190.193
return
Se elimina la configuración de
La VLAN por default
La vlan 192 debe ser existir
Se crea una ruta estática que
dirige todo el trafico hacia el
Gateway de la subred
Enrutamiento entre VLANs
system-view
interface vlanif 10
ip address192.168.10.1 255.255.255.0
quit
system-view
interface vlanif 20
ip address 192.168.20.1 255.255.255.0
quit
system-view
interface vlanif 192
ip address 192.168.190.193 255.255.255.192
quit
system-view
interface vlanif 172
ip address 172.16.1.1 255.255.255.252
quit
## configurar la ruta por defecto
system-view
ip route-static 0.0.0.0 0 172.16.1.2
return
WAN
vlan172
vlan192
vlan10
vlan20Habilitar SNMP
## Habilitar SNMP
system-view
snmp-agent sys-info version all
snmp-agent community write 1qaz2wsx
snmp-agent community read 3edc4rfv
return
Soporta 3 versiones del protocolo
Habilitar Spanning Tree
## habilitar el protocolo STP
system-view
stp enabled
return
• Protección contra lazos (tormenta
broadcast)
• Redundancia de enlace
• Por defecto se habilita en todas las
interfacesTroncal por agregación de
enlace
## Crear el troncal
system-view
interface eth-trunk 10
mode manual
load-balance dst-ip
Return
## agregar enlaces al trunk
system-view
Interface ethernet 0/0/21
Undo ndp enable
Undo ntdp enable
eth-trunk 10
quit
Interface ethernet 0/0/22
Undo ndp enable
Undo ntdp enable
eth-trunk 10
quit
El modo puede ser manual o usando
LACP (Link Aggregation Control Protocol)
Elbalance se puede establecer por:
src-mac : dir mac fuente
dst-mac : dir mac destino
src-ip : dir ip fuente
dst-ip:
dir ip destino
src-dst-mac: mac (fuente XOR destino)
src-dst-ip: ip (fuente XOR destino)
Se pueden agregar hasta 8 interfaces
del mismo tipo
Se consigue mayor
ancho de banda en
el enlace
Troncal por agregación de
enlace y las VLANs
## configurar VLAN a través del enlace troncal...
Regístrate para leer el documento completo.