[j-nsp] Announcing aggregate route via BGP to peers

John Center john.center at villanova.edu
Tue Mar 3 08:44:30 EST 2009


Hi,

I'm having a problem announcing a local aggregate route to BGP peers.  I 
only want to announce the aggregate route defined in the routing-options:

routing-options {
    ...
     aggregate {
         route 153.104.0.0/16 discard;
     }
    ...
}

policy-statement BGP-ANNOUNCE {
     term AGGREGATE {
         from protocol aggregate;
         then accept;
     }
     term ELSE-REJECT {
         then reject;
     }
}

What's happening is by specifying the aggregate route this way, it is 
appears to be announcing the aggregate of all the ebgp routes it sees:

admin at KC-JNM120-1a> show route protocol aggregate

inet.0: 277655 destinations, 559869 routes (277481 active, 0 holddown, 
337 hidden)
@ = Routing Use Only, # = Forwarding Use Only
+ = Active Route, - = Last Active, * = Both

153.104.0.0/16     *[Aggregate/130] 18w6d 00:22:28
                       Discard

inet.1: 116 destinations, 116 routes (116 active, 0 holddown, 0 hidden)

inet.2: 5194 destinations, 5195 routes (5192 active, 0 holddown, 2 hidden)

inet.4: 3516 destinations, 4180 routes (3512 active, 0 holddown, 4 hidden)

__juniper_private1__.inet.0: 12 destinations, 14 routes (7 active, 0 
holddown, 5 hidden)

__juniper_private2__.inet.0: 1 destinations, 1 routes (0 active, 0 
holddown, 1 hidden)

inet6.0: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden)

__juniper_private1__.inet6.0: 5 destinations, 7 routes (5 active, 0 
holddown, 0 hidden)


I tried to modify the BGP-ANNOUNCE policy by specifying the null AS:

policy-statement BGP-ANNOUNCE {
     term AGGREGATE {
         from {
             protocol aggregate;
             as-path LOCAL-AS;
         }
         then accept;
     }
     term ELSE-REJECT {
         then reject;
     }
}
as-path LOCAL-AS "()";

But, the ebgp routes were still being announced, with a next hop of 
SELF.  I'm at a loss on the best way to approach this problem.  I only 
want to announce the locally-defined aggregate, not all of the others.

Any help would be greatly appreciated.

     -John


-- 
John Center
Villanova University


More information about the juniper-nsp mailing list