设为首页收藏本站language 语言切换
查看: 3181|回复: 9
收起左侧

[分享] CCNA CCNP基础:OSPF问答篇

[复制链接]
发表于 2009-8-18 15:05:23 | 显示全部楼层 |阅读模式
1.在OSPF中做area range到底用不用再加一条到null0的静态地址?tcp/ip v1 中 p548 中line7 中说需要加一条手工静态路由到null0 , 可做实验发现,确实和楼上说的一样,不用手工做静态自动会发布
  答:不用,自动能生成一条null0的路由。
  iso 12.0(1) 以前需要手工加。
  以后的版本就是自动的生成。
  
  2.OSPF中rid修改后,如何生效,使用clear ip ospf process这条命令重新对ospf进程进行启动或重启路由器不好使?要重启所有使用ospf的router才会修改rid
  答:When OSPF is configured on a router, the router interfaces are polled and interfaces that are up are enabled with OSPF. As interfaces become more complex and the amount of interfaces increase, the time for interfaces to come up also increases, and there is a slight chance that OSPF will poll the interface before its state is fully up. This can result in the interface being up, but OSPF not being enabled on it. The default number of times OSPF polls the interfaces has been increased from 0 to 10 in order to avoid this situation.
  If you're running OSPF and upgrading to Cisco IOS® Software release 12.0(8)S, you'll notice the ip ospf interface-retry 0 is automatically added to every interface. This value is the old default value. The new default number of retry times is 10. The router displays the old behavior so the command shows up in the configuration.
  Note: The ip ospf interface-retry 0 command is harmless, and OSPF continues to function normally whether or not you change the interface retry value.
  Solution
  Only configure ip ospf interface-retry 10 on all interfaces if you don't want this command to appear in your router's configuration. As 10 is the new default value the command will no longer appear in the configuration.
  This problem is documented as Cisco bug ID CSCdp64394. If you are a registered customer and you have logged in, you can view the bug details.
  
  3.OSPF不能建立邻居关系的原因?
  答:建立neighbor考虑如下的因素
  1、hello包间隔不一致
  2、netmask不匹配(p2p和vlink除外)
  3、E-bit(处理外部路由的规定)
  4、router dead time
  5、auth
环境 Cisco Router
  问题 许多文档提到OSPF可以很好的支持不连续子网。但许多人认为OSPF中只有虚拟链路才容许使用不连续子网。这种看法对吗?
  解答 不对,OSPF在所有的AREA中都支持不连续子网,并且OSPF路由报中是含有子网信息的。对于域内路由,ABR会汇总自己域的拓扑信息并转发给BACKBONE,BACKBONE再将这些信息转送到其他的域。另外,域内的每一台路由器都会有一个描述本域的数据库,之后,路由器用SPF算法根据这些数据库计算出最小路径树进而推出路由表。虚拟链路是用于连接骨干域(BACKBONE)和非骨干域的。

环境 Cisco router
  问题 请问在OSPF中为什么要用loopback接口,有什么优点吗?
  解答 如果在一个OSPF路由器上配置了loopback接口,该路由器会以此口的IP地址作为OSPF ROUTER ID,尽管路由器上可能还有更大的IP地址(OSPF协议在选举ROUTER ID时以大为优)。这是由于loopback接口不会down,比其它接口更加稳定。所以OSPF会优选loopback接口地址作为ROUTER ID,并且将发现的第一个较大地址作为ROUTER ID。


环境 Cisco router
  问题 我能否将内部BGP路由分发到OSPF中?
  解答 这是不行的,因为这样可能会导致产生环路。
 环境 Cisco router
  问题 OSPF是否支持secondary地址
  解答 支持,但secondary地址和主地址必须在同一个域中。且如果主地址没有起OSPF,secondary地址也不能起OSPF
  
 环境 Cisco router
  问题 我要在ISDN链路上运行OSPF,能否采用snapshot routing?
  解答 不能,snapshot路由只能在距离向量的路由协议上使用,而OSPF是连接状态路由协议。对于OSPF你可以用ip ospf demand circuit.
环境 Cisco router
  问题 我在做OSPF和EIGRP分发时,用redistribute eigrp 100和redistribute ospf 100。但分发失败。
  解答 原因是metric没有设置,路由分发时一定要设置metric
环境 Cisco router
  问题 OSPF如何做路由总结?
  解答 对于域内路由采用area range命令。对于外部进入OSPF的路由,采用summary-address命令。
环境 Cisco Router
  问题 Cisco是否支持RFC1253的OSPF MIB定义?
  解答 Cisco在IOS9.21以后的版本支持RFC1253的OSPF MIB定义。
环境 3Com Netbuilder
   Cisco router
  问题 3Com的Netbuilder和Cisco路由器之间跑OSPF over FR不能工作。
  解答 在Cisco路由器串口上设置ip ospf network broad同时在Netbuilder串口上设置fully-mesh。或Cisco串口设为ip ospf net point-to-point,netbuilder设为non-meshed。
use a route-map to limit redistribution in OSPF

! /* match only 172.16.10.x and 172.16.11.0 subnets */
  !
  access-list 1 permit 172.16.10.0 0.0.1.255
  !
  !
  ! /* use access-list 1 to determine what gets matched */
  !
  route-map LoopbacksOnly permit 10
  match ip address 1
  !
  !
  ! /* redistribute connected networks, any and all subnets, */
  ! /* and seed it as E2 type. Note that throughout your */
  ! /* OSPF domain, your loopbacks will have a metric of 20 */
  ! /* 20 is the default metric when you redistribute into */
  ! /* OSPF. Except for BGP routes which get a metric of 1. */
  ! /* Also use the route-map LoopbacksOnly to selectively */
  ! /* redistribute only the ones we want to redistribute. */
  !
  router ospf 200
  redistribute connected subnets metric-type E2 route-map LooopbacksOnly

  环境 Cisco IOS Routers
  问题 OSPF 虚拟链路的概念和使用
  解答 OSPF路由协议是支持区域化分层的。通常,所有AREA都必须和骨干区域(AREA0)相连,但在某些特殊情况下,骨干区域和某个AREA并没有直接连接。这时需要虚拟链路(virtual link)进行连接.在虚拟链路的两端的路由器都是区域边界路由器(ABR)。OSPF将虚拟链路看成是unnumbered的点到点的网络。必须要注意,虚拟链路不能穿透一个STUB域.
发表于 2009-8-18 18:12:18 | 显示全部楼层
[s:57]
沙发 2009-8-18 18:12:18 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2011-12-12 16:40:06 | 显示全部楼层
板凳 2011-12-12 16:40:06 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2011-12-18 19:14:06 | 显示全部楼层
地板 2011-12-18 19:14:06 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2011-12-20 15:32:33 | 显示全部楼层
5# 2011-12-20 15:32:33 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2011-12-24 15:04:57 | 显示全部楼层
6# 2011-12-24 15:04:57 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2012-3-21 06:38:45 | 显示全部楼层
7# 2012-3-21 06:38:45 回复 收起回复
回复 支持 反对

使用道具 举报

 成长值: 58795
发表于 2013-1-30 22:29:09 | 显示全部楼层
8# 2013-1-30 22:29:09 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2013-2-7 14:56:39 | 显示全部楼层
9# 2013-2-7 14:56:39 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2013-2-8 11:56:11 | 显示全部楼层
10# 2013-2-8 11:56:11 回复 收起回复
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2025-2-24 11:24 , Processed in 0.067162 second(s), 21 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

快速回复 返回顶部 返回列表