当前位置:网站首页>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

韩老师招收正式学生、门徒级套餐
边栏推荐
- Recyclerview not call any Adapter method :onCreateViewHolder,onBindViewHolder,
- [weekly pit] calculate the sum of primes within 100 + [answer] output triangle
- Digital triangle model acwing 1018 Minimum toll
- #yyds干货盘点#重新梳理箭头函数的this
- Implementation of packaging video into MP4 format and storing it in TF Card
- 2022 portal crane driver registration examination and portal crane driver examination materials
- How to upgrade high value-added links in the textile and clothing industry? APS to help
- What programming do children learn?
- Intel 48 core new Xeon run point exposure: unexpected results against AMD zen3 in 3D cache
- Recyclerview GridLayout bisects the middle blank area
猜你喜欢

拼多多败诉,砍价始终差0.9%一案宣判;微信内测同一手机号可注册两个账号功能;2022年度菲尔兹奖公布|极客头条

Database - how to get familiar with hundreds of tables of the project -navicat these unique skills, have you got it? (exclusive experience)

Value of APS application in food industry

SSO single sign on

"Penalty kick" games

Infrared thermometer based on STM32 single chip microcomputer (with face detection)

Continuous test (CT) practical experience sharing

【每周一坑】正整数分解质因数 +【解答】计算100以内质数之和

Maximum likelihood estimation and cross entropy loss
![[weekly pit] output triangle](/img/d8/a367c26b51d9dbaf53bf4fe2a13917.png)
[weekly pit] output triangle
随机推荐
Basic knowledge of lists
[DIY]如何制作一款個性的收音機
Boder radius has four values, and boder radius exceeds four values
Rhcsa Road
Leetcode question 448 Find all missing numbers in the array
1500萬員工輕松管理,雲原生數據庫GaussDB讓HR辦公更高效
[diy] self designed Microsoft makecode arcade, official open source software and hardware
Event center parameter transfer, peer component value transfer method, brother component value transfer
性能测试过程和计划
[asp.net core] set the format of Web API response data -- formatfilter feature
7. Data permission annotation
1_ Introduction to go language
华为设备命令
[weekly pit] information encryption + [answer] positive integer factorization prime factor
Activiti global process monitors activitieventlistener to monitor different types of events, which is very convenient without configuring task monitoring in acitivit
[wechat applet] operation mechanism and update mechanism
Laravel笔记-自定义登录中新增登录5次失败锁账户功能(提高系统安全性)
逻辑是个好东西
Implementation of packaging video into MP4 format and storing it in TF Card
I've seen many tutorials, but I still can't write a program well. How can I break it?