From: Jason Madsen (madsen.jason@gmail.com)
Date: Sun Dec 21 2008 - 14:06:25 ARST
Hi John, your regular expression looks fine. It will match routes
originated from AS 300 and its neighbor (AS 200). With the requirement you
listed you could have also done ^300_(200)?$. I'm sure there are other
ways to, but it's usually best to keep it simple. You can test your regular
expressions by setting up your network and comparing your show output from "
*show ip bgp regex xyz*" and "*show ip bgp*" where xyz represents your
regex.
Jason
On Sun, Dec 21, 2008 at 8:42 AM, John Edom <jedom123@gmail.com> wrote:
> Hi,
>
> if ebgp routers are connected like
>
> R1(as10)------------------R2
> (as20)----------------------R3(as30)-----------------R4(as40)
>
> I want to configure as-path filtering on R4 so that it only accept prefixes
> that are originated from AS30 or from AS30's neighboring AS. I am
> configuring
>
> ip as-p acc 10 per ^30_([0-9]+)?$
>
> is it right if not then please correct me
>
> Regards
>
>
> Blogs and organic groups at http://www.ccie.net
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
Blogs and organic groups at http://www.ccie.net
This archive was generated by hypermail 2.1.4 : Thu Jan 01 2009 - 12:53:09 ARST