OSPF协议原理与配置要点解析.pptVIP

  • 15
  • 0
  • 约1.23万字
  • 约 92页
  • 2016-11-14 发布于湖北
  • 举报
在OSPF路由协议中,最短路径树的树干长度,即OSPF路由器至每一个目的地路由器的距离,称为OSPF的Cost. 其算法为:Cost = 100×106/链路带宽 在这里,链路带宽以bps来表示。也就是说,OSPF的Cost 与链路的带宽成反比,带宽越高,Cost越小, 表示OSPF到目的地的距离越近。右表为部分链路的Cost值。 2 环回接口和虚链路 2 环回接口和虚链路 使用目的: 连接一个非骨干区域到一个骨干区域通过一个非骨干区域 通过一个非骨干区,连接分开的两个骨干区部分 使用规则: 必须在两个ABR之间进行配置; 虚拟链路是设置在两个路由器之间,这两个路由器都有一个端口与同一个非骨干区域相连; 虚链路通过的区域作为传输区域,必须有完整的路由信息; 中间传输区不能是存根区(stub) 7.3 OSPF配置实例 OSPF配置实例1:单区域点对点OSPF配置 (1)RTA路由器的配置 RTA(config)#interface FastEthernet0/0 RTA(config-if)#ip address 192.168.1.1 255.255.255.0 RTA(config-if)#no shutdown RTA(config-if)#interface Serial0/0/0 RTA(config-if)#clock rate 2000000 RTA(config-if)#ip address 10.0.0.1 255.255.255.252 RTA(config-if)#no shutdown RTA(config-if)#exit RTA(config)#router ospf 1 RTA(config-router)# network 192.168.1.0 0.0.0.255 area 0 RTA(config-router)# network 10.0.0.1 0.0.0.3 area 0 (2)RTB路由器的配置 Routerenable Router#configure terminal Router(config)#hostname RTB RTB(config)#interface FastEthernet0/0 RTB(config-if)#ip address 192.168.2.1 255.255.255.0 RTB(config-if)#no shutdown RTB(config-if)#interface Serial0/0/0 RTB(config-if)#ip address 10.0.0.2 255.255.255.252 RTB(config-if)#no shutdown RTB(config-if)#interface Serial0/0/1 RTB(config-if)#clock rate 2000000 RTB(config-if)#ip address 20.0.0.1 255.255.255.252 RTB(config-if)#no shutdown RTB(config-if)#exit RTB(config)# router ospf 1 RTB(config-router)#network 192.168.2.0 0.0.0.255 area 0 RTB(config-router)#network 10.0.0.2 0.0.0.3 area 0 RTB(config-router)#network 20.0.0.1 0.0.0.3 area 0 (3)RTC路由器的配置 Routerenable Router#configure terminal Router(config)#hostname RTC RTC(config)#interface FastEthernet0/0 RTC(config-if)#ip address 192.168.3.1 255.255.255.0 RTC(config-if)#no shutdown RTC(config-if)#interface Serial0/0/0 RTC(config-if)#ip address 20.0.0.2 255.255.255.252 RTC(config-if)#no shutdown RTC(config-if)#exit RTC(config)# router ospf 1 RTC(config-router)#network 192.168.3.0 0.0.0.255 area 0 RTC(config-router)#network 20.0.0.2 0.0.0.3 area 0 3. OSPF的验证命令 (1) 显示路

文档评论(0)

1亿VIP精品文档

相关文档