当前位置:网站首页>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
韩老师招收正式学生、门徒级套餐
边栏推荐
- Function optimization and arrow function of ES6
- Laravel笔记-自定义登录中新增登录5次失败锁账户功能(提高系统安全性)
- Pycharm remote execution
- Leetcode hot topic Hot 100 day 32: "minimum coverage substring"
- Pinduoduo lost the lawsuit, and the case of bargain price difference of 0.9% was sentenced; Wechat internal test, the same mobile phone number can register two account functions; 2022 fields Awards an
- Spark SQL chasing Wife Series (initial understanding)
- 【微信小程序】运行机制和更新机制
- use. Net analysis Net talent challenge participation
- Leetcode question 283 Move zero
- OAI 5G NR+USRP B210安装搭建
猜你喜欢
随机推荐
Taylor series fast Fourier transform (FFT)
Discussion on beegfs high availability mode
use. Net analysis Net talent challenge participation
请问sql group by 语句问题
How to select several hard coded SQL rows- How to select several hardcoded SQL rows?
Redis insert data garbled solution
Maximum likelihood estimation and cross entropy loss
Logic is a good thing
Leetcode question 448 Find all missing numbers in the array
APS taps home appliance industry into new growth points
[asp.net core] set the format of Web API response data -- formatfilter feature
Is it safe to open an account in flush? Which securities company is good at opening an account? Low handling charges
使用.Net分析.Net达人挑战赛参与情况
Leetcode question 283 Move zero
2022 Guangdong Provincial Safety Officer C certificate third batch (full-time safety production management personnel) simulation examination and Guangdong Provincial Safety Officer C certificate third
02 basic introduction - data package expansion
[diy] how to make a personalized radio
Continuous test (CT) practical experience sharing
Solution to the 38th weekly match of acwing
Recyclerview GridLayout bisects the middle blank area