[j-nsp] Junos Equiv to Network Statement

zhouyifeng zhuifeng0426 at hotmail.com
Mon Oct 6 19:59:36 EDT 2008


In addition, although it looks like redistribute route into BGP in the Cisco's view, but it's not exact the same. As we know in Cisco redistribute a route into BGP will cause it's Origin atttribute set to ?(incompetele)
And if you use 'export' in Junos environment it's attribute just set to I(if your route comes form IGP), So, I think an export policy without any other attribute's change is the same as Cisco's 'network' command 


> Date: Mon, 6 Oct 2008 15:02:15 -0400
> From: jonlooney at gmail.com
> To: dan at beanfield.com
> CC: juniper-nsp at puck.nether.net
> Subject: Re: [j-nsp] Junos Equiv to Network Statement
> 
> 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
> >
> _______________________________________________
> juniper-nsp mailing list juniper-nsp at puck.nether.net
> https://puck.nether.net/mailman/listinfo/juniper-nsp

_________________________________________________________________
一点即聊,MSN推出新功能“点我!”
http://im.live.cn/click/


More information about the juniper-nsp mailing list