[j-nsp] BGP filter

Riccardo S dim0sal at hotmail.com
Thu Jan 31 03:51:49 EST 2013


I'd like to filter BGP announcement based on the generating AS-path.
In the example below I'd like to permit outbound announcement only if the generating AS is 65204 or 65025:

[edit policy-options]
# set as-path from-AS-65204 "65204.*"
# set as-path from-AS-65205 "65205.*"

[edit policy-options policy-statement BGP-filter-out ]
# set term 1 from as-path from-AS-65204 
# set term 1 then accept
# set term 2 from as-path from-AS-65205
# set term 1 then accept
# set term accept-others then reject

[edit protocols bgp]
# set group EBGP export BGP-filter-out

Is there a better method to do it ?

Tks 		 	   		  


More information about the juniper-nsp mailing list