cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
206
Views
0
Helpful
1
Replies

Some query about router

Hi team,

We are getting this 2 route

over static: 10.10.0.0/16

Over bgp : 10.10.10.20/28

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

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

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

Br/Subhojit

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 10.10.10.25 will match the BGP-route with a longer match then the static route. So the BGP-route is used. A packet for 10.10.57.5 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:
http://www.kiva.org/invitedby/karsteni

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:

Review Cisco Networking products for a $25 gift card