解析配置下发BGP和IS-IS缺省路由后下端业务故障
创始人
2024-07-29 06:40:36
0

BGP会将BGP的直连路由下发到核心路由表,因此重分发BGP路由的时候,会重分发BGP的直连路由,下面就让我们我们来看一下配置下发BGP和IS-IS缺省路由后下端业务故障的解决方法。

网络环境

 

解析配置下发BGP和IS-IS缺省路由后下端业务故障

NE80-1、NE80-2、NE40-1和NE40-2四台设备构成口字形组网结构。其中,NE80-1与NE80-2为Level-1-2路由器,NE40-1和NE40-2为Level-1路由器。

NE80-1为AS100的出口路由器,与AS200内的路由器NETWORK之间运行EBGP协议,在NE80-1和NE80-2上给NE40-1和NE40-2下发缺省路由后,出现路由环路。

故障分析

步骤 1 在NE80-1设备上执行命令display bgp routing-table,检查NE80-1的BGP路由表,有一条到NETWORK的BGP缺省路由,如下所示,说明BGP缺省路由下发成功。

  1. [NE80-1] display bgp routing-table  
  2.  
  3. Total Number of Routes: 1  
  4.  
  5. BGP Local router ID is 10.10.10.1  
  6.  
  7. Status codes: * - valid, > - best, d - damped,  
  8.  
  9. h - history, i - internal, s - suppressed, S - Stale  
  10.  
  11. Origin : i - IGP, e - EGP, ? - incomplete  
  12.  
  13. Network NextHop MED LocPrf PrefVal Path/Ogn  
  14.  
  15. * 0.0.0.0 10.10.10.2 0 0 200i 

步骤 2 在NE40-1和NE40-2上分别执行命令display ip routing-table,检查NE40-1和NE40-2的IP路由表,如下所示,NE40-1的缺省路由指向了NE80-1,NE40-2的缺省路由指向了NE80-2,说明NE80-1和NE80-2下发IS-IS缺省路由成功。

  1. [NE40-1-isis-1] display ip routing-table  
  2.  
  3. Route Flags: R - relay, D - download to fib  
  4.  
  5. ------------------------------------------------------------------------------  
  6.  
  7. Routing Tables: Public  
  8.  
  9. Destinations : 11 Routes : 11  
  10.  
  11. Destination/Mask Proto Pre Cost Flags NextHop Interface  
  12.  
  13.  
  14. 0.0.0.0/0 ISIS 15 10 D 2.2.2.1 Serial1/0/0  
  15.  
  16. 1.1.1.0/24 ISIS 15 20 D 2.2.2.1 Serial1/0/0  
  17.  
  18. 2.2.2.0/24 Direct 0 0 D 2.2.2.2 Serial1/0/0  
  19.  
  20. 2.2.2.1/32 Direct 0 0 D 2.2.2.1 Serial1/0/0  
  21.  
  22. 2.2.2.2/32 Direct 0 0 D 127.0.0.1 InLoopBack0  
  23.  
  24. 3.3.3.0/24 ISIS 15 20 D 4.4.4.2 Serial1/0/1  
  25.  
  26. 4.4.4.0/24 Direct 0 0 D 4.4.4.1 Serial1/0/1  
  27.  
  28. 4.4.4.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0  
  29.  
  30. 4.4.4.2/32 Direct 0 0 D 4.4.4.2 Serial1/0/1  
  31.  
  32. 127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0  
  33.  
  34. 127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0  
  35.  
  36. [NE40-2-isis-1] display ip routing-table  
  37.  
  38. Route Flags: R - relay, D - download to fib  
  39.  
  40. ------------------------------------------------------------------------------  
  41.  
  42. Routing Tables: Public  
  43.  
  44. Destinations : 11 Routes : 11  
  45.  
  46.  
  47. Destination/Mask Proto Pre Cost Flags NextHop Interface  
  48.  
  49. 0.0.0.0/0 ISIS 15 10 D 3.3.3.1 Serial1/0/0   
  50.  
  51. 1.1.1.0/24 ISIS 15 20 D 3.3.3.1 Serial1/0/0  
  52.  
  53. 2.2.2.0/24 ISIS 15 20 D 4.4.4.1 Serial1/0/1  
  54.  
  55. 3.3.3.0/24 Direct 0 0 D 3.3.3.2 Serial1/0/0  
  56.  
  57. 3.3.3.1/32 Direct 0 0 D 3.3.3.1 Serial1/0/0  
  58.  
  59. 3.3.3.2/32 Direct 0 0 D 127.0.0.1 InLoopBack0  
  60.  
  61. 4.4.4.0/24 Direct 0 0 D 4.4.4.2 Serial1/0/1  
  62.  
  63. 4.4.4.1/32 Direct 0 0 D 4.4.4.1 Serial1/0/1   
  64.  
  65. 4.4.4.2/32 Direct 0 0 D 127.0.0.1 InLoopBack0  
  66.  
  67. 127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0  
  68.  
  69. 127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0 

#p#

步骤 3 在NE80-1和NE80-2上分别执行命令display ip routing-table,检查NE80-1和NE80-2的IP路由表,如下所示,发现NE80-1的缺省路由指向了NE80-2,NE80-2的缺省路由指向了NE80-1,形成了路由环路。

  1.  display ip routing-table  
  2.  
  3. Route Flags: R - relay, D - download to fib  
  4.  
  5. ------------------------------------------------------------------------------  
  6.  
  7. Routing Tables: Public  
  8.  
  9. Destinations : 14 Routes : 14  
  10.  
  11. Destination/Mask Proto Pre Cost Flags NextHop Interface  
  12.  
  13. 0.0.0.0/0 ISIS 15 10 D 1.1.1.2 Serial1/0/1  
  14.  
  15. 1.1.1.0/24 Direct 0 0 D 1.1.1.1 Serial1/0/1  
  16.  
  17. 1.1.1.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0  
  18.  
  19. 1.1.1.2/32 Direct 0 0 D 1.1.1.2 Serial1/0/1  
  20.  
  21. 2.2.2.0/24 Direct 0 0 D 2.2.2.1 Serial1/0/2  
  22.  
  23. 2.2.2.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0  
  24.  
  25. 2.2.2.2/32 Direct 0 0 D 2.2.2.2 Serial1/0/2  
  26.  
  27. 3.3.3.0/24 ISIS 15 20 D 1.1.1.2 Serial1/0/1  
  28.  
  29. 4.4.4.0/24 ISIS 15 20 D 2.2.2.2 Serial1/0/2  
  30.  
  31. 10.10.10.0/24 Direct 0 0 D 10.10.10.1 Serial1/0/0  
  32.  
  33. 10.10.10.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0  
  34.  
  35. 10.10.10.2/32 Direct 0 0 D 10.10.10.2 Serial1/0/0  
  36.  
  37. 127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0  
  38.  
  39. 127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0  
  40.  
  41. [NE80-2] dislay ip routing-table  
  42.  
  43. Route Flags: R - relay, D - download to fib  
  44.  
  45. ------------------------------------------------------------------------------  
  46.  
  47. Routing Tables: Public  
  48.  
  49. Destinations : 11 Routes : 11  
  50.  
  51. Destination/Mask Proto Pre Cost Flags NextHop Interface  
  52.  
  53. 0.0.0.0/0 ISIS 15 10 D 1.1.1.1 Serial1/0/0  
  54.  
  55. 1.1.1.0/24 Direct 0 0 D 1.1.1.2 Serial1/0/0  
  56.  
  57. 1.1.1.1/32 Direct 0 0 D 1.1.1.1 Serial1/0/0  
  58.  
  59. 1.1.1.2/32 Direct 0 0 D 127.0.0.1 InLoopBack0  
  60.  
  61. 2.2.2.0/24 ISIS 15 20 D 1.1.1.1 Serial1/0/0  
  62.  
  63. 3.3.3.0/24 Direct 0 0 D 3.3.3.1 Serial1/0/1  
  64.  
  65. 3.3.3.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0  
  66.  
  67. 3.3.3.2/32 Direct 0 0 D 3.3.3.2 Serial1/0/1  
  68.  
  69. 4.4.4.0/24 ISIS 15 20 D 3.3.3.2 Serial1/0/1  
  70.  
  71. 127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0  
  72.  
  73. 127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0 

步骤 4 虽然上行设备通过EBGP给NE80-1下发了BGP缺省路由,但BGP协议的优先级比IS-IS协议的优先级低(BGP的优先级默认为255而IS-IS是10),所以,又将缺省路由的下一跳指向了NE80-2,这样就形成了路由环路。

#p#

处理步骤

在NE80-2设备上执行命令undo default-route-advertise将下发的缺省路由去除后,NE80-1上执行命令display ip routing-table,可以看到NE80-1的缺省路由的下一跳已经变为10.10.10.2,该路由环路被解除,如下所示。

  1. [RouterA] display ip routing-table  
  2.  
  3. Route Flags: R - relay, D - download to fib  
  4.  
  5. ------------------------------------------------------------------------------  
  6.  
  7. Routing Tables: Public  
  8.  
  9. Destinations : 14 Routes : 14  
  10.  
  11. Destination/Mask Proto Pre Cost Flags NextHop Interface  
  12.  
  13. 0.0.0.0/0 BGP 255 0 D 10.10.10.2 Serial1/0/0  
  14.  
  15. 1.1.1.0/24 Direct 0 0 D 1.1.1.1 Serial1/0/1  
  16.  
  17. 1.1.1.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0  
  18.  
  19. 1.1.1.2/32 Direct 0 0 D 1.1.1.2 Serial1/0/1  
  20.  
  21. 2.2.2.0/24 Direct 0 0 D 2.2.2.1 Serial1/0/2  
  22.  
  23. 2.2.2.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0  
  24.  
  25. 2.2.2.2/32 Direct 0 0 D 2.2.2.2 Serial1/0/2  
  26.  
  27. 3.3.3.0/24 ISIS 15 20 D 1.1.1.2 Serial1/0/1  
  28.  
  29. 4.4.4.0/24 ISIS 15 20 D 2.2.2.2 Serial1/0/2  
  30.  
  31. 10.10.10.0/24 Direct 0 0 D 10.10.10.1 Serial1/0/0  
  32.  
  33. 10.10.10.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0  
  34.  
  35. 10.10.10.2/32 Direct 0 0 D 10.10.10.2 Serial1/0/0  
  36.  
  37. 127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0  
  38.  
  39. 127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0 

 案例总结

对于不同的协议来说,路由的优先级是有区别的,配置缺省路由时要注意避免出现因路由协议优先级而造成的路由环路,尤其是配置IS-IS路由时。

【编辑推荐】

  1. 路由器故障:策略路由配置不生效 
  2. 路由器故障:POS接口修改MTU值无法生效 
  3. 路由器故障:POS接口无法收到对端的报文
  4. 路由器故障:ACL反掩码配置错误 策略路由失效
  5. 路由器故障:MP Group成员接口状态频繁Up/Down  

相关内容

热门资讯

如何允许远程连接到MySQL数... [[277004]]【51CTO.com快译】默认情况下,MySQL服务器仅侦听来自localhos...
如何利用交换机和端口设置来管理... 在网络管理中,总是有些人让管理员头疼。下面我们就将介绍一下一个网管员利用交换机以及端口设置等来进行D...
施耐德电气数据中心整体解决方案... 近日,全球能效管理专家施耐德电气正式启动大型体验活动“能效中国行——2012卡车巡展”,作为该活动的...
Windows恶意软件20年“... 在Windows的早期年代,病毒游走于系统之间,偶尔删除文件(但被删除的文件几乎都是可恢复的),并弹...
20个非常棒的扁平设计免费资源 Apple设备的平面图标PSD免费平板UI 平板UI套件24平图标Freen平板UI套件PSD径向平...
德国电信门户网站可实时显示全球... 德国电信周三推出一个门户网站,直观地实时提供其安装在全球各地的传感器网络检测到的网络攻击状况。该网站...
为啥国人偏爱 Mybatis,... 关于 SQL 和 ORM 的争论,永远都不会终止,我也一直在思考这个问题。昨天又跟群里的小伙伴进行...
《非诚勿扰》红人闫凤娇被曝厕所... 【51CTO.com 综合消息360安全专家提醒说,“闫凤娇”、“非诚勿扰”已经被黑客盯上成为了“木...