[j-nsp] BGP filter
Riccardo S
dim0sal at hotmail.com
Fri Feb 1 02:28:48 EST 2013
Or the reg-ex has to be written in this way ?
set as-path from-AS-65204 ".*65204";
set as-path from-AS-65205 ".*65205";
Is the follwoing correct for the local bgp announcement ?
set as-path from-local-router "()";
Tks
From: dim0sal at hotmail.com
To: juniper-nsp at puck.nether.net
Subject: BGP filter
Date: Thu, 31 Jan 2013 08:51:49 +0000
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