! RutaRoot — Laboratorio multi-simulador: triángulo OSPF (área 0)
! Configuración IOS para Packet Tracer (router 2911), GNS3/EVE-NG (IOSv) o CML-Free (IOSv).
! Cableado: Gi0/0 y Gi0/1 = enlaces entre routers, Gi0/2 = LAN del PC.
!   R1 Gi0/0 <-> R2 Gi0/0   10.0.12.0/30
!   R1 Gi0/1 <-> R3 Gi0/0   10.0.13.0/30
!   R2 Gi0/1 <-> R3 Gi0/1   10.0.23.0/30
! PCs: PC1 192.168.1.10/24 gw .1 · PC2 192.168.2.10/24 gw .1 · PC3 192.168.3.10/24 gw .1
! Pega cada bloque en el modo EXEC privilegiado (enable) del router correspondiente.

! ================= R1 =================
enable
configure terminal
hostname R1
no ip domain-lookup
interface Loopback0
 ip address 1.1.1.1 255.255.255.255
interface GigabitEthernet0/0
 description Enlace a R2
 ip address 10.0.12.1 255.255.255.252
 no shutdown
interface GigabitEthernet0/1
 description Enlace a R3
 ip address 10.0.13.1 255.255.255.252
 no shutdown
interface GigabitEthernet0/2
 description LAN PC1
 ip address 192.168.1.1 255.255.255.0
 no shutdown
router ospf 1
 router-id 1.1.1.1
 network 10.0.12.0 0.0.0.3 area 0
 network 10.0.13.0 0.0.0.3 area 0
 network 192.168.1.0 0.0.0.255 area 0
 network 1.1.1.1 0.0.0.0 area 0
 passive-interface GigabitEthernet0/2
end
copy running-config startup-config

! ================= R2 =================
enable
configure terminal
hostname R2
no ip domain-lookup
interface Loopback0
 ip address 2.2.2.2 255.255.255.255
interface GigabitEthernet0/0
 description Enlace a R1
 ip address 10.0.12.2 255.255.255.252
 no shutdown
interface GigabitEthernet0/1
 description Enlace a R3
 ip address 10.0.23.1 255.255.255.252
 no shutdown
interface GigabitEthernet0/2
 description LAN PC2
 ip address 192.168.2.1 255.255.255.0
 no shutdown
router ospf 1
 router-id 2.2.2.2
 network 10.0.12.0 0.0.0.3 area 0
 network 10.0.23.0 0.0.0.3 area 0
 network 192.168.2.0 0.0.0.255 area 0
 network 2.2.2.2 0.0.0.0 area 0
 passive-interface GigabitEthernet0/2
end
copy running-config startup-config

! ================= R3 =================
enable
configure terminal
hostname R3
no ip domain-lookup
interface Loopback0
 ip address 3.3.3.3 255.255.255.255
interface GigabitEthernet0/0
 description Enlace a R1
 ip address 10.0.13.2 255.255.255.252
 no shutdown
interface GigabitEthernet0/1
 description Enlace a R2
 ip address 10.0.23.2 255.255.255.252
 no shutdown
interface GigabitEthernet0/2
 description LAN PC3
 ip address 192.168.3.1 255.255.255.0
 no shutdown
router ospf 1
 router-id 3.3.3.3
 network 10.0.13.0 0.0.0.3 area 0
 network 10.0.23.0 0.0.0.3 area 0
 network 192.168.3.0 0.0.0.255 area 0
 network 3.3.3.3 0.0.0.0 area 0
 passive-interface GigabitEthernet0/2
end
copy running-config startup-config

! Verificación: show ip ospf neighbor · show ip route ospf · show ip protocols
! Desde PC1: ping 192.168.3.10 · tracert 192.168.3.10
