From: Darren Johnson (dazza_johnson@yahoo.co.uk)
Date: Wed Jan 09 2008 - 22:01:53 ARST
Hey Dwayne, hope all is good.
To accept routes that have traversed AS 1 you could use _1_ (which means AS
1 can be anywhere in the AS path). To match only routes that originated in
AS 1, you are correct, use _1$. Incidentally, you can do a match on either
of the above with _1_|_1$ with the | (pipe sign) acting as an 'or' for the
two expressions. I just tried it out here:
route-server>sh ip bgp regexp _80_|_80$
BGP table version is 4848697, local router ID is 12.0.1.28
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
* 3.0.0.0 12.123.45.252 0 7018 701 703 80
i
* 12.123.13.241 0 7018 701 703 80
i
* 12.123.9.241 0 7018 701 703 80
i
* 12.123.142.124 0 7018 701 703 80
i
* 12.123.33.249 0 7018 701 703 80
i
* 12.123.41.250 0 7018 701 703 80
i
* 12.123.134.124 0 7018 701 703 80
i
* 12.123.37.250 0 7018 701 703 80
i
* 12.123.29.249 0 7018 701 703 80
i
* 12.123.17.244 0 7018 701 703 80
i
* 12.123.37.250 0 7018 701 703 80
1295 1295 i
* 12.123.29.249 0 7018 701 703 80
1295 1295 i
* 12.123.17.244 0 7018 701 703 80
1295 1295 i
* 12.123.5.240 0 7018 701 703 80
1295 1295 i
*> 12.123.1.236 0 7018 701 703 80
1295 1295 i
* 12.123.137.124 0 7018 701 703 80
1295 1295 i
* 12.123.145.124 0 7018 701 703 80
1295 1295 i
* 12.123.133.124 0 7018 701 703 80
1295 1295 i
* 12.123.139.124 0 7018 701 703 80
1295 1295 i
* 12.123.21.243 0 7018 701 703 80
1295 1295 i
* 12.123.25.245 0 7018 701 703 80
1295 1295 i
Try telnetting to route-server.ip.att.net and have a go.
Dazzler
-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
Athaide, Dwayne
Sent: 09 January 2008 02:31
To: groupstudy
Subject: BGP regex
If you want to accept routes that have traversed or originated in AS 1
would _1$ match only the routes that have originated in AS1?
Thanks
This archive was generated by hypermail 2.1.4 : Fri Feb 01 2008 - 10:37:58 ARST