Routing

 View Only
last person joined: 2 days ago 

Ask questions and share experiences about ACX Series, CTP Series, MX Series, PTX Series, SSR Series, JRR Series, and all things routing, including portfolios and protocols.
  • 1.  BGP Routing Policy Issue

    Posted 01-23-2011 14:15

    Hello Everyone,

     

    I'm new to BGP configuration and I have set up a lab to attempt to teach myself more about BGP and how it's configured. In my lab, I have two J4350s connected and I'm using BGP to communicate between the two. I can get BGP to establish, however the problem is when I try to export my static routes to my peer (I show nothing!!).

     

    I know this is a simple config, but I've gone through numerous sites, books, configurations, and I can't figure out what it is I am overlooking. Any help would be greatly appreciated as it would really help me get my head wrapped around the simple BGP configurations.

     

    Can someone please look at the two configs I have attached and let me know what silly mistake I have made?

     

    Thank you!

    Attachment(s)

    txt
    Austin.txt   2 KB 1 version
    txt
    Houston.txt   4 KB 1 version


  • 2.  RE: BGP Routing Policy Issue

    Posted 01-23-2011 16:18

    Just to clarify, I am just simply trying to get my static / direct routes to be sent by BGP, and then put into the routing table at each peer.



  • 3.  RE: BGP Routing Policy Issue

    Posted 01-23-2011 21:47

    Try adding a reject at the end of your policy.  You need to stop the policy from trying to process more lines



  • 4.  RE: BGP Routing Policy Issue

    Posted 01-23-2011 23:10

    Thanks for the suggestion! I will give this a shot tomorrow and reply with the status.



  • 5.  RE: BGP Routing Policy Issue
    Best Answer

    Posted 01-23-2011 23:32

    This is a pretty simple issue.  Your configuration is doing exactly as you told it to do.

     

    Take a look at how routing policies are evaluated.  The terms are evaluated top to bottom.  Any routes that are matched and the action is "accept" it will be advertise to the peers.  There is an invisible policy at the very end which has a default action.

     

    http://www.juniper.net/techpubs/software/junos/junos92/swconfig-policy/how-a-routing-policy-is-evaluated.html#id-10131707

     

    Also take a look at the Junos default routing policies and actions.

     

    http://www.juniper.net/techpubs/software/junos/junos94/swconfig-policy/default-routing-policies-and-actions.html

     

    The important thing to take a look at is what is the default behavior for BGP.  As you would expect BGP only imports and exports active BGP routes.  In order to advertise anything else you have to create an export policy.

     

    Looking at your "show route" command there's just simply no static routes 😉  So you aren't advertising anything to your peers.

     

    A good command to look at what routes are being advertised or received from a BGP peer is "show route advertising-protocol" or "show route receive-protocol"

     

    http://www.juniper.net/techpubs/software/junos/junos93/swcmdref-protocols/show-route-advertising-protocol.html

    http://www.juniper.net/techpubs/software/junos/junos91/swcmdref-protocols/show-route-receive-protocol.html

     

    I think what you're trying to do is advertise the ge-0/0/1 interface.  Junos has two different interface types.  Local and Direct.  The Local interface is simply the actual IP addresses that's assigned to the interface with a /32 netmask.  The Direct interface is the network address of the interface.

     

    Change your route policy to the following:

     

     

    policy-options {
        policy-statement send-statics {
            term 1 {
                from protocol local;
                then accept;
            }
        }
    }

     

    There's no need to add a "reject" at the end of the policy as suggested by kshymkiw  .  This would break the policy due to the behavior of the invisible default policy at the end that will accept any active BGP routes.

     



  • 6.  RE: BGP Routing Policy Issue

    Posted 01-24-2011 06:47

    JNPRdhanks,

     

    Thank you very much for such a detailed reply. I will be looking to try this later today.

     

    I knew I was overlooking something simple... Smiley Sad

     


     

    Looking at your "show route" command there's just simply no static routes 😉  So you aren't advertising anything to your peers.

     


    but this will help me better understand the Juniper policys as well as configuring BGP. (And I appreciate you providing the links too! I didn't see this during my searching.)

     

    If all goes well I will be sure to come back and make this as resolved.