0

I've been reading about static and dynamic routing and can't help but wondering if it's possible to have both static and dynamic routing in a router?

Would it cause a conflict if we have both types of routing in a single router?

Is this a common/best practice?

  • 2
    Yes you can have both static and dynamic routing on a router. In fact, we use static combined with BGP protocol on our main routers. It can of course cause conflict, so you will have to look out for duplicates. – user56700 Sep 27 at 6:31
7

Routers learn about routes to other networks either from other routers via routing protocols, or the routes are configured by the administrator, i.e. static routes.

There are many reasons why you might have both on your router. As you may already know, routers choose a particular route based on the best (longest) match to the destination. This is irrespective of whether the route is dynamic or static.

If both static and dynamic routes are the best match, routers use an attribute called Administrative Distance to choose the route. In almost all cases, static routes are preferred over dynamic ones.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.