开放的BGP路由器

有时需要能查一些BGP的AS PATH信息,有一个[http://www.routeviews.org/](“Route Views Project”)项目。可以直接登录到一些zebra上直接查一下。
bgp_view
bgp的命令可以参考quagga的手册,简单的比如:

  1. 查看某个网段的bgp信息
show ip bgp 8.8.8.8/24
route-views.isc.routeviews.org> show ip bgp 8.8.8.8/24  
BGP routing table entry for 8.8.8.0/24  
Paths: (11 available, best #11, table Default-IP-Routing-Table)  
Not advertised to any peer  
4436 209 15169  
198.32.176.13 from 198.32.176.13 (69.22.143.244)  
Origin IGP, metric 13, localpref 100, valid, external  
Community: 209:209 209:888 209:40822 4436:999 4436:31413  
Last update: Mon Apr  7 12:08:01 2014  
  
14361 15169  
198.32.176.10 from 198.32.176.10 (66.36.224.11)  
Origin IGP, localpref 100, valid, external  
Last update: Thu Apr  3 19:28:25 2014  
  
19151 15169  
198.32.176.164 from 198.32.176.164 (66.186.193.1)  
Origin IGP, metric 0, localpref 100, valid, external  
Community: 19151:3000 19151:63003 19151:65040  
Last update: Fri Mar 21 21:18:48 2014  
  
2914 15169  
198.32.176.14 from 198.32.176.14 (129.250.0.5)  
Origin IGP, metric 4, localpref 100, valid, external  
Community: 2914:420 2914:1008 2914:2000 2914:3000  
Last update: Fri Mar 21 21:16:04 2014
  • 从as-path中过滤特定as的路由
show  ip bgp regexp 15169$
route-views.isc.routeviews.org> show  ip bgp regexp 15169$  
BGP table version is 0, local router ID is 198.32.176.5  
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,  
r RIB-failure, S Stale, R Removed  
Origin codes: i - IGP, e - EGP, ? - incomplete  
  
Network          Next Hop            Metric LocPrf Weight Path  
*  1.0.0.0/24       198.32.176.13           13             0 4436 209 15169 i  
*                   198.32.176.10                          0 14361 15169 i  
*                   198.32.176.164           0             0 19151 15169 i  
*                   198.32.176.14           94             0 2914 15169 i  
*                   198.32.176.20                          0 6939 15169 i  
*                   198.32.176.177                         0 7575 15169 i  
*                   198.32.176.24                          0 2497 15169 i  
*                   198.32.176.95            0             0 8218 15169 i  
*                   198.32.176.206                         0 5580 15169 i  
*                   198.32.176.134           0             0 4826 15169 i  
*>                  198.32.176.207                         0 36351 15169 i  
*  1.1.1.0/24       198.32.176.13           13             0 4436 209 15169 i  
*                   198.32.176.10                          0 14361 15169 i  
*                   198.32.176.164           0             0 19151 15169 i  
*                   198.32.176.14           94             0 2914 15169 i  
*                   198.32.176.20                          0 6939 15169 i  
*                   198.32.176.177                         0 7575 15169 i  
*                   198.32.176.24                          0 2497 15169 i  
*                   198.32.176.95            0             0 8218 15169 i  
*                   198.32.176.206                         0 5580 15169 i  
*                   198.32.176.134           0             0 4826 15169 i  
*>                  198.32.176.207                         0 36351 15169 i  
*  1.2.3.0/24       198.32.176.13           13             0 4436 209 15169 i  
*                   198.32.176.10                          0 14361 15169 i  
*                   198.32.176.164           0             0 19151 15169 i  
*                   198.32.176.14           94             0 2914 15169 i  
*                   198.32.176.20                          0 6939 15169 i  
*                   198.32.176.177                         0 7575 15169 i  
*                   198.32.176.24                          0 2497 15169 i  
*                   198.32.176.95            0             0 8218 15169 i  
*                   198.32.176.206                         0 5580 15169 i  
*                   198.32.176.134           0             0 4826 15169 i  
*>                  198.32.176.207                         0 36351 15169 i  
*  8.8.4.0/24       198.32.176.13           13             0 4436 209 15169 i  
*                   198.32.176.10                          0 14361 15169 i  
*                   198.32.176.164           0             0 19151 15169 i  
*                   198.32.176.14            4             0 2914 15169 i  
*                   198.32.176.20                          0 6939 15169 i  
*                   198.32.176.177                         0 7575 15169 i  
*                   198.32.176.24                          0 2497 15169 i  
*                   198.32.176.95            0             0 8218 15169 i  
*                   198.32.176.206                         0 5580 15169 i  
*                   198.32.176.207                         0 36351 15169 i  
*>                  198.32.176.134           0             0 4826 15169 i  
*  8.8.8.0/24       198.32.176.13           13             0 4436 209 15169 i  
*                   198.32.176.10                          0 14361 15169 i  
*                   198.32.176.164           0             0 19151 15169 i  
*                   198.32.176.14            4             0 2914 15169 i  
*                   198.32.176.20                          0 6939 15169 i  
*                   198.32.176.177                         0 7575 15169 i  
*                   198.32.176.24                          0 2497 15169 i  
*                   198.32.176.95            0             0 8218 15169 i  
*                   198.32.176.206                         0 5580 15169 i  
*                   198.32.176.207                         0 36351 15169 i  
*>                  198.32.176.134           0             0 4826 15169 i