首页 OSPF路由协议

OSPF路由协议

举报
开通vip

OSPF路由协议null路由协议原理与配置第4章 OSPF路由协议课时数:20课时路由协议原理与配置教师自我介绍教师自我介绍教师姓名: (请进行自我介绍 ) 课程介绍课程介绍本课程容包括:高级IP编制管理、路由选择概述、RIP路由协议、OSPF路由协议、BGP路由协议、路由策略与路由优化。 以应用为目标,具有较强的实践性,重点和难点突出;在相应的知识点后面都附有小结、习题和实训。 课程安排课程安排 OSPF路由协议 20课时 OSPF路由协议简介 1课时 O...

OSPF路由协议
null路由 协议 离婚协议模板下载合伙人协议 下载渠道分销协议免费下载敬业协议下载授课协议下载 原理与配置第4章 OSPF路由协议课时数:20课时路由协议原理与配置教师 自我介绍 自我介绍100字ppt自我介绍模板入职应聘自我介绍模板职场自我介绍医院面试自我介绍 教师自我介绍教师姓名: (请进行自我介绍 ) 课程介绍课程介绍本课程容包括:高级IP编制管理、路由选择概述、RIP路由协议、OSPF路由协议、BGP路由协议、路由策略与路由优化。 以应用为目标,具有较强的实践性,重点和难点突出;在相应的知识点后面都附有小结、习题和实训。 课程安排课程安排 OSPF路由协议 20课时 OSPF路由协议简介 1课时 OSPF包的类型 2课时 配置OSPF路由协议 3课时 OSPF的LSA类型 5课时 OSPF路由汇总 3课时 配置OSPF区域类型 3课时 配置OSPF认证 3课时 学习对象学习对象希望了解 网络路由技术方面知识的学生、专业人士等 学习目标学习目标在完成本课程的学习后,您应该能够: 了解OSPF 的工作原理,掌握OSPF的配置; 理解OSPF的包类型 理解OSPF LSA原理 目录大纲 目录大纲OSPF路由协议简介 OSPF包的类型 配置OSPF路由协议 OSPF的LSA类型 OSPF路由汇总 配置OSPF区域类型 配置OSPF认证 null1 OSPF路由协议简介null链路状态数据结构邻居表: 也称为毗邻数据库 包含了已知的邻居路由器 拓扑表: 一般称为链路状态数据库(LSDB) 包含了在一个区域或网络中的所有路由器和他们所连接的链路 在同一个区域内的所有路由器都有相同的LSDB 路由表: 也称为前转表 包含到达目的网络的最优路径1 OSPF路由协议简介null链路状态路由选择协议链路状态路由器比距离矢量路由器包含更多关于本网络的信息 每一台路由器都有本网络的完整拓扑表 因此, 链路状态路由器能够做出更好的路由选择1 OSPF路由协议简介null链路状态数据结构: 网络层次链路状态路由选择算法(如:OSPF)需要层次化的网络结构 这层次结构包括以下两种: 传输区域 (骨干区域或区域 0) 一般区域 (非骨干区域)1 OSPF路由协议简介nullOSPF 区域特点: 使路由表中条目最少化 在区域内缩小查找拓扑变化的范围 LSA在区域边界处停止泛洪 需要层次化的网络 设计 领导形象设计圆作业设计ao工艺污水处理厂设计附属工程施工组织设计清扫机器人结构设计 OSPF 区域1 OSPF路由协议简介null路由器A和B是骨干路由器 骨干路由器构成区域0 路由器 C, D, 和 E 是区域边界路由器(ABRs). ABRs 连接其他所有区域到区域0区域术语1 OSPF路由协议简介nullOSPF 毗邻关系路由器通过交换HELLO数据包来发现邻居 路由器在检查完HELLO数据包中的具体参数或选项之后宣告毗邻关系的建立1 OSPF路由协议简介null建立OSPF的毗邻关系点到点广域网(WAN)链路: 邻居双方为全毗邻关系 局域网(LAN)链路: 路由器只与DR或BDR建立全毗邻关系. 其他路由器(DROTHERs)之间维持在 two-way 的状态下 路由更新和拓扑信息仅仅在邻接路由器之间作交换 当路由器毗邻关系建立起来后, LSDBs 通过交换 LSAs来进行数据库的同步. LSAs 可靠地泛洪在区域或网络里面1 OSPF路由协议简介nullOSPF Calculation路由器运用Dijkstra最短路径优先算法去寻找到达目标网络的最短路径: 区域内的路由器有相同的链路状态数据库 在区域中的路由器都以自己为根建立最短路径树 到目标网络最优路径的计算方法是计算到该网络的最低开销(COST) 最优的路由被放进前转表中(即路由表中) 1 OSPF路由协议简介nullSPF 计算假设所有链路都是以太网, 其 OSPF 的链路开销(COST)值为10.1 OSPF路由协议简介null2 OSPF包的类型nullOSPF 数据包包头格式2 OSPF包的类型null邻居关系: Hello 数据包2 OSPF包的类型null建立双向通信2 OSPF包的类型null发现网络路由2 OSPF包的类型null加入链路状态条目2 OSPF包的类型null路由器A用224.0.0.6目标地址通告给所有DR. DR 用224.0.0.5目标地址通告给其他路由器(DROTHERS).维护路由选择信息2 OSPF包的类型null调试 ospf 数据包R1#debug ip ospf packet OSPF packet debugging is on R1# *Feb 16 11:03:51.206: OSPF: rcv. v:2 t:1 l:48 rid:10.0.0.12 aid:0.0.0.1 chk:D882 aut:0 auk: from Serial0/0/0.2调试 OSPF 数据包Shows fields in OSPF header2 OSPF包的类型配置基本的 OSPFrouter ospf process-id [vrf vpn-name] Router(config)#启用一个或多个 ospf 路由选择进程配置基本的 OSPFnetwork ip-address wildcard-mask area area-idRouter(config-router)#定义 OSPF 运行的接口Router(config-if)#ip ospf process-id area area-id [secondaries none]启用OSPF进程的另一种方法——在接口上启用3 配置OSPF路由协议在单一区域的内部路由器中配置OSPF在单一区域的内部路由器中配置OSPF3 配置OSPF路由协议在多区域中配置OSPF在多区域中配置OSPF3 配置OSPF路由协议OSPF Router IDOSPF Router ID在 ospf 中,用 router id 来区分路由器 LSDBs 使用 OSPF router ID 去区分路由器 缺省情况下,在OSPF刚启动时,最高活跃接口的 IP address 为router id 如果使用了环回接口, router ID 为最高 IP address 的环回接口 OSPF router-id 命令能够被用于去覆盖 OSPF的 router ID. 为了更稳定建议使用使用环回接口或者 router-id 命令3 配置OSPF路由协议环回接口Router(config)#interface loopback 0 Router(config-if)#ip address 172.16.17.5 255.255.255.255如果 OSPF 进程已经启用, 如果想要一个新的环回接口成为router id路由器必须被重起,或者 OSPF 进程必须被删除和重新配置环回接口3 配置OSPF路由协议OSPF router-id 命令router-id ip-address 该命令是在 router ospf [process-id] 命令下配置的. 能够使用任意唯一的 32位IP address (点分十进制). 如果该命令在 OSPF 进程中 已经被激活, 那么如果想用一个新的 router ID ,必须重起路由器或者重起OSPF进程OSPF router-id 命令Router(config-router)#Router(config)#router ospf 1 Router(config-router)#router-id 172.16.1.1 Router#clear ip ospf processclear ip ospf process Router#3 配置OSPF路由协议OSPF Router ID 验证OSPF Router ID 验证RouterB#sh ip ospf Routing Process "ospf 50" with ID 10.64.0.2 Number of areas in this router is 2. 2 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 Area 1 Number of interfaces in this area is 1 Area has no authentication SPF algorithm last executed 00:00:54.636 ago SPF algorithm executed 3 times 3 配置OSPF路由协议验证 OSPF 操作show ip protocols Router#验证所配置的 IP 路由选择协议进程, 参数, 和统计验证 OSPF 操作show ip route ospf [process-id ] Router#显示路由器所学到的所有OSPF 路由show ip ospf interface [type number] Router#显示 OSPF router ID, area ID, 和 毗邻关系3 配置OSPF路由协议验证OSPF show ip ospf Router#显示了 OSPF 的 router ID, timers, and statistics 验证OSPF show ip ospf neighbor [type number] [neighbor-id] [detail]Router#显示了在广播网络中 OSPF 邻居, 包括DR 和BDR 的信息3 配置OSPF路由协议例子: The show ip route ospf 命令例子: The show ip route ospf 命令RouterA#show ip route ospf 10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks O IA 10.2.1.0/24 [110/782] via 10.64.0.2, 00:03:05, FastEthernet0/0 RouterA#3 配置OSPF路由协议例子: show ip ospf interface 命令例子: show ip ospf interface 命令RouterA#show ip ospf interface fastEthernet 0/0 FastEthernet0/0 is up, line protocol is up Internet Address 10.64.0.1/24, Area 0 Process ID 1, Router ID 10.64.0.1, Network Type BROADCAST, Cost: 1 Transmit Delay is 1 sec, State DROTHER, Priority 0 Designated Router (ID) 10.64.0.2, Interface address 10.64.0.2 No backup designated router on this network Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5 oob-resync timeout 40 Hello due in 00:00:04 Supports Link-local Signaling (LLS) Index 1/1, flood queue length 0 Next 0x0(0)/0x0(0) Last flood scan length is 1, maximum is 4 Last flood scan time is 0 msec, maximum is 4 msec Neighbor Count is 1, Adjacent neighbor count is 1 Adjacent with neighbor 10.64.0.2 (Designated Router) Suppress hello for 0 neighbor(s)3 配置OSPF路由协议例子: The show ip ospf neighbor 命令例子: The show ip ospf neighbor 命令RouterB# show ip ospf neighbor Neighbor ID Pri State Dead Time Address Interface 10.64.0.1 0 FULL/DROTHER 00:00:30 10.64.0.1 FastEthernet0/0 10.2.1.1 0 FULL/ - 00:00:34 10.2.1.1 Serial0/0/1RouterB# show ip ospf neighbor detail Neighbor 10.64.0.1, interface address 10.64.0.1 In the area 0 via interface FastEthernet0/0 Neighbor priority is 0, State is FULL, 16 state changes DR is 10.64.0.2 BDR is 0.0.0.0 Neighbor 10.2.1.1, interface address 10.2.1.1 In the area 1 via interface Serial0/0/1 Neighbor priority is 0, State is FULL, 6 state changes DR is 0.0.0.0 BDR is 0.0.0.0 3 配置OSPF路由协议总结总结配置 OSPF 有两步: 输入配置OSPF的命令 router ospf 用 network 去描述哪个接口在哪个区域去运行 OSPF. OSPF 首先要选择一个 router ID: 在ospf进程中使用 router-id 命令去配置一个ROUTER ID 否则,如果用了环回接口,则环回接口中的最高ip地址为router id 缺省情况下,最高活跃接口的 IP address 为router id 使用 show ip ospf 命令去验证router ID 使用 show ip protocols, show ip route ospf, show ip ospf interface, show ip ospf, 和show ip ospf neighbor 命令去验证 OSPF 操作.3 配置OSPF路由协议维护大型 OSPF 网络的问题维护大型 OSPF 网络的问题4 OSPF的LSA类型解决 方案 气瓶 现场处置方案 .pdf气瓶 现场处置方案 .doc见习基地管理方案.doc关于群访事件的化解方案建筑工地扬尘治理专项方案下载 : OSPF 分层路由选择解决方案 : OSPF 分层路由选择包括区域和自治系统 最少化路由选择更新流量4 OSPF的LSA类型OSPF 路由器类型OSPF 路由器类型4 OSPF的LSA类型定义虚拟链路(Virtual Links) Virtual links 被用为连接不连续的区域到area 0. 一个逻辑的连接在 router A 和 router B之间. Virtual links 的作用是做备份或者暂时的连接.定义虚拟链路(Virtual Links) 4 OSPF的LSA类型配置 Virtual Links配置 Virtual Linksarea area-id virtual-link router-id [authentication [message-digest | null]] [hello-interval seconds] [retransmit-interval seconds] [transmit-delay seconds] [dead-interval seconds] [[authentication-key key] | [message-digest-key key-id md5 key]]Router(config-router)#建立一条 virtual linkremoterouter#sh ip ospf Routing Process "ospf 1000" with ID 10.2.2.2 Supports only single TOS(TOS0) routes Supports opaque LSA Supports Link-local Signaling (LLS) Supports area transit capability It is an area border router 4 OSPF的LSA类型OSPF Virtual Link 配置 例子OSPF Virtual Link 配置 例子4 OSPF的LSA类型show ip ospf virtual-links 命令RouterA#sh ip ospf virtual-links Virtual Link OSPF_VL0 to router 10.2.2.2 is up Run as demand circuit DoNotAge LSA allowed. Transit area 1, via interface Serial0/0/1, Cost of using 781 Transmit Delay is 1 sec, State POINT_TO_POINT, Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5 Hello due in 00:00:07 Adjacency State FULL (Hello suppressed) Index 1/2, retransmission queue length 0, number of retransmission 1 First 0x0(0)/0x0(0) Next 0x0(0)/0x0(0) Last retransmission scan length is 1, maximum is 1 Last retransmission scan time is 0 msec, maximum is 0 msec RouterA#show ip ospf virtual-links 命令4 OSPF的LSA类型LSA 类型LSA 类型4 OSPF的LSA类型LSA Type 1: Router LSALSA Type 1: Router LSA一个区域里的每一台路由器的 router LSA (type 1) 包括直接连接链路的列表 每一条链路是以该链路的IP地址前缀 和 该链路的链路类型作为确定的 以始发路由器的 router id 作为标识 只在本区域泛洪; 不跨越 ABR4 OSPF的LSA类型LSA Type 2: Network LSALSA Type 2: Network LSA在区域每个广播型网络或者NBMA网络中的 network (type 2) LSA 包括网络中连接的路由器 包含链路的子网掩码 广播网络中的DR通告的 仅仅在本区域泛洪; 不跨越 ABR4 OSPF的LSA类型LSA Type 3: Summary LSALSA Type 3: Summary LSAType 3 LSAs 被用作泛洪网络信息到其他区域 描述网络前缀和子网掩码. 由始发区域的ABR发送 在区域0中传递 缺省下, 不汇总路由, type 3 LSA 通告每一个子网.4 OSPF的LSA类型LSA Type 4: Summary LSALSA Type 4: Summary LSASummary (type 4) LSAs 被用来在其他区域中通告 ASBR 由始发区域的ABR发送. Type 4 LSAs 包含ASBR的 router ID.4 OSPF的LSA类型LSA Type 5: External LSALSA Type 5: External LSAExternal (type 5) LSAs 被用来通告从其他AS学习来的网络 Type 5 LSAs 由 ASBR通告. Type 5 LSAs 在整个自治系统里通告. 在整个自治系统里通告者的 router ID (ASBR) 不做改变 需要用Type 4 LSA 去寻找ASBR. 缺省下, 路由不被汇总.4 OSPF的LSA类型解释 the OSPF 数据库解释 the OSPF 数据库RouterA#show ip ospf database OSPF Router with ID (10.0.0.11) (Process ID 1) Router Link States (Area 0) Link ID ADV Router Age Seq# Checksum Link count 10.0.0.11 10.0.0.11 548 0x80000002 0x00401A 1 10.0.0.12 10.0.0.12 549 0x80000004 0x003A1B 1 100.100.100.100 100.100.100.100 548 0x800002D7 0x00EEA9 2 Net Link States (Area 0) Link ID ADV Router Age Seq# Checksum 172.31.1.3 100.100.100.100 549 0x80000001 0x004EC9 Summary Net Link States (Area 0) Link ID ADV Router Age Seq# Checksum 10.1.0.0 10.0.0.11 654 0x80000001 0x00FB11 10.1.0.0 10.0.0.12 601 0x80000001 0x00F516 4 OSPF的LSA类型解读路由表 : 路由类型解读路由表 : 路由类型4 OSPF的LSA类型计算 E1 和 E2 路由的 cost 值计算 E1 和 E2 路由的 cost 值4 OSPF的LSA类型show ip route 命令show ip route 命令RouterB>show ip route Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route Gateway of last resort is not set 172.31.0.0/24 is subnetted, 2 subnets O IA 172.31.2.0 [110/1563] via 10.1.1.1, 00:12:35, FastEthernet0/0 O IA 172.31.1.0 [110/782] via 10.1.1.1, 00:12:35, FastEthernet0/0 10.0.0.0/8 is variably subnetted, 6 subnets, 2 masks C 10.200.200.13/32 is directly connected, Loopback0 C 10.1.3.0/24 is directly connected, Serial0/0/0 O 10.1.2.0/24 [110/782] via 10.1.3.4, 00:12:35, Serial0/0/0 C 10.1.1.0/24 is directly connected, FastEthernet0/0 O 10.1.0.0/24 [110/782] via 10.1.1.1, 00:12:37, FastEthernet0/0 O E2 10.254.0.0/24 [110/50] via 10.1.1.1, 00:12:37, FastEthernet0/04 OSPF的LSA类型OSPF LSDB 过载保护 OSPF LSDB 过载保护 Excessive LSAs generated by other routers can drain local router resources. This feature can limit the processing of non-self-generated LSAs for a defined OSPF process.max-lsa maximum-number [threshold-percentage] [warning-only] [ignore-time minutes] [ignore-count count-number] [reset-time minutes]Router(config-router)#4 OSPF的LSA类型改变 Cost 值ip ospf cost interface-cost Overrides the default cost calculation. Values from 1 to 65535 can be defined.改变 Cost 值auto-cost reference-bandwidth ref-bwSets the reference bandwidth to values other than 100 Mbps (legal values range from 1 to 4,294,967 in megabits per second).Dijkstra’s algorithm determines the best path by adding all link costs along a path. The cost, or metric, is an indication of the overhead to send packets over an interface. Default = (100 Mbps) / (bandwidth in Mbps).RouterA(config-if)#RouterA(config-router)#4 OSPF的LSA类型总结总结四种 OSPF 路由器: 区域内路由器, 骨干路由器, ABRs, 和ASBRs. Virtual links 被用为连接不连续的区域到区域 0。虚链路应当只用于临时连接或作为备份使用,而不应该作为一个主要的骨干区域。 有11种 OSPF LSA 类型. 前5种最常用: Type 1 router Type 2 network Type 3 and 4 summary Type 5 external4 OSPF的LSA类型4 OSPF的LSA类型4 OSPF的LSA类型在路由表里, OSPF 路由被分为区域内(intra-area), 区域间(interarea),区域外(external) 3类 。external routes 又分为 E1 和 E2. OSPF LSDB 过载保护限制了non-self-generated LSA. OSPF 开销(cost)缺省值为 (100 Mbps) / (bandwidth in megabits per second). cost 值能基于每个接口来作改变,参考带宽(bandwidth)也能手工地作改变路由汇总的好处路由汇总的好处最小化路由表条目 隐藏拓扑结构的变化 减少类型3和类型5 LSA 的泛洪 和 节省CPU资源 5 OSPF路由汇总使用路由汇总使用路由汇总区域间汇总携带子网掩码 一个或多个条目可以代表若干个子网 5 OSPF路由汇总配置路由汇总area area-id range address mask [advertise | not-advertise] [cost cost] Router(config-router)#在ABR上配置的区域间路由汇总配置路由汇总summary-address ip-address mask [not-advertise] [tag tag]Router(config-router)#在 ASBR上配置的外部路由的路由汇总5 OSPF路由汇总在 ABR 上配置路由汇总的例子在 ABR 上配置路由汇总的例子5 OSPF路由汇总在 ASBR上配置路由汇总的例子在 ASBR上配置路由汇总的例子5 OSPF路由汇总OSPF里的缺省路由OSPF里的缺省路由缺省路由是作为类型5 LSA 出现在OSPF里. 在默认情况下,不预设缺省路由; 在OSPF进程中使用 default-information originate 命令来设置缺省路由5 OSPF路由汇总Configuring OSPF Default Routes通常, 当路由表中已有缺省路由的情况下,该命令通告了一条 0.0.0.0 的缺省路由进入 OSPF 网络中 当路由表中没有缺省路由的情况下,always 关键字允许这个 0.0.0.0 的缺省路由通告进OSPF中.default-information originate [always] [metric metric-value] [metric-type type-value] [route-map map-name] Router(config-router)#Configuring OSPF Default Routes5 OSPF路由汇总缺省路由配置例子缺省路由配置例子5 OSPF路由汇总 总 结 总 结路由汇总提高CPU利用率 , 减少LSA泛洪, 和减少路由表条目. area range 命令用在 ABR 上进行路由汇总. summary-address 命令用在 ASBR 上进行路由汇总. 缺省路由能够防止到达目标网络的详细路由出现在路由表里.其优点为使路由表和 LSDB最小化. OSPF 使用 default-information originate 命令去注入缺省路由.5 OSPF路由汇总区域的类型区域的类型 6 配置OSPF区域类型末梢区域(stub area)和完全末梢区域(totally stub area)法则末梢区域(stub area)和完全末梢区域(totally stub area)法则一个区域成为 末梢区域 或 完全末梢区域的条件: 只有一个ABR, 或者有超过一个的ABR, 但能够接受到 其他地区或外部自治系统 的次优路由路径 。 在该区域中的所有路由器都要配为末梢路由器(stub router). 在该区域中没有 ASBR. 该区域不是区域 0. 没有虚拟链路(virtual link)穿越该区域.6 配置OSPF区域类型使用末梢区域(Stub Areas)防止 外部 LSA 进入末梢区域. 由 ABR 通告缺省路由进末梢区域. 在区域 50的所有路由器必须被配置为stub router.使用末梢区域(Stub Areas)6 配置OSPF区域类型配置 Stub Area配置 Stub Areaarea area-id stub [no-summary]该命令启用了末梢区域网络. 在末梢区域中的所有路由器都必须使用该命令. RouterA(config-router)#area area-id default-cost cost该命令定义了 stub area 里缺省路由的 cost 值. 缺省 cost 值为 1. RouterA(config-router)#6 配置OSPF区域类型OSPF Stub Area Configuration ExampleOSPF Stub Area Configuration Example6 配置OSPF区域类型使用完全末梢区域防止外部 LSA 进入完全末梢区域. 防止Summary LSAs 进入完全末梢区域. 最少化路由表条目. 所有路由器必须被配置为 stub router. ABR 必须被配置为 totally stubby. 这是思科私有的一个特性.使用完全末梢区域6 配置OSPF区域类型配置 Totally Stubbyarea area-id stub no-summary 配置完全末梢区域时仅需在 ABR配置末梢区域时使用 no-summary 关键字。该命令no-summary 关键字阻塞了类型3和类型4的LSA 进入末梢区域配置 Totally StubbyRouterA(config-router)#6 配置OSPF区域类型Totally Stubby Configuration ExampleTotally Stubby Configuration Example6 配置OSPF区域类型标准区域下的路由表标准区域下的路由表P1R3#sh ip route Gateway of last resort is not set 172.31.0.0/32 is subnetted, 4 subnets O IA 172.31.22.4 [110/782] via 10.1.1.1, 00:02:44, FastEthernet0/0 O IA 172.31.11.1 [110/1] via 10.1.1.1, 00:02:44, FastEthernet0/0 O IA 172.31.11.2 [110/782] via 10.1.3.4, 00:02:52, Serial0/0/0 [110/782] via 10.1.1.1, 00:02:52, FastEthernet0/0 O IA 172.31.11.4 [110/782] via 10.1.1.1, 00:02:44, FastEthernet0/0 10.0.0.0/8 is variably subnetted, 7 subnets, 2 masks O 10.11.0.0/24 [110/782] via 10.1.1.1, 00:03:22, FastEthernet0/0 C 10.200.200.13/32 is directly connected, Loopback0 C 10.1.3.0/24 is directly connected, Serial0/0/0 O 10.1.2.0/24 [110/782] via 10.1.3.4, 00:03:23, Serial0/0/0 C 10.1.1.0/24 is directly connected, FastEthernet0/0 O 10.1.0.0/24 [110/782] via 10.1.1.1, 00:03:23, FastEthernet0/0 O E2 10.254.0.0/24 [110/50] via 10.1.1.1, 00:02:39, FastEthernet0/0 P1R3#6 配置OSPF区域类型在 Stub Area下的路由表在 Stub Area下的路由表P1R3#sh ip route Gateway of last resort is 10.1.1.1 to network 0.0.0.0 172.31.0.0/32 is subnetted, 4 subnets O IA 172.31.22.4 [110/782] via 10.1.1.1, 00:01:49, FastEthernet0/0 O IA 172.31.11.1 [110/1] via 10.1.1.1, 00:01:49, FastEthernet0/0 O IA 172.31.11.2 [110/782] via 10.1.3.4, 00:01:49, Serial0/0/0 [110/782] via 10.1.1.1, 00:01:49, FastEthernet0/0 O IA 172.31.11.4 [110/782] via 10.1.1.1, 00:01:49, FastEthernet0/0 10.0.0.0/8 is variably subnetted, 6 subnets, 2 masks O 10.11.0.0/24 [110/782] via 10.1.1.1, 00:01:50, FastEthernet0/0 C 10.200.200.13/32 is directly connected, Loopback0 C 10.1.3.0/24 is directly connected, Serial0/0/0 O 10.1.2.0/24 [110/782] via 10.1.3.4, 00:01:50, Serial0/0/0 C 10.1.1.0/24 is directly connected, FastEthernet0/0 O 10.1.0.0/24 [110/782] via 10.1.1.1, 00:01:50, FastEthernet0/0 O*IA 0.0.0.0/0 [110/2] via 10.1.1.1, 00:01:51, FastEthernet0/0 P1R3#6 配置OSPF区域类型Routing Table in a Stub Area with SummarizationRouting Table in a Stub Area with SummarizationP1R3#sh ip route Gateway of last resort is 10.1.1.1 to network 0.0.0.0 172.31.0.0/16 is variably subnetted, 2 subnets, 2 masks O IA 172.31.22.4/32 [110/782] via 10.1.1.1, 00:13:08, FastEthernet0/0 O IA 172.31.11.0/24 [110/1] via 10.1.1.1, 00:02:39, FastEthernet0/0 10.0.0.0/8 is variably subnetted, 6 subnets, 2 masks O 10.11.0.0/24 [110/782] via 10.1.1.1, 00:13:08, FastEthernet0/0 C 10.200.200.13/32 is directly connected, Loopback0 C 10.1.3.0/24 is directly connected, Serial0/0/0 O 10.1.2.0/24 [110/782] via 10.1.3.4, 00:13:09, Serial0/0/0 C 10.1.1.0/24 is directly connected, FastEthernet0/0 O 10.1.0.0/24 [110/782] via 10.1.1.1, 00:13:09, FastEthernet0/0 O*IA 0.0.0.0/0 [110/2] via 10.1.1.1, 00:13:09, FastEthernet0/0 P1R3#6 配置OSPF区域类型Routing Table in a Totally Stubby AreaRouting Table in a Totally Stubby AreaP1R3#sh ip route Gateway of last resort is 10.1.1.1 to network 0.0.0.0 10.0.0.0/8 is variably subnetted, 6 subnets, 2 masks O 10.11.0.0/24 [110/782] via 10.1.1.1, 00:16:53, FastEthernet0/0 C 10.200.200.13/32 is directly connected, Loopback0 C 10.1.3.0/24 is directly connected, Serial0/0/0 O 10.1.2.0/24 [110/782] via 10.1.3.4, 00:16:53, Serial0/0/0 C 10.1.1.0/24 is directly connected, FastEthernet0/0 O 10.1.0.0/24 [110/782] via 10.1.1.1, 00:16:53, FastEthernet0/0 O*IA 0.0.0.0/0 [110/2] via 10.1.1.1, 00:00:48, FastEthernet0/0 P1R3#6 配置OSPF区域类型非纯末梢区域(Not-So-Stubby Areas)ABR (R2) 转换类型七的LSA成类型五的LSA ABR 发送一条缺省路由给内部路由器 NSSA 是一个RFC的公有标准非纯末梢区域(Not-So-Stubby Areas)6 配置OSPF区域类型配置 NSSAarea area-id nssa [no-redistribution] [default-information-originate [metric metric-value] [metric-type type-value]] [no-summary] 使用该命令去定义一个区域为 NSSA. no-summary 关键字阻塞了类型3和类型4的LSA; 这是思科私有的一个特性.配置 NSSARouterA(config-router)#例子: 配置 NSSA例子: 配置 NSSA6 配置OSPF区域类型NSSA Totally Stubby ConfigurationNSSA Totally Stubby ConfigurationNSSA totally stubby area 是思科私有的一个特性.6 配置OSPF区域类型总 结总 结有多种 OSPF 的区域类型: 标准区域, 骨干区域, 末梢区域, 完全末梢区域, 和非纯末梢区域(NSSA). 使用 area area-id stub 命令去定义一个区域为末梢区域. 在ABR上使用 area area-id stub 命令加上no-summary 关键字去定义一个区域为完全末梢区域. 在末梢区域里, 外部路由不出现在路由表里面, 但是可以通过区域内的缺省路由到达 在完全末梢区域里, 区域间的和外部的路由都不在路由表里, 但是可以通过区域内的缺省路由到达. 使用 area area-id nssa 命令去定义一个区域为 NSSA区域. 使用 show ip ospf, show ip ospf database, show ip route 命令去验证所有类型的末梢区域. 使用 show ip ospf database nssa-external 命令去显示类型7 LSA 的详细信息6 配置OSPF区域类型OSPF 认证类型OSPF 认证类型OSPF 支持两种类型的认证: 明文认证 MD5 认证 路由器传播和检查每一个OSPF 数据包. 路由器验证每一个它接受到的路由选择更新包. 配置一个密码;邻居双方必须有相同的密码 7 配置OSPF认证配置 OSPF 明文认证配置 OSPF 明文认证ip ospf authentication-key passwordRouter(config-if)#在邻居路由器之间配置密码Router(config-if)#ip ospf authentication [message-digest | null]基于每个接口,指定认证类型 (Cisco IOS software 12.0 以上)Router(config-router)#area area-id authentication [message-digest]基于每个区域,指定认证类型 (was in Cisco IOS software before 12.0) 7 配置OSPF认证明文认证配置例子明文认证配置例子 Loopback 0 10.2.2.2 7 配置OSP
本文档为【OSPF路由协议】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑, 图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
该文档来自用户分享,如有侵权行为请发邮件ishare@vip.sina.com联系网站客服,我们会及时删除。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。
本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。
网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
下载需要: 免费 已有0 人下载
最新资料
资料动态
专题动态
is_468928
暂无简介~
格式:ppt
大小:3MB
软件:PowerPoint
页数:0
分类:互联网
上传时间:2013-08-25
浏览量:23