Clase 2: Configuracion en El Router
Clase 2: Configuracion en El Router
Clase 2: Configuracion en El Router
router1>en
Password:
Password:
router1#
router1#
router1#
router1#conf ter
router1#conf terminal
Enter configuration commands, one per line. End with CNTL/Z.
router1(config)#lin
router1(config)#line console 0
router1(config-line)#passw
router1(config-line)#password
router1(config-line)#logging synchronous --- no muestra errores del syslog en la
consola
router1(config)#service password-encryption --- para terminales Telnet y consola
router1(config)#no ip domain-lookup deshabilitar busquedas de dns
router1(config)#line vty 0 4
router1(config-line)# --- aplicara a los 5 terminales
router1(config)#line vty 0 4
router1(config-line)#password router1
router1(config-line)#login
router1(config-line)#exec
router1(config-line)#exec-timeout 0 0
router1(config-line)#login
router1(config-line)#login sin
router1(config-line)#logg
router1(config-line)#logging syn
router1(config-line)#logging synchronous
CONFIGURACION EN EL ROUTER
router1(config)#inte
router1(config)#interface fa 0/0
router1(config-if)#ip ad
CONFIGURACIONES EN EL SWITCH
Switch(config)#inter vlan 1
Switch(config-if)#ip add
Switch(config-if)#ip address 192.168.1.5 255.255.255.0
Switch(config-if)#no shu
Switch(config-if)#no shutdown
%LINK-5-CHANGED: Interface Vlan1, changed state to up
Switch(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up
Switch(config-if)#do ping 192.168.1.1 ---- PARA HACER PING SIN SALIR DEL
CONF TERM
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 2/4/7 ms
*** LAS INTERFACES DE VLAN SI ESTAN DESACTIVADAS POR DEFECTO
Switch(config-if)#EXIT
Switch(config)#ip def
Switch(config)#ip default-gateway 192.168.1.1 --- configure la puerta de enlace.
CLASE 3
Switch central
Switch(config)#hostname
Switch(config)#hostname ?
WORD This system's network name
Switch(config)#hostname Switch0
Switch0(config)#vt
Switch0(config)#vtp ?
domain Set the name of the VTP administrative domain.
mode
Configure VTP device mode
password Set the password for the VTP administrative domain
version Set the adminstrative domain to VTP version
Switch0(config)#vtp doma
Switch0(config)#vtp domain cisco
Changing VTP domain name from NULL to cisco
Switch0(config)#vtp mod
Switch0(config)#vtp mode ?
client
Set the device to client mode.
server
Set the device to server mode.
transparent Set the device to transparent mode.
Switch0(config)#vtp mode server
Device mode already VTP SERVER.
Switch0(config)#vtp password cisco
Setting device VLAN database password to cisco
Switch0(config)#
Switch0(config)#
Switch0(config)#
Switch0(config)#do sh vlan
VLAN Name
Status Ports
---- -------------------------------- --------- ------------------------------1 default
active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Creacion de las vlan y nombre
Switch0(config)#vlan 10
Switch0(config-vlan)#vlan 20
Switch0(config-vlan)#vlan 30
Switch0(config-vlan)#exit
Switch0(config)#vlan
Switch0(config)#vlan 10
Switch0(config-vlan)#name VLAN10
Switch0(config-vlan)#exit
Switch0(config)#vlan
Switch0(config)#vlan 20
Switch0(config-vlan)#name VLAN20
Switch0(config-vlan)#exit
Switch0(config)#vla
Switch0(config)#vlan 30
Switch0(config-vlan)#name VLAN30
Switch0(config-vlan)#
Switch0(config-if)#exit
Switch0(config)#interface fa0/1
Switch0(config-if)#switchport mode trunk
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state
to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state
to up
Switch0(config-if)#