You need to first set the community on the direct routes, then export them:
term tag_connected { from { protocol direct; } then { community add origin-customer; } } term customers { from { protocol [ static aggregate direct ]; community origin-customer; } then accept; } then reject; HTH, evt > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Lev Garantin > Sent: Friday, August 10, 2007 9:27 AM > To: juniper-nsp@puck.nether.net > Subject: [j-nsp] BGP communities for direct routes > > Hello, > > I'm new to JunOS (coming from Foundry) and am enjoying > the experience a lot. > > I just have a small problem, I can't seem to figure > out how to add a (BGP) community to a direct route so > that I can export it together with aggregate and > static routes in a community based BGP export policy. > > i.e. > I want to export 192.168.0.0/24, 192.168.1.0/24 and > 192.168.2.0/24 to an iBGP neighbor. > > I'm using Junos 7.6. > > [EMAIL PROTECTED] show interfaces ae0.2 > vlan-id 2; > family inet { > address 192.168.0.1/24; > address 192.168.1.1/24; > } > > [EMAIL PROTECTED] show routing-options static route > 192.168.2.0/24 > discard; > no-install; > community 65000:10; > > [EMAIL PROTECTED] show policy-options policy-statement > RR-customers > term customers { > from { > protocol [ static aggregate ]; > community origin-customer; > } > then accept; > } > then reject; > > [EMAIL PROTECTED] show policy-options community > origin-customer > members 65000:10; > > Any pointer are appreciated. > Thanks, Lev > > > > > ______________________________________________________________ > ______________________ > Park yourself in front of a world of choices in > alternative vehicles. Visit the Yahoo! Auto Green > Center. > http://autos.yahoo.com/green_center/ > > > > ______________________________________________________________ > ______________________ > Park yourself in front of a world of choices in alternative > vehicles. Visit the Yahoo! Auto Green Center. > http://autos.yahoo.com/green_center/ > _______________________________________________ > juniper-nsp mailing list juniper-nsp@puck.nether.net > https://puck.nether.net/mailman/listinfo/juniper-nsp > _______________________________________________ juniper-nsp mailing list juniper-nsp@puck.nether.net https://puck.nether.net/mailman/listinfo/juniper-nsp