Ejercicios guiados paso a paso
Cisco Packet Tracer es una herramienta de simulación de redes desarrollada por Cisco Systems. Permite diseñar, configurar y resolver problemas en redes virtuales sin necesidad de equipos reales. Es ideal para estudiantes que se preparan para la certificación CCNA.
Crear una red con 3 PCs conectadas a un switch y verificar conectividad.
ping 192.168.1.11Reply from 192.168.1.11.Interconectar dos redes locales usando un router para que PCs de distintas subredes puedan comunicarse.
| Dispositivo | Interfaz | IP | Máscara | Gateway |
|---|---|---|---|---|
| PC0 (Red A) | — | 192.168.1.10 | 255.255.255.0 | 192.168.1.1 |
| PC1 (Red A) | — | 192.168.1.11 | 255.255.255.0 | 192.168.1.1 |
| PC2 (Red B) | — | 192.168.2.10 | 255.255.255.0 | 192.168.2.1 |
| PC3 (Red B) | — | 192.168.2.11 | 255.255.255.0 | 192.168.2.1 |
| Router | Gig0/0 | 192.168.1.1 | 255.255.255.0 | — |
| Router | Gig0/1 | 192.168.2.1 | 255.255.255.0 | — |
Haz clic en el router → pestaña CLI:
Router> enable Router# configure terminal Router(config)# interface gigabitEthernet 0/0 Router(config-if)# ip address 192.168.1.1 255.255.255.0 Router(config-if)# no shutdown Router(config-if)# exit Router(config)# interface gigabitEthernet 0/1 Router(config-if)# ip address 192.168.2.1 255.255.255.0 Router(config-if)# no shutdown Router(config-if)# exit Router(config)# exit Router# show ip interface brief
ping 192.168.2.10 — Debe funcionar (el router reenvía entre redes).ping 192.168.1.10 — También debe funcionar.tracert 192.168.2.10 desde PC0 para ver el salto a través del router.
Crear dos VLANs en un switch y configurar el router para enrutar entre ellas (Router-on-a-Stick).
Switch> enable Switch# configure terminal Switch(config)# vlan 10 Switch(config-vlan)# name Ventas Switch(config-vlan)# exit Switch(config)# vlan 20 Switch(config-vlan)# name IT Switch(config-vlan)# exit ! Asignar puertos Switch(config)# interface fastEthernet 0/2 Switch(config-if)# switchport mode access Switch(config-if)# switchport access vlan 10 Switch(config-if)# exit Switch(config)# interface fastEthernet 0/3 Switch(config-if)# switchport mode access Switch(config-if)# switchport access vlan 20 Switch(config-if)# exit ! Configurar trunk hacia el router Switch(config)# interface fastEthernet 0/1 Switch(config-if)# switchport mode trunk Switch(config-if)# exit Switch# show vlan brief
Router> enable Router# configure terminal Router(config)# interface gigabitEthernet 0/0 Router(config-if)# no shutdown Router(config-if)# exit Router(config)# interface gigabitEthernet 0/0.10 Router(config-subif)# encapsulation dot1Q 10 Router(config-subif)# ip address 192.168.10.1 255.255.255.0 Router(config-subif)# exit Router(config)# interface gigabitEthernet 0/0.20 Router(config-subif)# encapsulation dot1Q 20 Router(config-subif)# ip address 192.168.20.1 255.255.255.0 Router(config-subif)# exit Router(config)# exit Router# show ip route
Desde PC0: ping 192.168.20.10 — El router debe reenviar entre VLANs.
Configurar un servidor DHCP y un router como relay para que clientes en otra red obtengan IP automáticamente.
Servidor → Desktop → IP Configuration:
Router> enable Router# configure terminal Router(config)# interface gigabitEthernet 0/0 Router(config-if)# ip address 192.168.1.1 255.255.255.0 Router(config-if)# no shutdown Router(config-if)# ip helper-address 192.168.1.100 Router(config-if)# exit
En cada PC → Desktop → IP Configuration → seleccionar DHCP. Deberían recibir una IP automáticamente (192.168.1.50, .51, etc.).
ipconfig en el Command Prompt de cada PC.
Conectar tres routers con rutas estáticas y luego migrar a OSPF para enrutamiento dinámico.
clock rate 64000.| Dispositivo | Interfaz | IP | Red |
|---|---|---|---|
| R1 | Gig0/0 | 10.0.1.1/24 | Enlace R1-R2 |
| R2 | Gig0/0 | 10.0.1.2/24 | Enlace R1-R2 |
| R2 | Gig0/1 | 10.0.2.1/24 | Enlace R2-R3 |
| R3 | Gig0/0 | 10.0.2.2/24 | Enlace R2-R3 |
| R1 | Gig0/1 | 192.168.1.1/24 | LAN R1 |
| R2 | Gig0/2 | 192.168.2.1/24 | LAN R2 |
| R3 | Gig0/1 | 192.168.3.1/24 | LAN R3 |
R1(config)# ip route 192.168.2.0 255.255.255.0 10.0.1.2 R1(config)# ip route 192.168.3.0 255.255.255.0 10.0.1.2 R2(config)# ip route 192.168.1.0 255.255.255.0 10.0.1.1 R2(config)# ip route 192.168.3.0 255.255.255.0 10.0.2.2 R3(config)# ip route 192.168.1.0 255.255.255.0 10.0.2.1 R3(config)# ip route 192.168.2.0 255.255.255.0 10.0.2.1
! R1 R1(config)# router ospf 1 R1(config-router)# network 192.168.1.0 0.0.0.255 area 0 R1(config-router)# network 10.0.1.0 0.0.0.255 area 0 ! R2 R2(config)# router ospf 1 R2(config-router)# network 192.168.2.0 0.0.0.255 area 0 R2(config-router)# network 10.0.1.0 0.0.0.255 area 0 R2(config-router)# network 10.0.2.0 0.0.0.255 area 0 ! R3 R3(config)# router ospf 1 R3(config-router)# network 192.168.3.0 0.0.0.255 area 0 R3(config-router)# network 10.0.2.0 0.0.0.255 area 0
show ip ospf neighbor y show ip route ospf en cada router para ver las rutas aprendidas dinámicamente.
Desde PC en LAN R1: ping 192.168.3.10 (IP de PC en LAN R3). El tráfico debe cruzar R1 → R2 → R3.
.pkt).ping, show ip route, show vlan brief y show interfaces.