Objective:
> Formed OSPF neighbors between MANILA and MELBOURNE Router
> Examine the OSPF database (LSDB) of both MANILA and MELBOURNE router.
Below will be the configurations of the MANILA Router:
R1#config t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#host
R1(config)#hostname MANILA
MANILA(config)#int s3/0
MANILA(config-if)#ip address 192.168.12.1 255.255.255.0
MANILA(config-if)#no shut
MANILA(config-if)#exit
MANILA(config)#int lo1
MANILA(config-if)#ip address 100.100.100.1 255.255.255.0
MANILA(config-if)#exit
MANILA(config)#router ospf 1
MANILA(config-router)#network 192.168.12.0 0.0.0.255 area 0
MANILA(config-router)#network 100.100.100.0 0.0.0.255 area 0
MANILA(config-router)#^Z
Below will be the configurations of the MELBOURNE Router:
R2#config t
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#hostname MELBOURNE
MELBOURNE(config)#int s3/0
MELBOURNE(config-if)#ip address 192.168.12.2 255.255.255.0
MELBOURNE(config-if)#no shut
MELBOURNE(config-if)#exit
MELBOURNE(config)#int lo1
MELBOURNE(config-if)#ip add 200.200.200.1 255.255.255.0
MELBOURNE(config)#router ospf 1
MELBOURNE(config-router)#network 192.168.12.2 0.0.0.255 area 0
MELBOURNE(config-router)#network 200.200.200.0 0.0.0.255 area 0
MELBOURNE(config-router)#^Z
MELBOURNE#
Now, let’s take a look into the OSPF Database on both routers,
MANILA#show ip ospf database
OSPF Router with ID (100.100.100.1) (Process ID 1)
Router Link States (Area 0)
Link ID ADV Router Age Seq# Checksum Link count
100.100.100.1 100.100.100.1 40 0x80000008 0x002F8B 3
200.200.200.1 200.200.200.1 18 0x80000003 0x00ADB6 3
MANILA#
MELBOURNE#sh ip ospf database
OSPF Router with ID (200.200.200.1) (Process ID 1)
Router Link States (Area 0)
Link ID ADV Router Age Seq# Checksum Link count
100.100.100.1 100.100.100.1 24 0x80000008 0x002F8B 3
200.200.200.1 200.200.200.1 0 0x80000003 0x00ADB6 3
MELBOURNE#
So what does the results tells us?
Leave a comment