Junos OS

last person joined: 20 hours ago 

Ask questions and share experiences about Junos OS.
  • 1.  Problems Sending BGP Routes Properly to a BGP Neighbor

    Posted 12-11-2009 04:56

    Everyone,

     

    I am trying to send specific aggregate BGP routes to a BGP Neighbor and while all the routes I want send are be advertised to the BGP neighbor properly, I am trying to figure out why some other routes are being sent to the neighbor when I do not have them in my BGP filter list.  Some routes that are being sent incorrectly are:

     

    64.211.132.116/30

    129.39.22.7/32

    135.89.0.0/16

    161.155.128.0/17

    165.77.21.0/24

    170.226.149.192/27

     

    I cannot figure out why this is happening when my policy statement states not to send these.  Please find below my policy statement configuration.  If anyone could let me know what I am doing wrong, I would greatly appreciate it. 

     

    Policy Statement

     

    policy-statement send-bgp-routes {
        term summary-only-aggregate {
            from {
                route-filter 135.8.0.0/16 exact;
                route-filter 135.9.0.0/16 exact;
                route-filter 135.10.0.0/16 exact;
                route-filter 135.11.0.0/16 exact;
                route-filter 135.20.0.0/16 exact;
                route-filter 135.27.0.0/16 exact;
                route-filter 135.35.0.0/16 exact;
                route-filter 135.55.0.0/16 exact;
                route-filter 135.56.0.0/16 exact;
                route-filter 135.60.0.0/16 exact;
                route-filter 135.64.0.0/16 exact;
                route-filter 135.74.0.0/16 exact;
                route-filter 135.105.0.0/16 exact;
                route-filter 135.122.0.0/15 exact;
                route-filter 135.124.0.0/15 exact;
                route-filter 135.148.0.0/16 exact;
                route-filter 135.169.0.0/16 exact;
                route-filter 143.243.0.0/16 exact;
                route-filter 148.147.0.0/16 exact;
                route-filter 149.49.0.0/16 exact;
                route-filter 155.184.0.0/16 exact;
                route-filter 192.234.243.0/24 exact;
                route-filter 198.152.0.0/16 exact;
            }
            then accept;
        }
        term summary-only-aggregate-reject {
            from {
                route-filter 135.8.0.0/16 longer;
                route-filter 135.9.0.0/16 longer;
                route-filter 135.10.0.0/16 longer;
                route-filter 135.11.0.0/16 longer;
                route-filter 135.20.0.0/16 longer;
                route-filter 135.27.0.0/16 longer;
                route-filter 135.35.0.0/16 longer;
                route-filter 135.55.0.0/16 longer;
                route-filter 135.56.0.0/16 longer;
                route-filter 135.60.0.0/16 longer;
                route-filter 135.64.0.0/16 longer;
                route-filter 135.74.0.0/16 longer;
                route-filter 135.105.0.0/16 longer;
                route-filter 135.122.0.0/15 longer;
                route-filter 135.124.0.0/15 longer;
                route-filter 135.148.0.0/16 longer;
                route-filter 135.169.0.0/16 longer;
                route-filter 143.243.0.0/16 longer;
                route-filter 148.147.0.0/16 longer;
                route-filter 149.49.0.0/16 longer;
                route-filter 155.184.0.0/16 longer;
                route-filter 192.234.243.0/24 longer;
                route-filter 198.152.0.0/16 longer;
            }
            then reject;
        }
    }

     

     

    Advertised routes to the BGP Neighbor

     

    inet.0: 2153 destinations, 4785 routes (2152 active, 0 holddown, 14 hidden)
      Prefix                  Nexthop              MED     Lclpref    AS path
    * 64.211.132.116/30       Self                                    64609 ?
    * 129.39.22.7/32          Self                                    64606 ?
    * 135.8.0.0/16            Self                 1                  I
    * 135.9.0.0/16            Self                                    I
    * 135.10.0.0/16           Self                                    I
    * 135.11.0.0/16           Self                                    I
    * 135.20.0.0/16           Self                                    I
    * 135.27.0.0/16           Self                                    I
    * 135.35.0.0/16           Self                                    I
    * 135.55.0.0/16           Self                                    I
    * 135.56.0.0/16           Self                                    {64606} ?
    * 135.60.0.0/16           Self                                    I
    * 135.64.0.0/16           Self                                    I
    * 135.65.0.0/16           Self                                    I
    * 135.74.0.0/16           Self                                    I
    * 135.89.0.0/16           Self                                    I
    * 135.105.0.0/16          Self                                    I
    * 135.122.0.0/15          Self                                    I
    * 135.124.0.0/15          Self                                    I
    * 135.148.0.0/16          Self                                    I
    * 135.169.0.0/16          Self                                    I
    * 148.147.0.0/16          Self                 1                  I
    * 149.49.0.0/16           Self                 1                  I
    * 155.184.0.0/16          Self                                    I
    * 161.155.128.0/17        Self                                    I
    * 165.77.21.0/24          Self                                    I
    * 170.226.149.192/27      Self                                    64606 ?
    * 192.234.243.0/24        Self                 1                  I
    * 198.152.0.0/16          Self                                    {64606} ?
       



  • 2.  RE: Problems Sending BGP Routes Properly to a BGP Neighbor
    Best Answer

    Posted 12-11-2009 05:16

    Hi,

     

    you do not have last term which would reject ot accept any routes not accepted or rejected by your first two terms. In this case default last term becomes active. For eBGP it is to re-advertise all routes to eBGP which were lerned from iBGP or eBGP neighbors.So just extend your policy appropriately.

     

    If this worked for you please flag my post as an "Accepted Solution" so others can benefit. A kudo would be cool if you think I earned it.

     

    Kind Regards

    Michael Pergament



  • 3.  RE: Problems Sending BGP Routes Properly to a BGP Neighbor

    Posted 12-11-2009 05:24

    Yes, that did the trick.  Thanks!