01-09-2009 12:03 AM
Hi
As you can see below is my bgp filter not working.
I still get full bgp table including default route.
does anybody have any idea?
best regards
IGLU
***************************************
protocols {
bgp {
group ISP-A{
type external;
import ACC-DEFAULT-ONLY;
peer-as xxxx;
neighbor xxx.xxx.xxx.xxx;
}
}
}
policy-options {
policy-statement ACC-DEFAULT-ONLY {
from {
route-filter 0.0.0.0/0 exact accept;
}
}
***************************************
Solved! Go to Solution.
01-09-2009 12:55 AM
Hi,
The reason you are still accepting the full BGP table is that the default policy for BGP is to accept all routes learnt via BGP.
To achieve what you want, use something like the following:
policy-statement ACC-DEFAULT-ONLY {
term accept-default {
from {
route-filter 0.0.0.0/0 exact accept;
}
}
term reject-others {
then reject;
}
}
HTH,
/david