From: Kevin M. Woods (kev@xxxxxxx)
Date: Thu Jul 20 2000 - 12:58:21 GMT-3
To match confederations in an AS_PATH you can use "()" just as
you see them, however use "\" to make them literal characters.
An example being:
ip as-path access-list deny 10 ^\(2\)
Use "sh ip bgp re <RE>" to test your regular expressions to be
sure they do what you want.
Kevin
// Hi,all:
// I have such a bgp route table:
//
// r2#sh ip bgp
// BGP table version is 6, local router ID is 198.3.3.2
// Status codes: s suppressed, d damped, h history, * valid, > best, i - intern
al
// Origin codes: i - IGP, e - EGP, ? - incomplete
//
// Network Next Hop Metric LocPrf Weight Path
// *> 10.0.0.0 172.16.23.3 0 30 i
// *> 11.0.0.0 172.16.24.4 0 100 0 (4) 1 ?
// *> 192.168.168.0 172.16.24.2 0 100 0 (2) 1 i
// *> 192.169.169.0 172.16.24.3 0 100 0 (3) 30 i
// *> 192.170.170.0 172.16.24.4 0 100 0 (4) 1 i
//
// I'm puzzled with how to filter the route from the confederation peer 2 with
// ip as-path?
//
// Thanks a lot.
// Best Regards.
//
// Jansen
// jysh@teamsun.com.cn
This archive was generated by hypermail 2.1.4 : Thu Jun 13 2002 - 08:23:56 GMT-3