OSPF Virtual Link Authentication
Plain Text Authentication

 

conf t
ho R1
int g0/0
ip add 192.168.1.1 255.255.255.252
no sh
ip ospf authentication
ip ospf authentication-key pass123
exit

int loopback 1
ip address 1.1.1.1 255.255.255.0
int loopback 2
ip address 1.1.2.1 255.255.255.0
exit

router ospf 1
network 192.168.1.0 0.0.0.3 area 1
network 1.1.1.0 0.0.0.255 area 1
network 1.1.2.0 0.0.0.255 area 1
end
-------------------------------
conf t
ho R2
int g0/0
ip add 192.168.1.2 255.255.255.252
no sh
ip ospf authentication
ip ospf authentication-key pass123
int g0/1
ip add 192.168.1.5 255.255.255.252
no sh
ip ospf authentication
ip ospf authentication-key pass123
exit

int loopback 1
ip address 2.2.2.1 255.255.255.0
int loopback 2
ip address 2.2.3.1 255.255.255.0
exit

router ospf 1
network 192.168.1.0 0.0.0.3 area 1
network 192.168.1.4 0.0.0.3 area 0
network 2.2.2.0 0.0.0.255 area 0
network 2.2.3.0 0.0.0.255 area 0
end

--------------------------------
conf t
ho R3
int g0/0
ip add 192.168.1.6 255.255.255.252
no sh
ip ospf authentication
ip ospf authentication-key pass123
int g0/1
ip add 192.168.1.9 255.255.255.252
no sh
ip ospf authentication
ip ospf authentication-key pass123
exit

int loopback 1
ip address 3.3.3.1 255.255.255.0
int loopback 2
ip address 3.3.4.1 255.255.255.0
exit

router ospf 1
 area 0 authentication
 area 2 virtual-link 4.4.5.1 authentication-key pass123
network 192.168.1.4 0.0.0.3 area 0
network 192.168.1.8 0.0.0.3 area 2
network 3.3.3.0 0.0.0.255 area 0
network 3.3.4.0 0.0.0.255 area 0
end
------------------------
conf t
ho R4
int g0/0
ip add 192.168.1.10 255.255.255.252
no sh
ip ospf authentication
ip ospf authentication-key pass123
int g0/1
ip add 192.168.1.13 255.255.255.252
no sh
ip ospf authentication
ip ospf authentication-key pass123
exit

int loopback 1
ip address 4.4.4.1 255.255.255.0
int loopback 2
ip address 4.4.5.1 255.255.255.0
exit

router ospf 1
 area 0 authentication
 area 2 virtual-link 3.3.4.1 authentication-key pass123
network 192.168.1.8 0.0.0.3 area 2
network 192.168.1.12 0.0.0.3 area 3
network 4.4.4.0 0.0.0.255 area 2
network 4.4.5.0 0.0.0.255 area 2
end
-------------------------------------
conf t
ho R5
int g0/0
ip add 192.168.1.14 255.255.255.252
no sh
ip ospf authentication
ip ospf authentication-key pass123
exit

int loopback 1
ip address 5.5.5.1 255.255.255.0
int loopback 2
ip address 5.5.6.1 255.255.255.0
exit

router ospf 1
network 192.168.1.12 0.0.0.3 area 3
network 5.5.5.0 0.0.0.255 area 3
network 5.5.6.0 0.0.0.255 area 3
end