当前位置:网站首页>OSPF多区域配置
OSPF多区域配置
2022-07-06 12:42:00 【51CTO】
OSPF多区域配置
参照图1搭建网络环境,网络中的路由器按照图中的拓扑连接,按照规划的网段并配置接口IP地址。一定要确保直连的路由器能够相互ping通。以下操作配置这些路由器使用OSPF协议构造路由表,将这些路由器配置在一个区域,如果只有一个区域,只能是主干区域,区域编号是0.0.0.0,也可以写成0。

图1多区域OSPF网络拓扑
路由器R1上的配置,R1是骨干区域路由器。
<R1>display router id
RouterID:40.0.0.1 --查看路由器的当前ID
<R1>system
[R1]ospf 1 router-id 1.1.1.1 --启用ospf 1进程并指明使用的Router-ID
[R1-ospf-1]area 0.0.0.0 --创建区域并进入区域 0.0.0.0
[R1-ospf-1-area-0.0.0.0]network 40.0.0.0 0.0.255.255 --指定工作在Area 0的地址接口
[R1-ospf-1-area-0.0.0.0]quit
路由器R2上的配置,R2是区域边界路由器,要指定工作在Area 0的接口和Area 1的接口。
[R2]ospf 1 router-id 2.2.2.2
[R2-ospf-1]area 0
[R2-ospf-1-area-0.0.0.0]network 40.0.0.0 0.0.255.255 --指定工作在Area 0的接口
[R2-ospf-1-area-0.0.0.0]quit
[R2-ospf-1]area 0.0.0.1
[R2-ospf-1-area-0.0.0.1]network 40.1.0.0 0.0.255.255 --指定工作在Area 1的接口
[R2-ospf-1-area-0.0.0.1]quit
[R2-ospf-1]display this --显示OSPF 1的配置
[V200R003C00]
#
ospf 1 router-id 2.2.2.2
area 0.0.0.0
network 40.0.0.0 0.0.255.255
area 0.0.0.1
network 40.1.0.0 0.0.255.255
#
return
路由器R3上的配置。
[R3]ospf 1 router-id 3.3.3.3
[R3-ospf-1]area 0.0.0.0
[R3-ospf-1-area-0.0.0.0]network 40.0.0.0 0.0.255.255
[R3-ospf-1-area-0.0.0.0]quit
[R3-ospf-1]area 0.0.0.2
[R3-ospf-1-area-0.0.0.2]network 40.2.0.1 0.0.0.0 --写接口地址,wildcard-mask为0.0.0.0
[R3-ospf-1-area-0.0.0.2]network 40.2.1.1 0.0.0.0 --写接口地址,wildcard-mask为0.0.0.0
[R3-ospf-1-area-0.0.0.2]quit
路由器R4上的配置。
[R4]ospf 1 router-id 4.4.4.4
[R4-ospf-1]area 1
[R4-ospf-1-area-0.0.0.1]net
[R4-ospf-1-area-0.0.0.1]network 40.1.0.0 0.0.255.255
[R4-ospf-1-area-0.0.0.1]quit
路由器R5上的配置。
[R5]ospf 1 router-id 5.5.5.5
[R5-ospf-1]area 1
[R5-ospf-1-area-0.0.0.1]network 40.1.0.0 0.0.255.255
[R5-ospf-1-area-0.0.0.1]quit
路由器R6上的配置。
[R6]ospf 1 router-id 6.6.6.6
[R6-ospf-1]area 2
[R6-ospf-1-area-0.0.0.2]network 40.2.0.0 0.0.255.255
[R6-ospf-1-area-0.0.0.2]quit
路由器R7上的配置。
[R7]ospf 1 router-id 7.7.7.7
[R7-ospf-1]area 2
[R7-ospf-1-area-0.0.0.2]network 40.2.0.0 0.0.255.255
[R7-ospf-1-area-0.0.0.2]quit
此文章来自于《华为认证(2021新版HCIA教材)》
京东购买本书
https://item.jd.com/13706744.html
学习计算机网络华为网络工程师华三网络工程师课程中有问题联系韩老师
华为认证(2021新版HCIA教材)课程链接 https://edu.51cto.com/course/28956.html

韩老师招收正式学生、门徒级套餐
边栏推荐
- 新型数据库、多维表格平台盘点 Notion、FlowUs、Airtable、SeaTable、维格表 Vika、飞书多维表格、黑帕云、织信 Informat、语雀
- Gui Gui programming (XIII) - event handling
- 硬件开发笔记(十): 硬件开发基本流程,制作一个USB转RS232的模块(九):创建CH340G/MAX232封装库sop-16并关联原理图元器件
- [weekly pit] positive integer factorization prime factor + [solution] calculate the sum of prime numbers within 100
- 小孩子學什麼編程?
- Intel 48 core new Xeon run point exposure: unexpected results against AMD zen3 in 3D cache
- How to select several hard coded SQL rows- How to select several hardcoded SQL rows?
- B-杰哥的树(状压树形dp)
- 拼多多败诉,砍价始终差0.9%一案宣判;微信内测同一手机号可注册两个账号功能;2022年度菲尔兹奖公布|极客头条
- Extraction rules and test objectives of performance test points
猜你喜欢

OLED屏幕的使用

1_ Introduction to go language
![[weekly pit] output triangle](/img/d8/a367c26b51d9dbaf53bf4fe2a13917.png)
[weekly pit] output triangle

Activiti global process monitors activitieventlistener to monitor different types of events, which is very convenient without configuring task monitoring in acitivit

全网最全的新型数据库、多维表格平台盘点 Notion、FlowUs、Airtable、SeaTable、维格表 Vika、飞书多维表格、黑帕云、织信 Informat、语雀
Tencent byte and other big companies interview real questions summary, Netease architects in-depth explanation of Android Development

How does kubernetes support stateful applications through statefulset? (07)

02 basic introduction - data package expansion

设计你的安全架构OKR

知识图谱之实体对齐二
随机推荐
How to upgrade high value-added links in the textile and clothing industry? APS to help
Application layer of tcp/ip protocol cluster
C language operators
02 basic introduction - data package expansion
Zoom with unity mouse wheel: zoom the camera closer or farther
User defined current limiting annotation
15 millions d'employés sont faciles à gérer et la base de données native du cloud gaussdb rend le Bureau des RH plus efficace
Continuous test (CT) practical experience sharing
Recyclerview not call any Adapter method :onCreateViewHolder,onBindViewHolder,
【DSP】【第二篇】了解C6678和创建工程
SQL injection 2
Unity makes AB package
Rhcsa Road
"Penalty kick" games
7. Data permission annotation
Rhcsa Road
JS implementation force deduction 71 question simplified path
Distributed ID
全网最全的知识库管理工具综合评测和推荐:FlowUs、Baklib、简道云、ONES Wiki 、PingCode、Seed、MeBox、亿方云、智米云、搜阅云、天翎
[wechat applet] operation mechanism and update mechanism