当前位置:网站首页>HCIP之路OSPF拓展配置
HCIP之路OSPF拓展配置
2022-04-21 13:20:00 【无所不知的神奇海螺】
第八天
OSPF的拓展配置
1,OSPF的手工认证
认证就是在OSPF邻居间所有数据包中携带口令,两边口令相同意味着身份合法。
接口认证 --- 邻居接口上配置,两端若口令不一致,则将无法建立邻居关系。
[r5-GigabitEthernet0/0/0]ospf authentication-mode md5 1 cipher 123456
区域认证 --- 本质和接口认证是一回事,相当于同时将该设备上所有在该区域中激活的接口进行了接口认证
[r3-ospf-1-area-0.0.0.0]authentication-mode md5 1 cipher 123456
虚链路认证 --- 在建立虚链路的时候进行的认证 --- 虚链路认证本质和接口认证也是一回事
[r4-ospf-1-area-0.0.0.1]vlink-peer 3.3.3.3 md5 1 cipher 123456
2,缺省路由
3类缺省 --- 这类缺省只能在特殊区域中自动产生 --- 普通末梢,完全末梢,完全NSSA
特点 --- 通过3类LSA传递的缺省信息,标记为OSPF,默认优先级为10。
5类缺省 --- 可以通过命令手动下发
default-route-advertise
特点 --- 通过5类LSA传递缺省信息,default-route-advertise 下发的前提条件是要求边界设备上的路由表本身存在通过其他方式获取到的缺省信息,之后,通过这个命令将缺省路由酝发布到OSPF网络中。标记为O_ASE,默认优先级为150。
[r9-ospf-2]default-route-advertise always --- 如果,边界路由器上不存在缺省信息,则将可以通过添加always参数来强制下发缺省。
7类缺省 --- 一种产生方式是通过特殊区域(NSSA区域)自动产生,另一种产生方法是通过命令手工下发
[r9-ospf-1- area-0.0.0.3]nssa default-route-advertise
特点 --- 通过7类LSA传递缺省信息,标记为O_NSSA,默认优先级为150
3,加快收敛
减少计时器的时间修改hello时间:
[r3-Tunnel0/0/0]ospf timer hello 10
注意:Hello时间一旦修改,则死亡时间将自动按照4倍的hello时间关系进行匹配。
修改死亡时间:
[r5-Tunnel0/0/0]ospf timer dead 40
注意:死亡时间一旦修改,并不会影响hello时间
Waiting --- 等待计时器 --- DR/BDR的选举时间,和死亡时间同步,死亡时间修改,等待计时器的时间同步修改。
POLL --- 轮询计时器 --- 与状态为DOWN的邻居发送hello包的间隔时间 --- 120S --- 这种场景只会出现在NBMA网络中。
Retransmit --- 重传时间 --- 5S --- OSPF中数据包交互需要确认,如果发送一个信息后,在重传时间内没有收到对方发送的确认回复,则将重新发送。
Transmit Delay --- 传输延迟 --- 1S --- 附加在LSA的老化时间中,为了补偿LSA信息在网络中传递所消耗的时间。
[r1-GigabitEthernet0/0/0]ospf trans-delay 2 --- 修改传输延迟
4,沉默接口
如果将一个接口配置成为沉默接口,则这个接口将只接受不发送OSPF的数据包。
[r1-ospf-1]silent-interface GigabitEthernet 0/0/2
注意:OSPF中的沉默接口,会同时抑制组播和单播包的发送,所以, 不能像RIP一样和单播邻居结合应用在一些特殊场景中。
5,路由过滤
这里的路由过滤指的是针对3类,5类,7类LSA信息进行过滤。
[r2-ospf-1-area-0.0.0.1]abr-summary 172.16.0.0 255.255.252.0 not- advertise --- 过滤3类LSA
[r5-ospf-1]asbr-summary 192.168.0.0 255.255.252.0 not-advertise --- 过滤5类/7类LSA
6,路由控制
优先级
[r3-ospf-1]preference 20 --- 这个命令主要用来修改由1类,2类,3类LSA生成的标记为OSPF的路由条目的优先级。
[r3-ospf-1]preference ase 200 --- 这个命令主要用来修改由5类,7类LSA生成的路由条目的优先级。
因为优先级的修改影响本地路由表中路由条目的优先级, 并且,修改会影响所有路由。所以,并不适用于同种路由协议进行选路。
开销值 --- COST = 参考带宽/真实带宽
通过修改参考带宽来影响COST值 --- 华为设备默认的参考带宽为 --- 100Mbps
[r3-ospf-1]bandwidth-reference 2000
Info: Reference bandwidth is changed. Please ensure that the reference bandwidth
that is configured for all the routers are the same.
通过修改参考带宽,可以影响开销值,并且,可以解决对于带宽速率过大,但参考带宽太小导致的选路不佳的清况。但是,由于参考带宽修改将会影响所有接口的开销值,并且, 按照要求,一台设备的参考带宽修改,网络中所有设备的参考带宽都需要被修改,所以,并不适合进行选路控制
通过修改真实带宽影响COST值 --- 接口的传输速率可以通过命令进行修改,但是,只能改小。这种修改方法确实可以影响接口的开销值,并实现选路控制,但是,因为会影响传输速率,所以,并不推荐。
[r3-GigabitEthernetO/O/O]display interface GigabitEthernet O/O/O --- 查看接口的二层信息
[r3-GigabitEthernetO/O/O]speed 100 --- 修改接口的传输速率
[r3-GigabitEthernetO/O/O]undo negotiation auto --- 关闭自动协商
直接修改接口的开销值
[r3-GigabitEthernetO/O/O]ospf cost 10 --- 修改接口OSPF开销值的命令
注意:环回接口的默认开销值华为设备定义为0,不受外界因素影响,即前两种方法均不能影响。但是,第三种方法是可以修改环回接口的开销值的。
OSPF的开销值是按照流量流入接口的开销值大小累加计算得来的。
7,OSPF的附录E
主要是由于3类,5类和7类LSA传桯路由信息时产生特殊清况。

解决方案 --- 掩码较短的正常生成三类LSA,掩码较长的将会使用他的直接广播地址作为LSD来生成三类LSA。
版权声明
本文为[无所不知的神奇海螺]所创,转载请带上原文链接,感谢
https://blog.csdn.net/qq_39744805/article/details/124281505
边栏推荐
- 焦作市第三人民医院携手美创,开启数据安全建设新局面
- Revit secondary development - creating walls (1) (phase 10)
- [digital signal processing] linear constant coefficient difference equation (determine whether the system is a "linear time invariant system" according to "linear constant coefficient difference equat
- 万字干货!帮你深度掌握设计中的「光影」知识点 (下)
- Flink相关API开发及运行架构和实现原理详解
- 美创科技受邀为海淀区教育科学研究院开展数据安全培训
- 完成数亿元融资后,毫末智行计划超百城落地城市智能驾驶产品
- AI video cloud vs narrowband HD, who is the darling of the video era
- [traitement du signal numérique] coefficient de corrélation (analyse conceptuelle du coefficient de corrélation | constante d'énergie du signal | séquence conjuguée | corrélation de la séquence au mêm
- 无线网络协议名词
猜你喜欢

Elements of network

月销超千万,新防晒时代「蕉下」如何成为爆款制造机?

S: Unit gain compensation

flink-1.12.0版Yarn安装部署

网易数帆王佰平:我的 Envoy Maintainer 之路

运动耳机什么样的舒服、运动健身耳机推荐

Technology giants compete to enter, who can become the "number one player" of the meta universe?

Installing and configuring canal

Wanzi dry goods! Help you master the knowledge of "light and shadow" in design

【uvm】 多模块env结构
随机推荐
Select elements from Revit (issue 5)
OJ每日一练——数组倒序输出新数组
科技巨头竞相入场,谁能成为元宇宙“头号玩家”?
2021-08-10
【uvm】 多模块env结构
After the completion of hundreds of millions of yuan of financing, smart bank plans to land urban intelligent driving products in more than 100 cities
What about first-class insurance? Is there a charge? What are the waiting requirements?
How a person makes self media videos, and the operation skills in the field of agriculture, rural areas and farmers
Problems encountered by programmers in learning
OJ daily practice - output new array in reverse order
焦作市第三人民医院携手美创,开启数据安全建设新局面
The second development of Revit -- how to use lookup (phase VII)
Revit secondary development - creating and switching tags (issue 16)
制造业中小企业转型能力建设分享
Revit secondary development - multi pipe linear annotation (phase 18)
[C#]给地球来点光
Revit secondary development - creating elevation (phase 8)
PostgreSQL 15 will soon support merge statements in the SQL standard
网络的构成要素
【数字信号处理】线性常系数差分方程 ( 根据 “ 线性常系数差分方程 “ 与 “ 边界条件 “ 确定系统是否是 “ 线性时不变系统 “ 案例 | 使用递推方法证明 )