09-01-2010 06:08 AM - edited 09-01-2010 07:06 AM
NAT Pools:
1.1.1.0/24
2.2.2.0/24
3.3.3.0/24
SRX has interface in only one of these networks (1.1.1.1) with a BGP peer at 1.1.1.254.
Since 1.1.1.0/24 is active in our routing table, no problem getting that into our BGP advertisement.
What is the most appropriate way to inject the 2.2.2.0/24 and 3.3.3.0/24 NAT pools into BGP?
Static route with discard action? Static route with receive action? Other?
Solved! Go to Solution.
09-01-2010 08:06 AM
My standard method is to create a discard static route and use that for the BGP export.
There are other methods. Choose one you like best. I like discard, it's worked well for me.
Like this:
routing-options {
static {
route 2.0.0.0/24 discard;
}
}
policy-options {
policy-statement public-to-bgp {
from {
protocol static;
route-filter 2.0.0.0/24 exact;
}
then accept;
}
}
protocols {
bgp {
export public-to-bgp;
}
}
09-01-2010 11:46 AM