Showing results for 
Search instead for 
Did you mean: 

Some query about router

Hi team,

We are getting this 2 route

over static:

Over bgp :

1) Pls confirm whether both will be installed in my route table

2) for traafic with dest: will take my bgp route ?

3) fopr traffic with dest: will take my static route >


1 Reply 1

Routing is done based on the longest match. With both routes installed (the bgp route will only be installed when the route is valid) then a packet to will match the BGP-route with a longer match then the static route. So the BGP-route is used. A packet for that won't match a learned route from a routing-protocol will match your static route and that one is used for the packet.

Don't stop after you've improved your network! Improve the world by lending money to the working poor:

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: