Configuracion OSPF con routers CISCO
1 Configuracion Router 1
Configuracion de interfaces
Router>enable
Router#configure terminal
Router(config)#interface gigabitEthernet 0/0/0
Router(config-if)#ip address 10.1.1.1 255.255.255.252
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#interface gigabitEthernet 0/0/1
Router(config-if)#ip address 192.168.1.1 255.255.255.252
Router(config-if)#no shutdown
Router(config-if)#exit
2 Configuracion Router 2
Router>enable
Router#configure terminal
Router(config)#interface gigabitEthernet 0/0/0
Router(config-if)#ip address 10.1.1.2 255.255.255.252
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#interface gigabitEthernet 0/0/1
Router(config-if)#ip address 192.168.2.1 255.255.255.252
Router(config-if)#no shutdown
Router(config-if)#exit
Configuracion OSPF
1 Router 1
Router(config-if)#interface gigabitEthernet 0/0/1
Router(config-if)#ip ospf 1 area 0
Router(config-if)#interface gigabitEthernet 0/0/0
Router(config-if)#ip ospf 1 area 0
Router(config-if)#exit
2 Router 2
Router(config-if)#interface gigabitEthernet 0/0/1
Router(config-if)#ip ospf 1 area 0
Router(config-if)#interface gigabitEthernet 0/0/0
Router(config-if)#ip ospf 1 area 0
Router(config-if)#exit
3 Confirmar que se haya establecido OSPF en el Router 1
Router#show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
192.168.2.1 1 FULL/DR 00:00:39 10.1.1.2 GigabitEthernet0/0/0
Router#show ip route ospf
192.168.2.0/30 is subnetted, 1 subnets
O 192.168.2.0 [110/2] via 10.1.1.2, 02:26:06, GigabitEthernet0/0/0
4 Confirmar que se haya establecido OSPF en el Router 2
Router#show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
192.168.1.1 1 FULL/BDR 00:00:37 10.1.1.1 GigabitEthernet0/0/0
Router#show ip route ospf
192.168.1.0/30 is subnetted, 1 subnets
O 192.168.1.0 [110/2] via 10.1.1.1, 02:28:25, GigabitEthernet0/0/0