From: Mahmud, Yasser (YMahmud@Solutions.UK.ATT.com)
Date: Mon Nov 25 2002 - 17:36:46 GMT-3
Hi,
Running 12.1 (17) GD
BGP table is
r7#sh ip bgp
BGP table version is 7, local router ID is 7.7.7.7
Status codes: s suppressed, d damped, h history, * valid, > best, i -
internal
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 33.0.0.0 3.3.3.1 1000 0 1 3 4
33 i
*> 133.0.0.0 3.3.3.1 1000 0 1 3 4 5
i
*> 195.195.0.0 3.3.3.1 1000 0 1 3 4 i
*> 195.195.0.0/22 3.3.3.1 1000 0 1 {3,4,2}
i
*> 195.195.1.0 3.3.3.1 0 1 2 i
*> 200.200.2.0 3.3.3.1 0 1 3 i
r7#
When I try to match routes with AS 3, it doesn't include the route with
AS-SET {3,4,2} as below
In the expression _3_ the first _ should match {
Does anyone know why isn't it matching (have checked and the 2nd _ is
matching comma)
r7#sh ip bgp quote-regexp _3_
BGP table version is 7, local router ID is 7.7.7.7
Status codes: s suppressed, d damped, h history, * valid, > best, i -
internal
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 33.0.0.0 3.3.3.1 1000 0 1 3 4
33 i
*> 133.0.0.0 3.3.3.1 1000 0 1 3 4 5
i
*> 195.195.0.0 3.3.3.1 1000 0 1 3 4 i
*> 200.200.2.0 3.3.3.1 0 1 3 i
The only way I can get it to match is using (_|{)3_ as below
r7#sh ip bgp quote-regexp (_|{)3_
BGP table version is 7, local router ID is 7.7.7.7
Status codes: s suppressed, d damped, h history, * valid, > best, i -
internal
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 33.0.0.0 3.3.3.1 1000 0 1 3 4
33 i
*> 133.0.0.0 3.3.3.1 1000 0 1 3 4 5
i
*> 195.195.0.0 3.3.3.1 1000 0 1 3 4 i
*> 195.195.0.0/22 3.3.3.1 1000 0 1 {3,4,2}
i
*> 200.200.2.0 3.3.3.1 0 1 3 i
Have checked as below and the _ is matching the closing }
r7#sh ip bgp quote-regexp {3,4,2_
BGP table version is 7, local router ID is 7.7.7.7
Status codes: s suppressed, d damped, h history, * valid, > best, i -
internal
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 195.195.0.0/22 3.3.3.1 1000 0 1 {3,4,2} i
r7#
Thks
Yasser
This archive was generated by hypermail 2.1.4 : Tue Dec 03 2002 - 07:23:10 GMT-3