[j-nsp] BGP import policy to accept prefixes from advertising AS
only.
John Senior
js at irishbroadband.ie
Wed Oct 13 20:21:15 EDT 2004
Hi all,
I am sure I came across this a while ago but can't now find it, I don't think
I imagined it!
Anyway, is it possible to create a BGP import policy statement that will
only accept prefixes from the advertising AS without having to specify
the AS number? I.e. can I create a policy statement that is generic that
I can apply to a bunch of peers without having to create a specific one
for each peer?
e.g.
policy-statement only-allow-routes-originating-in-peer-as {
term 10 {
from {
as-path "^originating AS number$"
}
then accept;
term 20 {
then reject;
}
}
protocols bgp {
group ebgp-peer1 {
peer-as 12345;
import only-allow-routes-originating-in-peer-as;
blah blah etc etc.
}
group ebgp-peer2 {
peer-as 23456;
import only-allow-routes-originating-in-peer-as;
blah blah etc etc.
}
}
For peer1 I only want as-path ^12345$ and similarly for peer2 I only want ^23456$.
Would I achieve this with configuration groups?
All the best,
John.
--
John Senior <js at irishbroadband.ie>
More information about the juniper-nsp
mailing list