On Thu, 28 Apr 2011 08:50:41 -0500
falz <m...@falz.net> wrote:
> ####################################
> PREFIX_ORIGINATE        = "{ 10.171.0.0/19, 101.192.144.0/24,
> 91.199.248.0/24 }" COMMUNITY_TEST          = "65000:666"
> 
> network 10.171.0.0/19
> network 101.192.144.0/24
> network 91.199.248.0/22
> 
> # <default allow/deny stuff from sample conf is here>
> 
> match from any prefix $PREFIX_ORIGINATE set localpref 140
> match from any prefix $PREFIX_ORIGINATE set community $COMMUNITY_TEST
> match from any prefix $PREFIX_ORIGINATE set med 12
> ####################################

The filter you wrote will set the attributes on prefixes you receive
from other bgp speakers.

Try:

network 10.171.0.0/19 set { localpref 140 metric 12 community 65000:666 }
etc..


/Martin

Reply via email to