Lab - Basic Device Configuration and OSPF Authentication
Lab - Basic Device Configuration and OSPF Authentication
R1
Router>ena
Router#conf t
Router(config)#hostname R1
R1(config)#interface g0/0/0
R1(config-if)#no shut
R1(config-if)#no shutdown
R1(config-if)#
R1(config-if)#interface g0/0/1
R1(config-if)#no shutdown
R1(config-if)#
R1(config-if)#no ip domain-lookup
end
R2
Router>ena
Router#conf t
Router(config)#hostna
Router(config)#hostname R2
R2(config)#interface go/0/0
R2(config)#interface g0/0/0
R2(config-if)#no shut
R2(config-if)#no shutdown
R2(config-if)#
R2(config-if)#interface g0/0/1
R2(config-if)#no shut
R2(config-if)#no shutdown
R2(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0/1, changed state to up
R2(config-if)#no ip domain-lookup
end
R3
Router>ena
Router#conf t
R3(config)#interface g0/0/0
R3(config-if)#no shutdown
R3(config-if)#
R3(config-if)#interface g0/0/1
R3(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0/1, changed state to up
R3(config-if)#no ip domain-lookup
end
CopiarEditar
router ospf 1
EXIT
En R2:
bash
CopiarEditar
router ospf 1
EXIT
En R3:
bash
CopiarEditar
router ospf 1
EXIT
Verificar Conectividad
R1
Enable
ping 10.1.1.2
ping 192.168.3.1
Desde una PC-C
ping 192.168.3.3
Configurar Autenticación OSPF (SHA256)
En R1:
R1#ena
R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#key chain NetAcad
R1(config-keychain)#key 1
R1(config-keychain-key)#key-string NetSeckeystring
R1(config-keychain-key)#cryptographic-algorithm hmac-sha-
256
R1(config-keychain-key)#exit
R1(config-keychain)# end
Repite en R2 y R3.
2. Aplicar la Autenticación en las Interfaces
R1
Resumido
interface g0/0/0
ip ospf authentication key-chain NetAcad
como da:
R1#ena
R1#conf t
Enter configuration commands, one per line. End with
CNTL/Z.
R1(config)#interface g0/0/0
R1(config-if)#ip ospf authentication key-chain NetAcad
R1(config-if)#exit
R1(config)#
01:17:01: %OSPF-5-ADJCHG: Process 1, Nbr 10.2.2.2 on
GigabitEthernet0/0/0 from FULL to DOWN, Neighbor
Down: Dead timer expired
R1(config)#end
R2
Resumido:
interface g0/0/0
ip ospf authentication key-chain NetAcad
interface g0/0/1
ip ospf authentication key-chain NetAcad
como da:
R2(config)#interface g0/0/0
R2(config-if)#ip ospf authentication key-chain NetAcad
R2(config-if)#
01:47:15: %OSPF-5-ADJCHG: Process 1, Nbr 192.168.1.1
on GigabitEthernet0/0/0 from LOADING to FULL, Loading
Done
R2(config-if)#interface g0/0/1
R2(config-if)#ip ospf authentication key-chain NetAcad
R2(config-if)#exit
R2(config)#
01:48:14: %OSPF-5-ADJCHG: Process 1, Nbr 192.168.3.1
on GigabitEthernet0/0/1 from FULL to DOWN, Neighbor
Down: Dead timer expired
R3(config)#end
3. Verificar la Autenticación OSPF en cada
Router
RESUMIDO
show ip ospf neighbor
show ip ospf interface g0/0/0
R1:
R1#show ip ospf neighbor
R2:
R2#show ip ospf neighbor