Log in to ask questions, share your expertise, or stay connected to content you value. Don’t have a login? Learn how to become a member.
I am trying to filter BGP announces I am receiving. While the filter seems to be working, system still stores all the received routes in memory.
> show bgp summaryGroups: 1 Peers: 1 Down peers: 0Table Tot Paths Act Paths Suppressed History Damp State Pendinginet.0 272954 0 0 0 0 0Peer AS InPkt OutPkt OutQ Flaps Last Up/Dwn State|#Active/Received/Accepted/Damped...XX.XX.153.57 XX21 54435 43 0 0 17:25 0/272954/0/0 0/0/0/0
I can see alll these 200k routes when I look for hidden routes using 'show route hidden' command.
This is causing 'rpd' process to use 100mb of memory instead of 10mb which it originally uses when it starts.
When I do a similar configuration in Cisco routers, the incoming route advertisements get discarded altogether. Is this normal for a Juniper router? is there a way to discard all incoming route advertisements?
One Simple solution is to ask your ISP to advertise only default route or limited no. of routes(ISP Customer routes), if you are not interested in receiving the full internet table or your router is not capable of supporting it(don't have enough memory).
juniper routers only discard incoming BGP routes if are causing sanity check fail means AS loop etc otherwise all incoming routes are stored in RIB-IN table and after import policy is imposed routes are placed in RIB-local (used for forwarding). The advantage is that we dont have to clear bgp neighbourship after imposing import policy, enforcing neighbour to redisvertisement bgp routes, so that routes are passed through import policy.
You can acheive this by configuring the bgp neighbor with "keep none". With this config, routes rejected by policy will no longer be stored in memory. But, then you loose the immediate routing-table update, due to inbound policy changes. All of those routes would have to be re-learned.
Where or how can I see how many memory the table is taking?
@Iglu wrote:HiWhere or how can I see how many memory the table is taking? best regardsIglu