From: Steve Ohnmacht (gs.ohnmacht@gmail.com)
Date: Wed May 18 2005 - 20:17:15 GMT-3
It's been awhile since I've touched a juniper, but I'll take a crack
at this one... For junipers you would create a policy under the
policy-options section of the config, with your config below, a
juniper example would something like this:
Take this for what it's worth no guarantees.... :) Also, with junipers
any route manipualtion is done via "JUNOS policies". I had to look at
some old configs i have saved for reference... HTH...
policy-options {
as-path xxx-permit "^[0-9]+$"; <--- you may be able to represent
your regex with just an atom "."
as-path xxx-deny ".*";
policy-statement xxxx {
term permit {
from as-path xxx-permit;
then accept;
}
term deny {
from as-path xxx-deny;
then reject;
}
term deny-everything-else {
then reject;
}
}
}
On 5/18/05, nenad pudar <nenad.pudar@gmail.com> wrote:
> Hi
> I need to create generic filter list using regexp that will allow only
> routes from neighboring AS (+ eventually prepend from that AS)
>
> I am not looking for as-path from one specific AS but rather the
> generic filter list that can be applied for all existing and new bgp
> neighbors
>
> One of the way to configure this on Cisco router is
> ip as-path access-list xxx
> permit ^[0-9]+$
> deny .*
>
>
> thanks
>
> nenad
>
> nenad
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
This archive was generated by hypermail 2.1.4 : Fri Jun 03 2005 - 10:11:59 GMT-3