Cisco: OSPF Interface Authentication
Lab 1: a37028dd-7f55-43c3-b132-654db0f817a0
Topology
Base Configuration
Common Configuration Snippet
Million common configuration is here.
-
-
R1
configure terminal
!
interface GigabitEthernet 0/1
ip address 10.1.2.1 255.255.255.0
no shutdown
interface GigabitEthernet 0/2
ip address 10.1.1.1 255.255.255.0
no shutdown
interface Loopback 0
ip address 1.1.1.1 255.255.255.255
no shutdown
!
end
R2
configure terminal
!
interface GigabitEthernet 0/1
ip address 10.2.3.2 255.255.255.0
no shutdown
interface GigabitEthernet 0/2
ip address 10.1.2.2 255.255.255.0
no shutdown
interface Loopback 0
ip address 2.2.2.2 255.255.255.255
no shutdown
!
end
R3
configure terminal
!
interface GigabitEthernet 0/1
ip address 10.3.3.3 255.255.255.0
no shutdown
interface GigabitEthernet 0/2
ip address 10.2.3.3 255.255.255.0
no shutdown
interface Loopback 0
ip address 3.3.3.3 255.255.255.255
no shutdown
!
end
Configuring OSPF w/o Authentication 9d900a39-2704-4fe1-bea6-f8334011341c
configure terminal
!
router ospf 1
router-id 1.1.1.1
network 10.1.1.1 0.0.0.0 area 10
network 10.1.2.1 0.0.0.0 area 10
network 1.1.1.1 0.0.0.0 area 10
exit
!
end
configure terminal
!
router ospf 1
router-id 2.2.2.2
network 10.1.2.2 0.0.0.0 area 10
network 10.2.3.2 0.0.0.0 area 0
network 2.2.2.2 0.0.0.0 area 0
exit
!
end
configure terminal
!
router ospf 1
router-id 3.3.3.3
network 10.2.3.3 0.0.0.0 area 0
network 10.3.3.3 0.0.0.0 area 0
network 3.3.3.3 0.0.0.0 area 0
exit
!
end
Verification
Configuring OSPF w/ Interface Authentication d93da3d4-fb34-4950-9cd3-70c185867724
configure terminal
!
interface GigabitEthernet 0/1
ip ospf authentication
ip ospf authentication-key PG1X
!
router ospf 1
router-id 1.1.1.1
network 10.1.1.1 0.0.0.0 area 10
network 10.1.2.1 0.0.0.0 area 10
network 1.1.1.1 0.0.0.0 area 10
exit
!
end
configure terminal
!
interface GigabitEthernet 0/1
ip ospf authentication message-digest
ip ospf message-digest-key 1 md5 SuperSECRET
interface GigabitEthernet 0/2
ip ospf authentication
ip ospf authentication-key PG1X
!
router ospf 1
router-id 2.2.2.2
network 10.1.2.2 0.0.0.0 area 10
network 10.2.3.2 0.0.0.0 area 0
network 2.2.2.2 0.0.0.0 area 0
exit
!
end
configure terminal
!
interface GigabitEthernet 0/2
ip ospf authentication message-digest
ip ospf message-digest-key 1 md5 SuperSECRET
!
router ospf 1
router-id 3.3.3.3
network 10.2.3.3 0.0.0.0 area 0
network 10.3.3.3 0.0.0.0 area 0
network 3.3.3.3 0.0.0.0 area 0
exit
!
end
Verification
References