当前位置:网站首页>Switches and routers technology - 24 - configure OSPF single area
Switches and routers technology - 24 - configure OSPF single area
2022-08-11 04:52:00 【w Spicy little prince】
0SPFRouting single area configuration
Configuration process
1) Create an OSPF process with a process ID ranging from 1 to 65535.
Router ( config )# router ospf [ process - id ]
2) Configure the ID of the current route, which is equivalent to the name of each router in OSPF. It cannot be the same in the same area. The format is the same as the P address.All are dotted decimal, and the value range is 0.0.0.0~255.255.255.255.If not specified, the one with the largest physical address is selected by default.
Router ( config - router )# router - id [ id - number ]
3) Publish the directly connected network to OSPF. The difference between this and the RIP protocol is that the anti-mask of the corresponding network segment needs to be added when publishing.code and area number.
Router (config-router)# network network - address Wildcard - mask area -n umber
The inverse mask is four 255 minus the mask
Configuration example

Router R1
Router>enableRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#interface g 0/0Router(config-if)#ip address 192.168.10.254 255.255.255.0Router(config-if)#no shutdownRouter(config-if)#exitRouter(config)#interface g0/1Router(config-if)#ip address 10.10.10.1 255.255.255.252Router(config-if)#no shutdownRouter(config-if)#exitRouter(config)#router ospf 10Router(config-router)#router-id 1.1.1.1Router(config-router)#network 192.168.10.0 0.0.0.255 area 0Router(config-router)#network 10.10.10.0 0.0.0.3 area 0Router R2
Router>enableRouter#configure tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#interface g0/0Router(config-if)#ip address 10.10.10.2 255.255.255.252Router(config-if)#no shutdownRouter(config-if)#exitRouter(config)#interface g0/1Router(config-if)#ip address 20.20.20.1 255.255.255.252Router(config-if)#no shutdownRouter(config-if)#exitRouter(config)#router ospf 10Router(config-router)#router-id 2.2.2.2Router(config-router)#network 10.10.10.0 0.0.0.3 area 0Router(config-router)#network 20.20.20.0 0.0.0.3 area 0Router R3
Router>enableRouter#configure tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#interface g0/0Router(config-if)#ip address 20.20.20.2 255.255.255.252Router(config-if)#no shutdownRouter(config-if)#exitRouter(config)#interface g0/1Router(config-if)#ip address 192.168.20.254 255.255.255.0Router(config-if)#no shutdownRouter(config-if)#exitRouter(config)#router ospf 10Router(config-router)#router-id 3.3.3.3Router(config-router)#network 20.20.20.0 0.0.0.3 area 0Router(config-router)#network 192.168.20.0 0.0.0.255 area 0PC0

Pc1

PC0 ping PC1

View command
View ospf configuration information
show ip ospf
View Neighbors
show ip ospf neighbor
边栏推荐
猜你喜欢

leetcode 9. 回文数

干货:服务器网卡组技术原理与实践

I wrote some code in my resume, but I still can't pass the interview

"125 Palindrome Verification" of the 10th day string series of LeetCode brushing questions

Selenium自动化测试框架工作原理你明白了吗?

网络安全培训机构哪家好?排名怎么选择?

【电商运营】社交媒体营销策略该如何制定?

zabbix构建企业级监控告警平台

对象的创建以及显示转换

交换机和路由器技术-29-OSPF虚链路
随机推荐
剑指offer_抽象建模能力
洛谷P1763 埃及分数
智能指针笔记
Mysql中事件和定时任务
【FPGA教程案例49】控制案例1——基于FPGA的PID控制器verilog实现
JVM 垃圾回收的概述与机制
洛谷P2580 于是他错误的点名开始了
一起Talk编程语言吧
Mysql:设置主键自动增长起始值
02.折叠隐藏文字
梅克尔工作室--OpenEuler培训笔记(1)
-填涂颜色-
开发工具篇第七讲:阿里云日志查询与分析
自研能力再获认可,腾讯云数据库入选 Forrester Translytical 报告
洛谷P2150 寿司晚宴
【FPGA教程案例50】控制案例2——基于FPGA的PD控制器verilog实现
Merkel Studio--OpenEuler Training Notes (1)
Use Navicat Premium to export database table structure information to Excel
破解事务性工作瓶颈,君子签电子合同释放HR“源动力”!
Summary of c language fprintf, fscanf, sscanf and sprintf function knowledge points