Comandos Cisco
Enviado por KarlaKingsley • 27 de Febrero de 2023 • Ensayos • 1.521 Palabras (7 Páginas) • 34 Visitas
LAN Swithing and Wireless
Modo Usuario
switch>
switch> enable (Para pasar a modo Privilegiado)
Modo Privilegiado
switch#
switch# show + (lo que se desea verificar)
switch# configure terminal (para ingresar a modo de configuracion global)
Modo de Configuración Global
switch (config)# hostname nombre (asigna un nombre al equipo)
switch (config)# exit (se devuelve al modo anterior)
switch (config)# end (Se devuelve al modo privilegiado)
switch (config)# enable password password 1 (Para colocarle contraseña a enable)
switch (config)# enable secret password 2 (encripta la contraseña de enable)
Consola
switch (config)# line console 0 (entra en la linea de comandos de consola)
switch (config-line)# password consola (Establece contraseña en la linea de consola)
switch (config-line)# login
switch (config-line)# exec-timeout 10 0 (Establece el tiempo antes de solicitar contraseña luego de estar en reposo)
Configuracion de Acceso Remoto
switch (config)# line vty 0 4 (para configurar las 5 VTY de una vez)
switch (config-line)# password telnet (Establece la contraseña de VTY)
switch (config-line)#login
Encriptar todas las Contraseñas
switch (config)# service password-encryption
Colocar un mensaje
switch (config)# banner motd * mensaje *
Configurar puertos
switch (config)# interface f0/0
switch (config-if)# ip address 10.0.181.65 255.255.255.248
switch (config-if)# no shutdown
switch (config)# interface s0/0
switch (config-if)# ip address 201.35.1.2 255.255.255.252
switch (config-if)# clockrate 64000
switch (config-if)# no shutdown
Guardar configuración
switch (config)# write memory
switch (config)# copy running-config startup-config
Ver laconfiguración Guardada
switch (config)# show running-config
Configurar IP en la Vlan por defecto
switch (config)# Interface Vlan 1
switch (config-if)# ip address 10.0.0.1 255.0.0.0
switch (config-if)# description (Mensaje esta es la Interfaz Administrativa del Switch)
switch (config-if)# no shutdown
Colocar dirección Mac estatica
switch (config)# mac-address-table static "H.H.H"
switch (config)#
Configurar Gateway (Para que el router responda solicitudes desde otras redes)
switch (config)# ip default-gateway 10.0.0.1
show ip interface brief (Muesra las subinterfaces)
Seguridad en puertos del Switch "Port Security"
switch (config)# Interface f0/1
switch (config-if)# switchport mode access
switch (config-if)# switchport port-security
switch (config-if)# switchport port-security mac-address sticky ó H.H.H
switch (config-if)# switchport port-security maximum 3 (Indica cuantas mac address se pueden agregar automticamente)
switch (config-if)# switchport port-security violation (Protect ó Restric ó shutdown)
Protec Indica que se debe ignorar el trafico del equipo agregado
Restric Ignora el trafico del equipo y cuenta las violaciones
Shutdown Indica que el puerto debe apagarse
Resolución de conexion una vez que el puerto fue violado
switch (config)# Interface f0/2 (Interfaz caida)
switch (config)# no switchport-security
switch # clear port security (all / Sticky / Dinamic) Borra los contadores port security
switch (config)# interface f0/2
switch (config-if)# shutdown
switch (config-if)# no shutdown
switch (config-if)# switchport port-security
Crear Vlan
switch # configure terminal
switch (config)# vlan 10
switch (config-vlan)# name IT
switch (config-vlan)# exit
Otra forma de crear una Vlan
switch # vlan database
switch (vlan)# vlan 50 name cisco
Editar una Vlan
switch (config)# vlan 50
switch (config-vlan)# name fundanet
Eliminar una Vlan
switch (config)# no vlan 50
Asociar Vlan a los Puertos
switch (config)# Interface f0/1 ó interface range f0/1-5
switch
...