当前位置:网站首页>HCIA-R&S自用笔记(16)DR与BDR、OSPF度量值、OSPF 配置、OSPF综合实验(认证+缺省路由发布)
HCIA-R&S自用笔记(16)DR与BDR、OSPF度量值、OSPF 配置、OSPF综合实验(认证+缺省路由发布)
2022-07-22 01:23:00 【筐瓢大师小吕】
DR与BDR(7/21,48min)
双方路由器进入2Way状态后,可能(若接口是PPP封装)会进入选举状态
缺省情况下,OSPF认为帧中继、ATM(异步传输)的网络类型是NBMA(非广播多路访问)
PPP不需要源目MAC
只要是Ethernet Ⅱ类型,就是广播多路访问类型
术语 | 备注 |
DR | Designed Router,指定路由器,类似班长,总经理 |
BDR | Backup DR,备用DR,类似副班长、副总经理 |
DRothers | 类似普通学生、普通员工 |
关系 | DR、BDR、DRothers之间都保持邻接关系(Full) Drothers之间只保持邻居关系(2Way) |
地址 | 224.0.0.6向DR与BDR发送链路状态更新 224.0.0.5向所有OSPF路由器发送 |
选举规则 | 首先比较Hello报文中携带的优先级: 优先级范围0-255,默认1 优先级最高的被选举为DR,优先级次高的被选举为BDR 优先级为0的不参与选举 优先级一致的情况下,比较RID,越大越优先 选举具有非抢占性,除非当DR与BDR都失效或重启OSPF进程 |
5代表all ospf路由,6代表片dr bdr
基于接口决定开销、状态(角色)、类型(广播)、优先级
串口中不选举dr或bdr,没有意义
OSPF度量值
路由方向为路由学习方向
数据方向指数据发送方向
开销最小为1(只取整,不四舍五入)
Huawei的回环口开销为0(Cisco为1)
修改接口开销值:int lo 1;ospf cost 10
左侧为129(出接口开销相加)右侧为65(出接口开销增加)实验/生产环境需要自行查看
OSPF配置(7/20,19min)
命令 | 备注 |
ospf 1 router-id 1.1.1.1 | 开启OSPF,进程号缺省为1 手动配置Router-id |
area 0或area 0.0.0.0 | 配置区域 |
network 192.168.0.0 0.0.0.255 | 宣告网络,指定运行OSPF的接口; 使用反掩码来匹配(255.255.255.255-掩码) |
display ospf peer [brief] | 显示OSPF邻居信息 |
ospf timer hello 10 | 修改Hello包发送间隔 |
ospf timer dead 40 | 修改Hello包超时时间 |
display ospf interface gi0/0/0 | 显示OSPF接口信息 |
ospf dr-priority 100 | 修改OSPF接口优先级 |
ospf cost 10 | (接口视图下)修改开销, 范围1-65535,缺省1 |
bandwidth-reference 100 | 调整带宽参考值(公式分子),默认为100Mbps; 需要在整个OSPF网络中统一调整 |
reset ospf process | 重启OSPF进程 |
network 192.168.0.1 0.0.0.0 精确匹配一个主机地址
只调hello包发送间隔,dead time也会变化(默认四倍)
分别调调整hello与dead time,二者数值可以没有关系
注入静态路由
[R4]ospf 1
[R4-ospf-1]import-route direct
OSPF综合实验(认证及缺省路由发布) (7/21,60min)
实验拓扑
只提及缺省路由发布与认证语法,配置过程在下一篇中给出
OSPF发布缺省路由:
在ASBR上
[R4]ip route-s 0.0.0.0 0 48.0.0.8
[R4]ospf 1
[R4-ospf-1]defalut-route-advertise
此时R1、R3、R6都会有一条默认路由
MD5认证
OSPF认证命令:
命令 | 备注 |
int gi0/0/0 ospf authentication-mode md5 1 cipher ayanami | 配置接口认证 |
ospf 1 area 0 authentication-mode md5 1 cipher ayanami | 配置区域认证 |
接口配置与区域配置二选一即可,可同时配置,接口认证优先生效;此处“1”为密钥id
提到CCIE排错的“1”与“I”
边栏推荐
- Heap (priority queue)
- The difference between using @fastnative and @criticalnative
- Qiu Chengtong college students' Mathematical Competition Mathematical Physics
- SOC first project
- 使用win32 api读文件
- Spoole TCP server
- OS8 resource based priority inversion and priority ceiling protocol
- [pingtunnel tool tutorial] ICMP encapsulation and firewall penetration using ICMP tunnel technology
- Typescript array extension use
- OS7-资源的死锁
猜你喜欢
【多线程】实现线程到底只有一种方式还是四种方式
[wechat applet] choosebao - the Savior of choice difficulties
STM32状态机编程实例——全自动洗衣机(上)
尚好房 - 项目总结
2022R1快开门式压力容器操作考题及模拟考试
Leetcode 215: the kth largest element in the array
OS09- AutoSAR OS事件机制和实例解析
Os09 AUTOSAR OS event mechanism and example analysis
[multithreading] is there only one way to implement threads or four ways
SOC first project
随机推荐
Master slave replication of MySQL Cluster (I)
2022年低压电工考试模拟100题及模拟考试
Checking the wide IP range of SPF records will undermine the security of e-mail
我的创作纪念日
LabVIEW cluster cannot contain input and output controls at the same time
【HMS Core】【FAQ】运动健康、音频编辑、华为帐号服务 典型问题合集7
The overheated weather in the UK led to the interruption of Google cloud and Oracle cloud services
RPC核心模块汇总
中年危机,关于未来的一些思考
Os09 AUTOSAR OS event mechanism and example analysis
Uds03 write data service according to identifier [serviceid = 0x2e]
Shanghaofang - project summary
LabVIEW簇中不能同时包含输入输出控件
Tas (file d'attente prioritaire)
借钱通过率高的产品有哪些?分享5款当天就可以放款的小贷
Wechat applet development process
[server data recovery] data recovery case of a Huawei server raid6
【每日一题】814. 二叉树剪枝
【多线程】实现线程到底只有一种方式还是四种方式
代码规范的一些经验