3.7.g Implement and troubleshoot AS path manipulations

3.7.g [iii] Regexp

for those looking to practice with regexp in bgp here is a place that’s accessible from telnet…

route-views.routeviews.org

type in rviews for the username and you are in… this is an excellent way to get comfortable with regexp…

here is also a link to a tutorial on INE to get started…

http://blog.ine.com/2008/01/06/understanding-bgp-regular-expressions/

Username: rviews
route-views>
route-views>sh ip bgp
BGP table version is 1950528233, local router ID is 128.223.51.103
Status codes: s suppressed, d damped, h history, * valid, > best, i – internal,
r RIB-failure, S Stale
Origin codes: i – IGP, e – EGP, ? – incomplete

Network          Next Hop            Metric LocPrf Weight Path
r> 0.0.0.0          208.74.64.40                           0 19214 12989 2828 i
*  1.0.0.0/24       193.0.0.56                             0 3333 3356 15169 i
*                   194.85.102.33                          0 3277 15169 i
*                   194.85.40.15                           0 3267 15169 i
*                   129.250.0.11             6             0 2914 15169 i
*                   128.223.253.10                         0 3582 3701 15169 i
*                   4.69.184.193             0             0 3356 15169 i
*                   209.124.176.223                        0 101 101 15169 i
*                   69.31.111.244            0             0 4436 15169 i
*                   207.46.32.34                           0 8075 15169 i
*                   66.59.190.221                          0 6539 577 15169 i
*                   12.0.1.63                              0 7018 15169 i
*                   208.74.64.40                           0 19214 25973 15169 i
*                   203.181.248.168                        0 7660 15169 i
*                   66.185.128.48          112             0 1668 15169 i

route-views>sh ip bgp regexp ^6079$
BGP table version is 1950768453, local router ID is 128.223.51.103
Status codes: s suppressed, d damped, h history, * valid, > best, i – internal,
r RIB-failure, S Stale
Origin codes: i – IGP, e – EGP, ? – incomplete

Network          Next Hop            Metric LocPrf Weight Path
*  24.136.0.0/19    207.172.6.20             5             0 6079 i
*>                  207.172.6.1              5             0 6079 i
*  24.148.0.0/18    207.172.6.20             5             0 6079 i
*>                  207.172.6.1              5             0 6079 i
*  24.148.64.0/19   207.172.6.20             5             0 6079 i
*>                  207.172.6.1              5             0 6079 i
*  64.121.0.0/16    207.172.6.20             5             0 6079 i
*>                  207.172.6.1              5             0 6079 i
*  65.78.0.0/17     207.172.6.20             5             0 6079 i
*>                  207.172.6.1              5             0 6079 i
*  65.79.128.0/19   207.172.6.20             5             0 6079 i