20-03 OSPF Basic Configuration
20-03 OSPF Basic Configuration
R1(config)#router ospf 1
R2(config)#router ospf 1
R2(config-router)#network 10.0.0.0 0.0.0.255 area 0
R2(config-router)#network 10.1.0.0 0.0.0.255 area 0
Interface FE1/0 and FE2/0 fall within this range, FE0/0 does not
OSPF will be enabled on FE1/0 and FE2/0 and the router will peer with
adjacent OSPF routers
Networks advertised: FE1/0
10.0.1.1/24
10.0.1.0/24 FE0/0
10.1.0.1/24
R1
10.0.2.0/24
FE2/0
10.1.0.0/24 is NOT advertised 10.0.2.1/24
10.0.0.0/24 10.0.1.1/24
.2 .1 F1/0
R2 R1
F0/0 F0/0 10.0.2.1/24
F2/0
OSPF Operations
1. Discover neighbours
2. Form adjacencies
3. Flood Link State Database (LSDB)
4. Compute Shortest Path
5. Install best routes in routing table
6. Respond to network changes
OSPF Verification - show ip ospf database
R2#show ip ospf database
10.0.0.0/24 10.0.1.1/24
.2 .1 F1/0
R2 R1
F0/0 F0/0 10.0.2.1/24
F2/0
Lab
FE1/0
10.0.1.1/24
10.1.1.0/24 10.1.0.0/24 10.0.0.0/24
10.1.2.1/24 .1 .2 .1 .2 .2 .1
R4 R3 R2 R1
FE1/0 FE0/0 FE0/0 FE1/0 FE1/0 FE0/0 FE0/0
FE2/0
FE2/0 FE3/0 10.0.2.1/24
10.1.3.1/24 10.0.3.1/24
R5
FE2/0 FE3/0
10.1.3.2/24 10.0.3.2/24