Anda di halaman 1dari 15

H3C S5120-SI Series Ethernet Switches

Gua de Configuracin Rpida

Av. Francisco de Orellana y Av. Juan Tanca Marengo


Edificio Cofn 6to piso Of. #3
Telf. (04) 264 3048 264 3058 264 3059
info@gs-ec.com www.gs-ec.com

Contenido
SWITCH S5120.................................................................................................... 3
CONFIGURACIN MEDIANTE CLI.......................................................................3
CLI NIVELES DE PRIVILEGIO............................................................................. 5
USER-VIEW Y SYSTEM-VIEW............................................................................. 5
CAMBIAR EL NOMBRE DEL SWITCH..................................................................5
CONFIGURACIN DEL ACCESO A LNEA DE COMANDOS CLI............................5
GUARDAR UNA CONFIGURACIN EN LA MEMORIA DEL SWITCH......................6
BORRANDO LA CONFIGURACIN DEL SWITCH.................................................6
COMANDO DE AYUDA ?................................................................................. 7
CONFIGURANDO LOS PUERTOS DEL SWITCH...................................................8
MOSTRAR EL ESTADO DE LOS PUERTOS...........................................................8
VLANS.............................................................................................................. 9
CREANDO VLANS............................................................................................. 9
TIPOS DE PUERTOS PARA VLANS......................................................................9
Access Ports (puertos de acceso):................................................................9
Trunk ports:................................................................................................... 9
Hybrid ports:............................................................................................... 10
DEFINIENDO PUERTOS DE ACCESO (ACCESS PORTS).....................................10
CONFIGURANDO PUERTOS TRONCALES (TRUNK PORTS)................................10
INGRESAR LA DIRECCIN IP PARA LAS INTERFACES DE LAS VLANS...............11
ADMINISTRANDO A TRAVS DEL BROWSER...................................................11

Gensystems S. A
www.gs-ec.com

Pgina 1

NDICE ILUSTRACIONE

Ilustracin 1: Conexin entre PC y Switch a travs de cable de consola.............3


Ilustracin 2: Parmetros para la conexin desde un terminal a la CLI...............3
Ilustracin 3: Conexin exitosa...........................................................................4
Ilustracin 4: Empezando a trabajar con la terminal...........................................4
Ilustracin 5: Ingreso a la consola de administracin a travs de un navegador
.......................................................................................................................... 12
Ilustracin 6: Entrada Exitosa a la consola de administracin a traves de un
navegador......................................................................................................... 13

TABLA

Tabla 1: Niveles de Privilegio............................................................................... 5

Gensystems S. A
www.gs-ec.com

Pgina 2

SWITCH S5120
CONFIGURACIN MEDIANTE CLI
La conexin fsica se la realiza de la siguiente forma, utilizando el cable de
consola conectado al switch a su correspondiente puerto, y en la computadora
personal al puerto RS-232 o al puerto USB a travs de un convertidor USB RS232, Ilustracin 1: Conexin entre PC y Switch a travs de cable de consola.

Ilustracin 1: Conexin entre PC y Switch a travs de cable de consola.

Para configurar el switch mediante lnea de comandos (CLI), se debe ajustar


los parmetros de comunicacin del terminal con los que se muestran en la
grfica a continuacin Ilustracin 2: Parmetros para la conexin desde un
terminal a la CLI.

Ilustracin 2: Parmetros para la conexin desde un terminal a la CLI

Gensystems S. A
www.gs-ec.com

Pgina 3

Si est correctamente configurados los parmetros, se mostrar en la consola lo


siguiente Ilustracin 3: Conexin exitosa

Ilustracin 3: Conexin exitosa

Luego que se carga es sistema operativo (COMWARE) en el Switch se presiona


la tecla Enter para empezar con el uso de comandos. Ilustracin 4: Empezando
a trabajar con la terminal

Ilustracin 4: Empezando a trabajar con la terminal

Gensystems S. A
www.gs-ec.com

Pgina 4

CLI NIVELES DE PRIVILEGIO


Los comandos son clasificados con los siguientes niveles de Privilegio, Tabla 1:
Niveles de Privilegio.
Visitor
Monitor

Nivel
0
1

System

Manager

Descripcin
Niveles bsicos de diagnstico para redes
Usado para el mantenimiento del sistema no permite
guardar configuraciones
Incluye comandos de ruteo y comandos para cada
capa de la red, y es usada para proveer servicio
directo a los usuarios
Para la configuracin completa del switch
Tabla 1: Niveles de Privilegio

USER-VIEW Y SYSTEM-VIEW
El switch por defecto viene en el modo user -view el cual se muestra con el
nombre del switch entre <NombreSwitch>, y en este modo solo podemos ver
aspectos bsicos del switch.
El modo System-View permite administrar el switch y se muestra son la
siguiente simbologa [NombreSwitch].

CAMBIAR EL NOMBRE DEL SWITCH


Para cambiar el nombre del switch se deben de seguir los siguientes pasos
<H3C>system-view

vista de configuracin

[H3C]sysname Gensystems

comando seguido por el nuevo nombre

[Gensystems]

nuevo nombre

CONFIGURACIN DEL ACCESO A LNEA DE COMANDOS CLI


#Asignar contrasea para el nivel 3 de administracin
<NombreSwitch> System-view
[NombreSwitch] Super password level 3 cipher Contrasea1

Gensystems S. A
www.gs-ec.com

Pgina 5

GUARDAR UNA CONFIGURACIN EN LA MEMORIA DEL


SWITCH
En el modo privilegiado se ingresan el siguiente comando
[NombreSwitch] save main

comando para guardar en la memoria principal

The current configuration will be written to the device. Are you sure? [Y/N]: Y
(aceptar para guarder en la memoria principal)
Please input the file name(*.cfg)[flash:/startup.cfg]
(To leave the existing filename unchanged, press the enter key):
flash:/startup.cfg exists, overwrite? [Y/N]: Y (aceptar para que sobreescriba el
archivo de inicio principal)
Validating file. Please wait...............
Saved the current configuration to mainboard device successfully.
Configuration is saved to device successfully. (Confirmacin de que ha sido
guardada correctamente la configuracin)
[NombreSwitch]

BORRANDO LA CONFIGURACIN DEL SWITCH


Para borrar la configuracin del Switch tenemos el siguiente comando
-

Desde la vista de usuario <user-view> se ejecuta el siguiente comando


reset saved-configuration.

<NombreSwitch> reset saved-confi

Gensystems S. A
www.gs-ec.com

guration

Pgina 6

COMANDO DE AYUDA ?
# Utilizar ? para mostrar en pantalla una lista de los comandos disponibles
para cada opcin
<H3C>?
User view commands:
archive
archive settings
backup
next startup-configuration file to TFTP server
boot-loader
loader
bootrom
Update/read/backup/restore bootrom
cd
Change current directory
clock
Specify the system clock
cluster
cluster command
copy
from one file to another
debugging
system debugging functions
delete
file
dir
List files on a file system
display
current system information
fixdisk
Recover lost chains in storage device
format
the device
free
Clear user terminal interface
---- More ----

Specify
Backup
Set boot

Run
Copy
Enable
Delete a

Display

Format

# Utilizar ? si no se recuerda el nombre del comando para que muestre las


opciones existentes por ejemplo
<NombreSwitch>c?
cd
clock
cluster
copy
Gensystems S. A
www.gs-ec.com

Pgina 7

Gensystems S. A
www.gs-ec.com

Pgina 8

CONFIGURANDO LOS PUERTOS DEL SWITCH


Los comandos ms comnmente utilizados en cuanto a los puertos se
muestran a continuacin
[NombreSwitch] Interface gigabitethernet1/0/1
[NombreSwitch-gigabitethernet1/0/1] Description Nombre para prueba
[NombreSwitch-gigabitethernet1/0/1] Undo shutdown
[NombreSwitch-gigabitethernet1/0/1] duplex { auto | full | half }
[NombreSwitch-gigabitethernet1/0/1] speed { 10 | 100 |1000 | auto }
[NombreSwitch-gigabitethernet1/0/1] broadcast-suppression 1
[NombreSwitch-gigabitethernet1/0/1] undo jumboframe enable
[NombreSwitch-gigabitethernet1/0/1] virtual-cable-test
[NombreSwitch-gigabitethernet1/0/1] display this

MOSTRAR EL ESTADO DE LOS PUERTOS


El comando display brief interface nos permite conocer el estado de los puertos
[NombreSwitch] display brief interface
The brief information of interface(s) under route mode:
Interface
Link
Protocol-link Protocol
type
NULL0
UP
UP(spoofing)
NULL
Vlan1
UP
UP
ETHERNET
192.168.1.1
Vlan10
DOWN
DOWN
ETHERNET
192.168.10.2
Vlan20
DOWN
DOWN
ETHERNET
192.168.20.2
Vlan30
DOWN
DOWN
ETHERNET
192.168.30.2

Main IP
--

The brief information of interface(s) under bridge mode:


Interface
Link
Speed
Duplex Link-type PVID
GE1/0/1
DOWN
auto
auto
access
10
GE1/0/2
DOWN
auto
auto
access
20
GE1/0/3
DOWN
auto
auto
access
30
GE1/0/4
UP
1G(a)
full(a) access
1
GE1/0/5
DOWN
auto
auto
access
1
GE1/0/6
DOWN
auto
auto
access
1
Gensystems S. A
www.gs-ec.com

Pgina 9

More-----

VLANS
Una VLAN (acrnimo de virtual LAN, red de rea local virtual) es un mtodo
de crear redes lgicamente independientes dentro de una misma red fsica.1
Varias VLANs pueden coexistir en un nico conmutador fsico o en una nica
red fsica. Son tiles para reducir el tamao del dominio de difusin y ayudan
en la administracin de la red separando segmentos lgicos de una red de rea
local (como departamentos de una empresa) que no deberan intercambiar
datos usando la red local (aunque podran hacerlo a travs de un enrutador o
un conmutador de capa 3 y 4).

CREANDO VLANS
[NombreSwtch] vlan 10
[NombreSwtch-vlan10] description Para Bodegas
[NombreSwtch-vlan10]name Bodegas
[NombreSwtch] vlan 20
[NombreSwtch-vlan20] description Para empleados
[NombreSwtch-vlan20] Name Empleados
[NombreSwtch-vlan10] Save

TIPOS DE PUERTOS PARA VLANS


Access Ports (puertos de acceso):
Pertenecen a una sola Vlan y no estn etiquetados.

Trunk ports:
Pueden pertenecer a mltiples Vlans
Las Vlans son etiquetadas de acuerdo al protocolo 802.1Q
La Vlan default no es etiquetada
Gensystems S. A
www.gs-ec.com

Pgina 10

Hybrid ports:
Pertenecen a mltiples Vlans
Mltiples Vlans pueden ser etiquetadas o no etiquetadas
Tpicamente utilizadas para telfonos IP

DEFINIENDO PUERTOS DE ACCESO (ACCESS PORTS)


-

Crear una Vlan


[NombreSwitch] vlan 100
[NombreSwitch-vlan100] port gigabitethernet1/0/1 to
gigabitethernet1/0/20

O en el modo de configuracion de la interface ajustarlo como Puerto de


acceso en la vlan #
[NombreSwitch] interface gi1/0/1
[NombreSwitch-Gigabitethetnet1/0/1] port link-type Access
[NombreSwitch-Gigabitethetnet1/0/1] port access vlan 100

CONFIGURANDO PUERTOS TRONCALES (TRUNK PORTS)


[NombreSwitch] interface gi1/0/24
[NombreSwitch-GigabitEthernet1/0/24] port link-type trunk (definiendo el
Puerto como troncal)
[NombreSwitch-GigabitEthernet1/0/24] port trunk permit vlan 100 200
(vlans que permitir ese Puerto)

Gensystems S. A
www.gs-ec.com

Pgina 11

INGRESAR LA DIRECCIN IP PARA LAS INTERFACES DE LAS


VLANS
Para ingresar la direccin Ip de la Vlan default as como de las dems vlans se
sigue el siguiente procedimiento en la vista de sistema [system-view].
Primeramente se crea la Vlan a la cual se le va a asignar la IP
[NombreSwitch]Vlan 100
[NombreSwitch-vlan100]quit
Luego se ingresa a su respectiva interface
[NombreSwitch] interface Vlan-interface 100
[NombreSwitch-Vlan-interface100] ip address xxx.xxx.xxx.xxx
yyy.yyy.yyy.yyy (en las x se ingresa la direccin Ip y en las y su
respectiva mscara de subred
[NombreSwitch-Vlan-interface100] quit
[NombreSwitch] save para guardar la configuracin en la memoria.

ADMINISTRANDO A TRAVS DEL BROWSER


Para poder habilitar la opcin de administrar el switch a travs del browser de
Internet explorer se siguen los siguientes pasos:
-

Se crea un Usuario local para este caso Gensystems


[NombreSwitch]local-user Gensystems

Creamos un password y le asisgnamos privilegios para telnet y lanaccess


[NombreSwitch]local-user Gensystems
[NombreSwitch-luser-Gensystems]password simple contrasea
[NombreSwitch-luser-Gensystems]service-type telnet
[NombreSwitch-luser-Gensystems]service-type lan-access
[NombreSwitch-luser-Gensystems] authorization-attribute level 3
[NombreSwitch-luser-Gensystems]quit

Habilitamos el servicio de Http


[NombreSwitch] ip http enable
Info: HTTP server has been started!

Gensystems S. A
www.gs-ec.com

Pgina 12

Ingresamos las siguientes opciones a las interfaces vty


[NombreSwitch]user-interface vty 0 4
[NombreSwitch-ui-vty0-4]authentication-mode scheme
[NombreSwitch-ui-vty0-4]protocol inbound telnet

Ahora ingresamos la Vlan Administrativa en la cual va a funcionar el


administrador
[NombreSwitch]management-vlan 10
[NombreSwitch]Interface Vlan-Interface 10
[H3C-Vlan-interface10]ip address 192.168.10.1 255.255.255.0

Con eso quedara listo para ingresar a travs de un navegador


utilizando la ip de la interface de la vlan administrativa para este caso la
vlan 10 y desde un computador que est correctamente configurado
para la vlan respectiva podemos ingresar Ilustracin 5: Ingreso a la
consola de administracin a travs de un navegador.

Ilustracin 5: Ingreso a la consola de administracin a travs de un


navegador

Gensystems S. A
www.gs-ec.com

Pgina 13

Ilustracin 6: Entrada Exitosa a la consola de administracin a traves de un


navegador.

Con esta ventana ya podemos administrar el Switch con sus diversas


opciones.

Gensystems S. A
www.gs-ec.com

Pgina 14

Anda mungkin juga menyukai