0% found this document useful (0 votes)
56 views

CONFIGURACION SWITCH-router

The document describes the configuration of switches and routers. On the switch, it shows configuring the hostname, enabling passwords, and interface configuration. On the routers, it resets the configuration, configures hostnames, passwords, banners, console and vty lines, interface IP addresses, and debugging commands.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
56 views

CONFIGURACION SWITCH-router

The document describes the configuration of switches and routers. On the switch, it shows configuring the hostname, enabling passwords, and interface configuration. On the routers, it resets the configuration, configures hostnames, passwords, banners, console and vty lines, interface IP addresses, and debugging commands.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

CONFIGURACION SWITCH

Switch>enable
Switch#show running-config
Building configuration...

Current configuration : 1078 bytes


!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Switch
!
!
!
!
!
spanning-tree mode pvst
spanning-tree extend system-id
!
interface FastEthernet0/1
!
interface FastEthernet0/2
!

Switch#
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#
Switch(config)#hostname SW2
SW2(config)#
SW2(config)#enable password cisco
SW2(config)#exit
SW2#
SW2(config)#no enable password
SW2(config)#enable secret cisco
SW2(config)#exit
SW2#write
Building configuration...
[OK]
SW2#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
SW2(config)#do write
Building configuration...
[OK]
SW2(config)#exit
SW2#
SW2#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
SW2(config)#no ip domain-lookup
SW2(config)#exit
SW2#sadasfefg
Translating "sadasfefg"
% Unknown command or computer name, or unable to find computer address
CONFIGURACION DE ROUTER

Router>enable //Ingresar al modo privilegiado

Router#
Router#erase startup-config //Borrar la configuración actual del router
Erasing the nvram filesystem will remove all configuration files! Continue? [confirm]
[OK]
Erase of nvram: complete
%SYS-7-NV_BLOCK_INIT: Initialized the geometry of nvram
Router#reload //Recargar la configuración

Router>enable
Router#configure terminal //Ingresar al modo de configuración global
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R1 //Nombre del Router R1

R1(config)#no ip domain-lookup //Desactivar la Busqueda DNS para que no cargue si


//escribes algo sin sentido

R1(config)#enable secret class //Poner contraseña class para ngresar al modo privilegiado

R1(config)#banner motd &


Enter TEXT message. End with the character '&'.
******************************
!!!AUTHORIZED ACCES ONLY!!!
******************************
& //Mensaje del día
R1(config)#line console 0
R1(config-line)#password cisco
R1(config-line)#login
R1(config-line)#exit //Establecer contraseña de consola en el router
R1(config)#line vty 0 4
R1(config-line)#password cisco
R1(config-line)#login
R1(config-line)#exit //Establecer contraseña para las líneas de terminal virtual

***Empezar a configurar la interfaz fastethernet 0/0**


R1(config)#interface fastethernet 0/0
R1(config)#interface fastethernet 0/0
R1(config-if)#ip address 192.168.1.1 255.255.255.0
R1(config-if)#no shutdown
***Empezar a configurar la interfaz Serial 0/0/0***
R1(config-if)#interface serial 0/0/0
R1(config-if)#ip address 192.168.2.1 255.255.255.0
R1(config-if)#clock rate 64000 //Su utilidad se explica en enrutamiento estatico
This command applies only to DCE interfaces
R1(config-if)#no shutdown

RESUMEN EN R2
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R2
R2(config)#no ip domain-lookup
R2(config)#enable secret class
R2(config)#banner motd &
Enter TEXT message. End with the character '&'.
***************************
!!AUTHORIZED ACCESS ONLY!!!
***************************
&

R2(config)#line console 0
R2(config-line)#password cisco
R2(config-line)#login
R2(config-line)#exit
R2(config)#line vty 0 4
R2(config-line)#password cisco
R2(config-line)#login
R2(config-line)#exit

R1#show ip route //Ver las rutas del router

R1#show ip interface brief //Ver las interfaces


Router>en
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R1
R1(config)#ip domain-lookup
R1(config)#enable secret cisco
R1(config)#line console 0
R1(config-line)#logging synchronous
R1(config-line)#exec-timeout 0 0
R1(config-line)#password cisco

R1(config-line)#line vty 0 4
R1(config-line)#logging synchronous
R1(config-line)#exec-timeout 0 0
R1(config-line)#password cisco
R1(config-line)#login
R1(config-line)#exit
R1(config)#

debug ip routing : Te avisa cuando agregas un ip a una interface de un router etc

You might also like