设为首页收藏本站language 语言切换
查看: 1097|回复: 3
收起左侧

[分享] CCNA Lab 109: Configuring OSPF Routing

[复制链接]
 成长值: 63730
发表于 2023-3-8 14:54:07 | 显示全部楼层 |阅读模式
本帖最后由 小乔 于 2023-3-8 15:05 编辑


OSPF stands for Open Standard Path First. It is an open standard link state routing protocol. It uses cost metric to calculate the best route from source to destination for a given network. It supports unlimited number of hops and typically used for large networks such as Internet. It is complex routing protocol and understanding each and everything about the OSPF is beyond from the CCNA syllabus. However, following link will give provide you the basis concept and features that you must know about OSPF.

Click here to know the key features, components and notes of the OSPF routing protocol.

Once you are familiar with the basics of OSPF routing protocol, let’s start to configure OSPF. Load the Routing Topology file (same that we have been using with RIP and EIGRP) in Packet Tracer. We assume that the IP address configuration is already configured on each router as per the following table.
1.jpg

Please have a look at the following figure that we will use to configure and test the OSPF configuration. Understand clearly which interfaces are connected to which areas and what IP addresses are configured on them.
2.jpg
Execute the show ip interface brief command on each router to verify the IP configuration. Once you verified the IP configuration on each router, proceed next to perform this exercise.

Understating Command Syntax
The OSPF routing protocol uses the following command syntax:

Router( config)# router ospf < process id 1-65535 >
Router( config-router) network < network address > < wild card mask > area < 0-4294967295 >
Note: You can define an area number either in the decimal format or in the IP address format. For example, the area number 20 could be defined as 20 in the decimal format or as 0.0.0.20 in the IP address format.

Configuring the OSPF Routing
To configure the OSPF protocol in the loaded topology (Routing Topology), you need to perform the following steps:

1.  On Router1, execute the following commands:


Router1( config)# router ospf 100
Router1( config-router)# network 10.0.0.0 0.255.255.255 area 0
Router1( config-router)# network 192.168.1.0 0.0.0.255 area 0.0.0.0
Router1( config-router)# exit
3.jpg

2.  On Router2, execute the following commands:

Router2( config)# router ospf 100
Router2( config-router)# network 20.0.0.0 0.255.255.255 area 0
Router2( config-router)# network 192.168.1.0 0.0.0.255 area 0
Router2( config-router)# network 150.150.150.0 0.0.0.255 area 1
Router2( config-router)# exit
Router2( config)# exit
Router2# show ip route
4.jpg

3.  On Router3, execute the following commands:


Router3( config)# router ospf 200
Router3( config-router)# network 150.150.150.0 0.0.0.255 area 1
Router3( config-router)# exit
Router3( config)# exit
Router3# show ip route

5.jpg
Verifying OSFP Configuration
Once, you have configured OSPF on all the routers, now it is time to test and verify your configuration. To verify and test the OSPF configuration, execute the following commands on any router and review the output of each command. All of the following commands are self-explanatory.

Router# show ip ospf neighbor
Router# show ip ospf border-routers
Router# show ip ospf border-routers
6.jpg

1.  To test the connectivity between all the devices in the loaded topology, execute the ping 10.0.0.2 command on Router3.


You should be able to communicate to PC0 successfully.

2.  Close Packet Tracer without saving any configuration in the Routing Topology file.

2.png
发表于 2023-3-17 09:21:13 | 显示全部楼层
谢谢楼主分享
沙发 2023-3-17 09:21:13 回复 收起回复
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2025-2-24 10:11 , Processed in 0.060233 second(s), 24 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

快速回复 返回顶部 返回列表