hostname R1
interface GigabitEthernet 0/0
no switchport
ip address 12.0.0.1 255.255.255.0
interface Loopback 0
ip address 1.1.1.1 255.255.255.0
ip route 0.0.0.0 0.0.0.0 12.0.0.2
hostname R2
interface GigabitEthernet 0/0
no switchport
ip address 12.0.0.2 255.255.255.0
interface GigabitEthernet 0/1
no switchport
ip address 23.0.0.2 255.255.255.0
ip ospf 1 area 0
interface Loopback 0
ip address 2.2.2.2 255.255.255.255
ip ospf 1 area 0
interface Tunnel 1
ip address 24.0.0.2 255.255.255.0
tunnel source 23.0.0.2
tunnel destination 34.0.0.4
router ospf 1
router-id 2.2.2.2
graceful-restart
ip route 45.0.0.0 255.255.255.0 Tunnel 1 34.0.0.4
hostname R3
interface GigabitEthernet 0/0
no switchport
ip address 23.0.0.3 255.255.255.0
ip ospf 1 area 0
interface GigabitEthernet 0/1
no switchport
ip address 34.0.0.3 255.255.255.0
ip ospf 1 area 0
interface Loopback 0
ip address 3.3.3.3 255.255.255.255
ip ospf 1 area 0
router ospf 1
router-id 3.3.3.3
graceful-restart
hostname R4
interface GigabitEthernet 0/0
no switchport
ip address 34.0.0.4 255.255.255.0
ip ospf 1 area 0
interface GigabitEthernet 0/1
no switchport
ip address 45.0.0.4 255.255.255.0
interface Loopback 0
ip address 4.4.4.4 255.255.255.255
ip ospf 1 area 0
interface Tunnel 1
ip address 24.0.0.4 255.255.255.0
tunnel source 34.0.0.4
tunnel destination 23.0.0.2
router ospf 1
router-id 4.4.4.4
graceful-restart
ip route 12.0.0.0 255.255.255.0 Tunnel 1 24.0.0.2
hostname R5
interface GigabitEthernet 0/0
no switchport
ip address 45.0.0.5 255.255.255.0
interface Loopback 0
ip address 5.5.5.5 255.255.255.255
ip route 0.0.0.0 0.0.0.0 45.0.0.4