BGP表的确认方法

2019-01-23  本文已影响0人  singed

1,BGP的三张表

 邻居表(adjancy table)
 BGP表(forwarding database):BGP默认不做负载均衡,会选出一条最优的,放入路由表
 路由表(routing table)

 查询命令:
 BGP表:show ip bgp
 路由表:show ip route
 邻居表:show ip bgp summary(简单邻居),show ip bgp neighbor(详细邻居)

2, BGP转发表的确认方法

R18#show ip bgp 
BGP table version is 43, local router ID is 18.18.18.18
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, 
              r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter, 
              x best-external, a additional-path, c RIB-compressed, 
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

     Network          Next Hop            Metric LocPrf Weight Path
 *>i 1.1.1.1/32       19.19.19.19              0    100      0 100 i
 *>  2.2.2.2/32       192.168.188.8                          0 400 200 i
 * i                  19.19.19.19              0    100      0 100 200 i
 *>  18.18.18.18/32   0.0.0.0                  0         32768 i
 r>i 19.19.19.19/32   19.19.19.19              0    100      0 i
 *>i 192.168.12.0     19.19.19.19              0    100      0 100 ?
 *>i 192.168.13.0     19.19.19.19              0    100      0 100 ?
 *>  192.168.118.0    0.0.0.0                  0         32768 ?
 *>i 192.168.119.0    19.19.19.19              0    100      0 ?
 *>  192.168.188.0    0.0.0.0                  0         32768 ?
 *>  192.168.189.0    0.0.0.0                  0         32768 ?
 *>i 192.168.193.0    19.19.19.19              0    100      0 ?

1. BGP table version is 43
BGP表版本,随着BGP表的变更而递增

2. local router ID is 18.18.18.18
路由器IP地址

3. Status codes
3.1 常见

R18#sh ip bgp rib-failure 
  Network            Next Hop                      RIB-failure   RIB-NH Matches
19.19.19.19/32     19.19.19.19         Higher admin distance              n/a

3.2 不常见(待进一步查资料

4. Origin codes

5. 其它

6. 举例

     Network          Next Hop            Metric LocPrf Weight Path
 *>  2.2.2.2/32       192.168.188.8                          0 400 200 i
 * i                  19.19.19.19              0    100      0 100 200 i
     Network          Next Hop            Metric LocPrf Weight Path
 *>  18.18.18.18/32   0.0.0.0                  0         32768 i

参考链接:
http://www.cnblogs.com/guxh/p/8467760.html
https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/command/iproute_bgp-xe-3se-3850-cr-book/iproute_bgp-xe-3se-3850-cr-book_chapter_0100.html#wp1745539073
http://ccie.edufly.cn/ccieziliao/6356.html
https://blog.csdn.net/hrl7752/article/details/78084299

上一篇 下一篇

猜你喜欢

热点阅读