//ROUTER
ena
config t
hostname UTEZ
no ip domain-lookup
banner motd # Solo Personal Autorizado del 2D #
enable secret cisco
service password-encryption
line con 0
password cisco
login
exec-timeout 3 30
exit
line vty 0 15
password cisco
login
exec-timeout 1 0
exit
int gi0/0
ip add 172.16.5.254 255.255.254.0
no shutdown
exit
int gi0/1
ip add 172.16.3.254 255.255.252.0
no shut
exit
int s0/1/0
ip add 172.16.6.161 255.255.255.252
clock rate 72000
no sh
do wr
//SWITCH
ena
config t
hostname SW-UTEZ
no ip domain-lookup
banner motd # Solo Personal Autorizado del 2D #
enable secret cisco
service password-encryption
line con 0
password cisco
login
exec-timeout 3 30
exit
line vty 0 15
password cisco
login
exec-timeout 1 0
exit
int vlan 1
ip add 172.16.3.253 255.255.252.0
no shut
exit
ip default-gateway 172.16.3.254
//IPv4 RIP
router rip
version 2
network 200.10.10.8
network 210.10.10.128
network 172.16.10.0
no auto-summary
passive-interface g0/0/0
exit
//IPv6 RIP
ipv6 unicast-routing
ipv6 router rip NOMBRE
interface g0/0
ipv6 rip NOMBRE enable
interface s0/0/0
ipv6 rip NOMBRE enable
exit
//COMANDOS DE VERIFICACIÓN
show ipv6 protocols
show ipv6 route
show run | include ipv6 route
ipv6 route ::/0 s0/0/0
no ipv6 route ::/0 s0/0/0
//Ip route estatico default
ip route 0.0.0.0 0.0.0.0 s0/0/1
ipv6 route ::/0 s0/0/1
//Ip route estatico standard
ip route 192.168.10.0 255.255.255.0 s0/0/1
ipv6 route 2001:ABC:CAFE:1F4::/64 s0/0/1
/24   =   0 =   254 host
/25   =   128   = 126 host
/26   =   192   = 62 host
/27   =   224   = 30 host
/28   =   240   = 14 host
/29   =   248   = 6 host
/30   =   252   = 2 host
//INTERVLAN
SWITCH
vlan 10
name alumnos
vlan 20
name docentes
int range fa0/1-8
sw mode access
sw access vlan 10
int gi0/1
sw mode tr
sw tr allowed vlan 1,10,20,99
sw tr native vlan 99
VERIFICACIÓN
do sh vlan brief
do sh int tr
ROUTER
int g0/0/0
no sh
int g0/0/0.10
encapsulation dot1q 10
ip add 0.0.0.254 0.0.0.0
int g0/0/0.20
encapsulation dot1q 20
ip add 0.0.0.254 0.0.0.0
SWITCH
int g0/2
sw mode tr
sw tr allowed vlan 1,10,20,99
CONFIGURACIÓN SWITCH DE EN MEDIO (PARA COFIGURAR AMBOS Gi AL MISMO TIEMPO)
int range g0/1-2
sw mode tr
sw tr allowed vlan 1,100,200,300,99
sw tr native vlan 99
//DHCP(Dinamic Host Configuration Protocol)
ip dhcp excluded-address 192.168.10.1 192.168.10.10
ip dhcp pool VLAN10
network 192.168.10.0 255.255.255.0
default-router 192.168.1.1
dns-server 8.8.8.8
VERIFICACIÓN
do sh ip int brief
//SSH (SECURE SHELL)
hostname RCDMX
ena secret cisco
line con 0
password cisco
login
exit
ip domain-name 2d.edu.mx
crypto key generate rsa
1024
ip ssh v 2
username santi privilege 15 secret cisco
line vty 0 15
transport input ssh
login local