当前位置:网站首页>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
边栏推荐
- CAD2020 打开错误报告 e06d7363h Exception at 13644F69h
- 交换机和路由器技术-22/23-OSPF动态路由协议/链路状态同步过程
- [Web3 series development tutorial - create your first NFT (9)] How to view your NFT in the mobile wallet
- 源代码加密技术浅析
- 交换机和路由器技术-29-OSPF虚链路
- Selenium自动化测试框架工作原理你明白了吗?
- Kong实现禁止国外IP访问
- 【Web3 系列开发教程——创建你的第一个 NFT(9)】如何在手机钱包里查看你的 NFT
- zabbix构建企业级监控告警平台
- 洛谷P7441 Erinnerung
猜你喜欢

The principle, architecture, implementation, practice of "transfer" and "search", no need to be afraid of interviews

「转」“搜索”的原理,架构,实现,实践,面试不用再怕了

Object Creation and Display Transformation

应用层协议——DNS

交换机和路由器技术-25-OSPF多区域配置

论文笔记:BBN: Bilateral-Branch Network with Cumulative Learningfor Long-Tailed Visual Recognition

leetcode 9. 回文数

Do you understand how the Selenium automated testing framework works?
![[Likou] 22. Bracket generation](/img/f6/435fe9e0b4c1545514d1bf195ffd44.png)
[Likou] 22. Bracket generation

交换机和路由器技术-36-端口镜像
随机推荐
【服务器安装Redis】Centos7离线安装redis
自研能力再获认可,腾讯云数据库入选 Forrester Translytical 报告
关于数据分页显示
【小记】BatchSize的数值是设置的越大越好吗
Research on a Consensus Mechanism-Based Anti-Runaway Scheme for Digital Trunking Terminals
About data paging display
Jetson Orin平台4-16路 GMSL2/GSML1相机采集套件推荐
如何缓解压力、拒绝内耗【1】
一种基于共识机制的数字集群终端防失控方案研究
send_sig: kernel execution flow
zabbix构建企业级监控告警平台
WPF DataGrid 使用数据模板(2)
MQ框架应用比较
洛谷P4061 大吉大利,晚上吃鸡
利用Navicat Premium导出数据库表结构信息至Excel
Listen to pull out U disk inserted into the message, U disk drive
[QNX Hypervisor 2.2用户手册]10.15 vdev timer8254
1815. 得到新鲜甜甜圈的最多组数 状态压缩
Events and scheduled tasks in Mysql
Clang Code Model: Error: The clangbackend executable “X:/clangbackend.exe“ could not be started