0% found this document useful (0 votes)
87 views

OSPF Configuration in Cisco Router

This document describes the configuration of OSPF routing on three routers - R1, R2, and R3. It includes the IP configurations of each router's interfaces and the OSPF process configuration on each router. OSPF is configured with a process ID of 1 on each router. Each router is configured to advertise directly connected networks in OSPF area 0. The document also provides an overview of how OSPF areas work and why they are useful for dividing large networks.

Uploaded by

Sandeep Salgado
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
87 views

OSPF Configuration in Cisco Router

This document describes the configuration of OSPF routing on three routers - R1, R2, and R3. It includes the IP configurations of each router's interfaces and the OSPF process configuration on each router. OSPF is configured with a process ID of 1 on each router. Each router is configured to advertise directly connected networks in OSPF area 0. The document also provides an overview of how OSPF areas work and why they are useful for dividing large networks.

Uploaded by

Sandeep Salgado
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

OSPF Configuration in Cisco Router (Topology - 1)

OSPF is a major routing protocol to learn for any network administrator. The following example contains the
basic ospf configuration

TOPOLOGY



IP CONFIGURATION


Router: R1

R1(config)# int fa 0/0
R1(config-if)# ip add 192.168.10.1 255.255.255.252
R1(config-if)# no shut

R1(config)# int fa 0/1
R1(config-if)# ip add 192.168.10.9 255.255.255.252
R1(config-if)# no shut

R1(config)# int eth 0/0/0
R1(config-if)# ip add 172.16.10.1 255.255.255.0
R1(config-if)# no shut


Router: R2

R2(config)# int fa 0/0
R2(config-if)# ip add 192.168.10.2 255.255.255.252
R2(config-if)# no shut

R2(config)# int fa 0/1
R2(config-if)# ip add 192.168.10.5 255.255.255.252
R2(config-if)# no shut

R2(config)# int eth 0/1/0
R2(config-if)# ip add 172.16.20.1 255.255.255.0
R2(config-if)# no shut


Router:R3

R3(config)# int fa 0/0
R3(config-if)# ip add 192.168.10.10 255.255.255.252
R3(config-if)# no shut

R3(config)# int fa 0/1
R3(config-if)# ip add 192.168.10.6 255.255.255.252
R3(config-if)# no shut

R3(config)# int eth 0/1/0
R3(config-if)# ip add 172.16.30.1 255.255.255.0
R3(config-if)# no shut



OSPF CONFIGURATION


Router: R1

R1(config)# router ospf 1
R1(config-router)# network 192.168.10.0 0.0.0.3 area 0
R1(config-router)# network 192.168.10.8 0.0.0.3 area 0
R1(config-router)# network 172.16.10.0 0.0.0.255 area 0


Router: R2

R2(config)# router ospf 1
R2(config-router)# network 192.168.10.0 0.0.0.3 area 0
R2(config-router)# network 192.168.10.4 0.0.0.3 area 0
R2(config-router)# network 172.16.20.0 0.0.0.255 area 0


Router: R3

R3(config)# router ospf 1
R3(config-router)# network 192.168.10.4 0.0.0.3 area 0
R3(config-router)# network 192.168.10.8 0.0.0.3 area 0
R3(config-router)# network 172.16.30.0 0.0.0.255 area 0


Command:

Router(config)# router ospf (process-id)
Router(config-if)# network (directly connected network) | (wildcard-mask) | (area-id)

The process-id in the first command is locally significant, unlike EIGRP. Which means OSPF process-id does
not have to match other OSPF routers in order to establish adjacency. And the area-id is significant among a
group of routers who share link-state information with each other. All the routers within same area have
identical link-state information in their database.

It is advantageous to divide a large OSPF network into multiple area. It keep the link-state database small and
isolate unstable network problems within an area. It is a good practice to use an area-id of 0 with single area
OSPF. This convention makes it easier if the network is later configured as multiple OSPF areas where area 0
becomes the backbone area.

You might also like