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

运维 网络运维
本文主要向大家介绍了配置下发BGP和IS-IS缺省路由后下端业务故障的解决,希望大家能够理解和掌握。

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. <NE80-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  
责任编辑:佚名 来源: 51CTO
相关推荐

2011-05-11 14:08:05

路由IS-IS

2011-04-08 17:22:40

路由

2011-05-11 14:28:31

IS-IS路由IP-Trunk

2011-05-11 14:37:41

IS-IS路由

2011-08-23 09:54:26

路由BGP

2011-05-11 14:23:07

路由IS-IS

2011-03-17 16:52:50

路由器故障

2023-12-10 17:02:34

2010-06-21 17:33:38

IS-IS路由协议

2011-04-11 16:04:38

BGPOSPF

2011-03-17 17:09:54

2011-06-07 11:30:31

路由

2011-03-14 17:26:29

BGP

2010-06-11 14:42:01

IS-IS路由协议

2011-04-15 10:01:39

2011-04-08 09:27:06

路由反射器

2011-04-08 18:01:58

路由

2010-06-11 14:51:34

IS-IS路由协议

2013-08-08 09:38:34

OSPF协议OSPF

2011-04-08 09:26:53

BGP路由器
点赞
收藏

51CTO技术栈公众号