How to configure the OSPF routing protocol

How to configure the OSPF routing protocol


In CCNA programs we often hear the phrase “OSPF routing assignment”. So what is the routing protocol and routing protocol configuration OSPF is what and how does it work? The following article will help you answer this question.


OSPF – Open Shortest Path First is a typical link-state routing protocol. This protocol is widely used in large enterprise networks. In this article, we will guide you through configuring the basic OSPF routing protocol. Please follow the content below for more details.

Configure OSPF routing protocol

Looking at the diagram above you will notice the presence of 3 routers.

HN Router: interface serial0 / 3/0 (s0 / 3/0) IP 192.168.1.1 connects to Router NA while interface f0 / 0 IP 172.16.1.1 connects to PC1

Router NA: interface serial0 / 3/0 (s0 / 3/0) IP 192.168.1.2 connected to the HN Router

Router HCM: interface serial0 / 3/1 (s0 / 3/1) IP 192.168.2.1 connects to Router NA while interface f0 / 0 IP 10.1.1.1 connects to PC2

There are also the presence of 2 PCs:

  • PC1: IP 172.16.1.2 connected to the interface f0 / 0 Router HN
  • PC2: IP 10.1.1.2 connects to interface f0 / 0 HCM Router

Configuration for the Router

HN Router:

Router (config) #hostname Router HN

Router (config) #hostname RouterHN

RouterHN (config) #int s0 / 3/0

RouterHN (config-if) #ip address 192.168.1.1 255.255.255.0

RouterHN (config-if) #no shutdown

RouterHN (config-if) #clock rate 64000

RouterHN (config-if) #exit

RouterHN (config) #

——————————————–

RouterHN (config) #int f0 / 0

RouterHN (config-if) #description “Connect to PC1”

RouterHN (config-if) #ip address 172.16.1.1 255.255.255.0

RouterHN (config-if) #no shutdown

RouterHN (config-if) #exit

RouterHN (config) #

Router NA:

Router (config) #hostname RouterNA

RouterNA (config) #int s0 / 3/0

RouterNA (config-if) #ip address 192.168.1.2 255.255.255.0

RouterNA (config-if) #no shutdown

RouterNA (config-if) #exit

RouterNA (config) #

————————————————-

RouterNA (config) #int s0 / 3/1

RouterNA (config-if) #description “Connect to Router HCM”

RouterNA (config-if) #ip address 192.168.2.2 255.255.255.0

RouterNA (config-if) #no shutdown

RouterNA (config-if) #clock rate 64000

RouterNA (config-if) #exit

RouterNA (config) #

Router HCM:

Router (config) #hostname RouterHCM

RouterHCM (config) #int s0 / 3/1

RouterHCM (config-if) #description “Connect to Router NA”

RouterHCM (config-if) #ip address 192.168.2.1 255.255.255.0

RouterHCM (config-if) #no shutdown

RouterHCM (config-if) #clock rate 64000

RouterHCM (config-if) #exit

RouterHCM (config) #

————————————————– ————

RouterHCM (config) #int f0 / 0

RouterHCM (config-if) #description “Connect to PC 2”

RouterHCM (config-if) #ip address 10.1.1.1 255.255.255.0

RouterHCM (config-if) #no shutdown

RouterHCM (config-if) #exit

RouterHCM (config) #

https://thuthuat.taimienphi.vn/cau-hinh-giao-thuc-dinh-tuyen-ospf-4548n.aspx
For PC:

  • PC1: ip address 172.16.1.2, subnetmask: 255.255.255.0 gateway: 172.16.1.1
  • PC2: ip address 10.1.1.2, subnet mask: 255.255.255.0 gateway: 10.1.1.1

Above, we have reviewed together basic operation of the OSPF protocol in the CCNA program. This is a powerful, fast converging protocol that can run on large-scale networks, and especially a standardized protocol that can run on many product lines of different brands, so it is used in many reality. Also refer Top 5 data transfer software via FTP protocol For more details.

.

Related Posts

Leave a Reply

Your email address will not be published.