The whole purpose of routing is to process the packets between two different IP networks. Let's discuss the fundamentals of routing before getting into logical routers. Every router will build a routing table, which will have information about destination network, next hop router, metrics, and administrative distance. There are two methods of building a routing table:
Static routing: Static routing is manually created and updated by a network administrator. Based on the network topology, we will be in need of configuring a static route on each and every router for end-to-end network connectivity. Even though this gives full control over the routing, it would be an extremely tedious job to configure routes on a large network.
Dynamic routing: Dynamic routing is created and updated by a routing protocol running on a router; Routing Information Protocol (RIP) and Open Shortest Path First (OSPF) are some examples. Dynamic routing protocols are intelligent enough...