Static route together with bgp ?

in CCNP
I realize that if routes are advertised during bgp, static routes are not necessary.
But what happens if you also put static route and bgp at the same time?
But what happens if you also put static route and bgp at the same time?
Comments
-
Xav Member Posts: 1 ■□□□□□□□□□
You are overlooking a fundamental concept of routing protocols - Administrative Distance. A static route will have an administrative distance of 1. This means it will usually always be preferred over a BGP Route.
Remember that AD is used when a router has learnt two paths to the same destination. BGP has a higher AD so the static route will be preferred and installed into the routing table.