0% found this document useful (0 votes)
3 views18 pages

Lab - Basic Device Configuration and OSPF Authentication

The document outlines the basic configuration of three routers (R1, R2, R3) including interface setup and OSPF configuration. It details the commands used to set IP addresses, enable interfaces, and configure OSPF with authentication using SHA256. Finally, it includes verification steps for connectivity and OSPF neighbor relationships for each router.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views18 pages

Lab - Basic Device Configuration and OSPF Authentication

The document outlines the basic configuration of three routers (R1, R2, R3) including interface setup and OSPF configuration. It details the commands used to set IP addresses, enable interfaces, and configure OSPF with authentication using SHA256. Finally, it includes verification steps for connectivity and OSPF neighbor relationships for each router.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 18

Configuración Básica.

R1
Router>ena

Router#conf t

Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#hostname R1

R1(config)#interface g0/0/0

R1(config-if)#ip add 10.1.1.1 255.255.255.252

R1(config-if)#no shut

R1(config-if)#no shutdown

R1(config-if)#

%LINK-5-CHANGED: Interface GigabitEthernet0/0/0, changed state to up

R1(config-if)#interface g0/0/1

R1(config-if)#ip add 192.168.1.1 255.255.255.0

R1(config-if)#no shutdown

R1(config-if)#

%LINK-5-CHANGED: Interface GigabitEthernet0/0/1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0/1, changed


state to up

R1(config-if)#no ip domain-lookup

end
R2
Router>ena

Router#conf t

Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#hostna

Router(config)#hostname R2

R2(config)#interface go/0/0

% Invalid input detected at '^' marker.

R2(config)#interface g0/0/0

R2(config-if)#ip add 10.1.1.2 255.255.255.252

R2(config-if)#no shut

R2(config-if)#no shutdown

R2(config-if)#

%LINK-5-CHANGED: Interface GigabitEthernet0/0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0/0, changed


state to up

R2(config-if)#interface g0/0/1

R2(config-if)#ip add 10.2.2.2 255.255.255.252

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

Enter configuration commands, one per line. End with CNTL/Z.


Router(config)#hostname R3

R3(config)#interface g0/0/0

R3(config-if)#ip add 10.2.2.1 255.255.255.252

R3(config-if)#no shutdown

R3(config-if)#

%LINK-5-CHANGED: Interface GigabitEthernet0/0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface


GigabitEthernet0/0/0, changed state to up

R3(config-if)#interface g0/0/1

R3(config-if)#ip add 192.168.3.1 255.255.255.0


R3(config-if)#no shutdown

R3(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0/1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface


GigabitEthernet0/0/1, changed state to up

R3(config-if)#no ip domain-lookup

end

CONFIGURACION DE LOS OSPF EN LOS ROUTERS


En R1:
bash

CopiarEditar
router ospf 1

network 192.168.1.0 0.0.0.255 area 0


network 10.1.1.0 0.0.0.3 area 0
passive-interface g0/0/1

EXIT

En R2:
bash

CopiarEditar
router ospf 1

network 10.1.1.0 0.0.0.3 area 0

network 10.2.2.0 0.0.0.3 area 0

EXIT
En R3:
bash

CopiarEditar

router ospf 1

network 10.2.2.0 0.0.0.3 area 0


network 192.168.3.0 0.0.0.255 area 0
passive-interface g0/0/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

01:17:01: %OSPF-5-ADJCHG: Process 1, Nbr 10.2.2.2 on


GigabitEthernet0/0/0 from FULL to DOWN, Neighbor
Down: Interface down or detached

01:17:31: %OSPF-5-ADJCHG: Process 1, Nbr 10.2.2.2 on


GigabitEthernet0/0/0 from LOADING to FULL, Loading
Done

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

01:48:14: %OSPF-5-ADJCHG: Process 1, Nbr 192.168.3.1


on GigabitEthernet0/0/1 from FULL to DOWN, Neighbor
Down: Interface down or detached

01:48:54: %OSPF-5-ADJCHG: Process 1, Nbr 192.168.3.1


on GigabitEthernet0/0/1 from LOADING to FULL, Loading
Done
R2(config)#end
R3
Resumido:
interface g0/0/0
ip ospf authentication key-chain NetAcad
como va:
R3#ena
R3#conf t
Enter configuration commands, one per line. End with
CNTL/Z.
R3(config)#interface g0/0/0
R3(config-if)#ip ospf authentication key-chain NetAcad
R3(config-if)#exit
R3(config)#
01:48:33: %OSPF-5-ADJCHG: Process 1, Nbr 10.2.2.2 on
GigabitEthernet0/0/0 from LOADING to FULL, Loading
Done

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

Neighbor ID Pri State Dead Time Address Interface


10.2.2.2 1 FULL/BDR 00:00:37 10.1.1.2
GigabitEthernet0/0/0
R1#show ip ospf interface g0/0/0

GigabitEthernet0/0/0 is up, line protocol is up


Internet address is 10.1.1.1/30, Area 0
Process ID 1, Router ID 192.168.1.1, Network Type
BROADCAST, Cost: 1
Transmit Delay is 1 sec, State DR, Priority 1
Designated Router (ID) 192.168.1.1, Interface
address 10.1.1.1
Backup Designated Router (ID) 10.2.2.2, Interface
address 10.1.1.2
Timer intervals configured, Hello 10, Dead 40, Wait
40, Retransmit 5
Hello due in 00:00:04
Index 2/2, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 1, maximum is 1
Last flood scan time is 0 msec, maximum is 0 msec
Neighbor Count is 1, Adjacent neighbor count is 1
Adjacent with neighbor 10.2.2.2 (Backup
Designated Router)
Suppress hello for 0 neighbor(s)
Cryptographic authentication enabled
Sending SA: Key 1, Algorithm HMAC-SHA-256 - key
chain NetAcad
R1#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
R1#
RESUMIDO
show ip ospf neighbor
show ip ospf interface g0/0/0
show ip ospf interface g0/0/1

R2:
R2#show ip ospf neighbor

Neighbor ID Pri State Dead Time Address Interface


192.168.3.1 1 FULL/DR 00:00:39 10.2.2.1
GigabitEthernet0/0/1
192.168.1.1 1 FULL/DR 00:00:35 10.1.1.1
GigabitEthernet0/0/0
R2#show ip ospf interface g0/0/0

GigabitEthernet0/0/0 is up, line protocol is up


Internet address is 10.1.1.2/30, Area 0
Process ID 1, Router ID 10.2.2.2, Network Type
BROADCAST, Cost: 1
Transmit Delay is 1 sec, State BDR, Priority 1
Designated Router (ID) 192.168.1.1, Interface
address 10.1.1.1
Backup Designated Router (ID) 10.2.2.2, Interface
address 10.1.1.2
Timer intervals configured, Hello 10, Dead 40, Wait
40, Retransmit 5
Hello due in 00:00:09
Index 1/1, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 1, maximum is 1
Last flood scan time is 0 msec, maximum is 0 msec
Neighbor Count is 1, Adjacent neighbor count is 1
Adjacent with neighbor 192.168.1.1 (Designated
Router)
Suppress hello for 0 neighbor(s)
Cryptographic authentication enabled
Sending SA: Key 1, Algorithm HMAC-SHA-256 - key
chain NetAcad
R2#show ip ospf interface g0/0/1

GigabitEthernet0/0/1 is up, line protocol is up


Internet address is 10.2.2.2/30, Area 0
Process ID 1, Router ID 10.2.2.2, Network Type
BROADCAST, Cost: 1
Transmit Delay is 1 sec, State BDR, Priority 1
Designated Router (ID) 192.168.3.1, Interface
address 10.2.2.1
Backup Designated Router (ID) 10.2.2.2, Interface
address 10.2.2.2
Timer intervals configured, Hello 10, Dead 40, Wait
40, Retransmit 5
Hello due in 00:00:08
Index 2/2, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 1, maximum is 1
Last flood scan time is 0 msec, maximum is 0 msec
Neighbor Count is 1, Adjacent neighbor count is 1
Adjacent with neighbor 192.168.3.1 (Designated
Router)
Suppress hello for 0 neighbor(s)
Cryptographic authentication enabled
Sending SA: Key 1, Algorithm HMAC-SHA-256 - key
chain NetAcad
R2#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
RESUMIDO
show ip ospf neighbor
show ip ospf interface g0/0/0
R3:
R3#show ip ospf neighbor

Neighbor ID Pri State Dead Time Address Interface


10.2.2.2 1 FULL/BDR 00:00:31 10.2.2.2
GigabitEthernet0/0/0
R3#show ip ospf interface g0/0/0

GigabitEthernet0/0/0 is up, line protocol is up


Internet address is 10.2.2.1/30, Area 0
Process ID 1, Router ID 192.168.3.1, Network Type
BROADCAST, Cost: 1
Transmit Delay is 1 sec, State DR, Priority 1
Designated Router (ID) 192.168.3.1, Interface
address 10.2.2.1
Backup Designated Router (ID) 10.2.2.2, Interface
address 10.2.2.2
Timer intervals configured, Hello 10, Dead 40, Wait
40, Retransmit 5
Hello due in 00:00:06
Index 1/1, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 1, maximum is 1
Last flood scan time is 0 msec, maximum is 0 msec
Neighbor Count is 1, Adjacent neighbor count is 1
Adjacent with neighbor 10.2.2.2 (Backup
Designated Router)
Suppress hello for 0 neighbor(s)
Cryptographic authentication enabled
Sending SA: Key 1, Algorithm HMAC-SHA-256 - key
chain NetAcad
R3#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
R3#

You might also like