[j-nsp] Junos Equiv to Network Statement
Dan Armstrong
dan at beanfield.com
Tue Oct 7 09:40:43 EDT 2008
Thanks for all the replies.
I guess when you think about it, the IOS network statement really is
just an 'odd' place to put a policy that states 'redirect these IGP
routes into iBGP as long as the prefix length matches exactly'.
Jonathan Looney wrote:
> The JUNOS software allows you to export any active(*) routes from your
> routing table to any peer. You choose the routes to export via a
> policy statement.
>
> The default policy is to export routes received from other BGP peers.
> (Obviously, it won't reflect routes received from one iBGP peer to
> another iBGP peer unless route reflection is enabled.)
>
> So, if you want to send a certain network to a particular peer (or
> group of peers), just write a policy statement that does this and
> apply it to the session.
>
> For example, this policy permits the route 10.0.0.0/16:
> + policy-options {
> + policy-statement permit-a-network {
> + term the-network {
> + from {
> + route-filter 10.0.0.0/16 exact;
> + }
> + then accept;
> + }
> + }
> + }
>
> And, this applies it to the neighbor 172.17.1.1:
> + protocols {
> + bgp {
> + group a-group {
> + neighbor 172.17.1.1 {
> + export permit-a-network;
> + }
> + }
> + }
> + }
>
> This is only a very brief overview of policy and BGP. You really
> should consult some of Juniper's on-line training or one of the
> Juniper books for more detail.
>
> -Jon
>
> (*) - In recent JUNOS versions, I believe there is also a way to send
> inactive routes, but I think that is irrelevant to your question.
>
>
> On Mon, Oct 6, 2008 at 2:32 PM, Dan Armstrong <dan at beanfield.com> wrote:
>
>> This may sound like a dumb question, but in Junos, what is the preferred
>> method for getting a network into BGP? The equivalent of the Cisco
>> "network" statement...
>>
>> All of the examples I can find basically redistribute other routing
>> protocols into BGP... which for some reason strikes me as wrong. Is there
>> another method?
>>
>>
>> _______________________________________________
>> juniper-nsp mailing list juniper-nsp at puck.nether.net
>> https://puck.nether.net/mailman/listinfo/juniper-nsp
>>
>>
More information about the juniper-nsp
mailing list