[j-nsp] BGP routing with JunOS
Marcin Garstka
marcinga at man.poznan.pl
Mon Jan 23 04:59:02 EST 2006
Hi Chris
Please find below short examples of policies which should work in your
case. You can apply the policies as import or export for some/all of your
BGP peers.
Marcin
At 00:08 2006-01-23, you wrote:
>Having used Cisco for years and after moving to Juniper last week, a few
>things have escaped my grasp with JunOS. A very rough start with the
>unit with compatibility with other units on our network, but, that is
>getting worked out.
>
>Does someone have a quick template for the following:
>
>* Match destination AS and set community
policy-statement your-policy {
term destination-as
from {
protocol bgp;
as-path path-destination-as;
}
then {
community set your-community;
accept; <--- do not use accept if you want next terms/policies
to evaluate the routes which match here
}
term transit-as
from {
protocol bgp;
as-path path-transit-as;
}
then {
community set your-community;
accept; <--- do not use accept if you want next terms/policies
to evaluate the routes which match here
}
}
community your-community members 1234:5678
as-path path-destination-as ".* 1234";
as-path path-transit-as ".* 1234 .+";
>* match transit AS and set community
>* use community to determine next-hop
policy-statement set-next-hop {
term set-next-hop
from {
protocol bgp;
community your-community;
}
then {
next-hop 1.2.3.4;
accept; <--- do not use accept if you want next terms/policies
to evaluate the routes which match here
}
}
>I want to remove my local communities prior to export, but, leave some
>communities when exported to particular peers.
You can use 'community del ...' to remove some communities and leave the rest.
>Thanks.
>_______________________________________________
>juniper-nsp mailing list juniper-nsp at puck.nether.net
>http://puck.nether.net/mailman/listinfo/juniper-nsp
More information about the juniper-nsp
mailing list