




免费预览已结束,剩余17页可下载查看
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
单区域 ospf 实施,实施 ospf,ospf 概述,通过交换 hello 数据包来创建邻居关系 以传播 lsa 代替路由表更新 链路:路由器接口 状态:描述接口以及它与邻居路由器的关系 将 lsa 泛洪到区域中的所有 ospf 路由器,而不仅是直连的路由器 收集由 ospf 路由器生成的所有 lsa 以创建 ospf 链路状态数据库 使用 spf 算法计算到每个目的地的最短距离,并将其置于路由表中,ospf 层级示例,尽量减少路由表条目 使拓扑变化仅影响本区域内部,邻居关系:hello 数据包,spf 算法,将每台路由器放置在树的根节点 ,并根据累计开销计算到达每个目的地的最短路径 开销 = 参考带宽 / 接口带宽 (b/s),配置单区域 ospf,network address wildcard-mask area area-id,将网络分配到指定 ospf 区域,router ospf process-id,将 ospf 定义为 ip 路由协议,routerx(config)#,routerx(config-router)#,配置环回接口,路由器 id: 按照 ospf 了解的路由器进行编号 默认值:ospf 过程启动时活动接口上的最高 ip 地址 可以使用环回接口覆盖:任何活动环回接口上的最高 ip 地址 可以使用 router-id 命令手动设置,检验 ospf 的配置,routerx# show ip protocols,检验是否已配置 ospf,routerx# show ip route,显示路由器获知的所有路由,routerx# show ip route codes:i - igrp derived, r - rip derived, o - ospf derived, c - connected, s - static, e - egp derived, b - bgp derived, e2 - ospf external type 2 route, n1 - ospf nssa external type 1 route, n2 - ospf nssa external type 2 route gateway of last resort is 10.119.254.240 to network 10.140.0.0 o 10.110.0.0 110/5 via 10.119.254.6, 0:01:00, ethernet2 o ia 10.67.10.0 110/10 via 10.119.254.244, 0:02:22, ethernet2 o 10.68.132.0 110/5 via 10.119.254.6, 0:00:59, ethernet2 o 10.130.0.0 110/5 via 10.119.254.6, 0:00:59, ethernet2 o e2 10.128.0.0 170/10 via 10.119.254.244, 0:02:22, ethernet2 . . .,检验 ospf 的配置(续),routerx# show ip ospf routing process “ospf 50“ with id 10.64.0.2 number of areas in this router is 1. 1 normal 0 stub 0 nssa number of areas transit capable is 0 external flood list length 0 area backbone(0) area backbone(0) area has no authentication spf algorithm last executed 00:01:25.028 ago spf algorithm executed 7 times ,显示 ospf 路由器 id、计时器和统计信息,routerx# show ip ospf,routerx# show ip ospf interface ethernet 0/0 ethernet0/0 is up, line protocol is up internet address 192.168.1.2/24, area 24 process id 201, router id 192.168.1.2, network type broadcast, cost: 10 transmit delay is 1 sec, state dr, priority 255 designated router (id) 192.168.1.2, interface address 192.168.1.2 backup designated router (id) 4.4.4.4, interface address 192.168.1.4 timer intervals configured, hello 10, dead 40, wait 40, retransmit 5 oob-resync timeout 40 hello due in 00:00:08 supports link-local signaling (lls) cisco nsf helper support enabled ietf nsf helper support enabled index 1/3, flood queue length 0 next 0x0(0)/0x0(0) last flood scan length is 2, maximum is 2 last flood scan time is 0 msec, maximum is 0 msec neighbor count is 1, adjacent neighbor count is 1 adjacent with neighbor 4.4.4.4 (backup designated router suppress hello for 0 neighbor(s),routerx# show ip ospf interface,检验 ospf 的配置(续),显示区域 id 和邻接信息,routerx# show ip ospf neighbor id pri state dead time address interface 10.199.199.137 1 full/dr 0:00:31 192.168.80.37 fastethernet0/0 172.16.48.1 1 full/drother 0:00:33 172.16.48.1 fastethernet0/1 172.16.48.200 1 full/drother 0:00:33 172.16.48.200 fastethernet0/1 10.199.199.137 5 full/dr 0:00:33 172.16.48.189 fastethernet0/1,检验 ospf 的配置(续),routerx# show ip ospf neighbor,显示每个接口上的 ospf 邻居信息,routerx# show ip ospf neighbor 10.199.199.137 neighbor 10.199.199.137, interface address 192.168.80.37 in the area 0.0.0.0 via interface ethernet0 neighbor priority is 1, state is full options 2 dead timer due in 0:00:32 link state retransmission due in 0:00:04 neighbor 10.199.199.137, interface address 172.16.48.189 in the area 0.0.0.0 via interface fddi0 neighbor priority is 5, state is full options 2 dead timer due in 0:00:32 link state retransmission due in 00:00:03,检验 ospf 的配置(续),routerx# debug ip ospf events ospf:hello with invalid timers on interface ethernet0 hello interval received 10 configured 10 net mask received 255.255.255.0 configured 255.255.255.0 dead interval received 40 configured 30 ospf:rcv. v:2 t:1 l:48 rid:200.0.0.117 aid:0.0.0.0 chk:6ab2 aut:0 auk: routerx# debug ip ospf packet ospf:rcv. v:2 t:1 l:48 rid:200.0.0.116 aid:0.0.0.0 chk:0 aut:2 keyid:1 seq:0x0,ospf 调试命令,使用 ospf 配置负载均衡,ospf 负载均衡: 路径必须为等价路径 默认情况下,最多可在路由表中加入四条等价路径 通过更改配置,最多可以配置 16 条路径: (config-router)# maximum-paths 可更改特殊链路的开销以确保路径等价于负载均衡: (config-if)# ip ospf cost ,使用 ospf 配置负载均衡(续),ospf 身份验证,ospf 支持以下几种类型的身份验证: 空(无身份验证) 明文(或简单)口令身份验证 md5 身份验证 路由器生成并检查每个 ospf 数据包。 路由器验证接收到的每个路由更新数据包的来源。 配置“密钥”(口令);每个参与的邻居都必须配置相同的密钥。,配置 ospf 明文口令身份验证,ip ospf authentication-key password,routerx(config-if)#,分配用于邻居路由器的口令,routerx(config-if)#,ip ospf authentication message-digest | null,指定接口的身份验证类型(如 cisco ios 版本 12.0),routerx(config-router)#,area area-id authentication message-digest,指定区域的身份验证类型,或者,明文口令身份验证配置示例,检验明文口令身份验证,routerx#show ip ospf neighbor neighbor id pri state dead time address interface 10.2.2.2 0 full/ - 00:00:32 192.168.1.102 serial0/0/1 routerx# show ip route gateway of last resort is not set 10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks o 10.2.2.2/32 110/782 via 192.168.1.102, 00:01:17, serial0/0/1 c 10.1.1.0/24 is directly connected, loopback0 192.168.1.0/27 is subnetted, 1 subnets c 192.168.1.96 is directly connected, serial0/0/1 routerx#ping 10.2.2.2 type escape sequence to abort. sending 5, 100-byte icmp echos to 10.2.2.2, timeout is 2 seconds: ! success rate is 100 percent (5/5), round-trip min/avg/max = 28/29/32 ms,可视目标 4-1:实施 ospf,总结,ospf 是无类链路状态路由协议,它使用区域层级以加速收敛。 ospf 相互交换 hello 数据包
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 泡沫包装创新创业项目商业计划书
- 森林温泉疗养基地创新创业项目商业计划书
- 谐波精密减速器创新创业项目商业计划书
- 米饭自动分装机企业制定与实施新质生产力项目商业计划书
- 纳米电子元件企业制定与实施新质生产力项目商业计划书
- DB41T 2917-2025地质空间三棱台八叉树网格剖分编码规范
- DB41T 2872-2025夏枯草种子生产技术规程
- 2025年监理工程师合同管理考试真题(附答案)
- 社区访谈与沟通技巧100
- 安全培训平台介绍词大全课件
- 照片档案整理规范
- 糖尿病胰岛素泵的护理查房课件
- 2023新能源集控中心及智慧电厂建设方案
- 人工智能(基础版)高职人工智能基础课程PPT完整全套教学课件
- 10胃十二指肠溃疡临床路径表单
- 高标准农田施工组织设计(全)
- 外科学(1)智慧树知到答案章节测试2023年温州医科大学
- 软件开发安全管理办法
- 消费者的注意
- 《安娜·卡列尼娜》-课件-
- 2022年新版体系文件药品零售单体连锁总部质量管理体系文件
评论
0/150
提交评论