We can use static routes in the following different situations.
- Static routing provides easy maintenance in smaller networks that are not expected to grow significantly.
- We can use static routing from stub networks where a network accessed by a single route, and the router has only one neighbor.
- Using a single default route, for a network that does not have a match with another route in the routing table. Default routes are used to send traffic to any destination further than the next upstream router.
- We can also use a static route to reduce the number of routes advertised by summarizing several nearby networks as one static route.
- The static routing can also be used to create a backup route in case a primary route link goes down.
The figure below illustrates the stub network and a default route connection. The Router0 is a stub router because there is only one path towards a destination network. Any network connected to this router would be a stub network. This means that local network of switch1 is a stub network and Router 1 is a stub router. So, running a routing protocol between Router0 and Rourter1 is a waste of resources. So, we can configure a static route between both routers. As you can see that Router1 has only one way to the destination network, so we can also configure the default route on Router 1 to point Router2 as the next hop address for all other networks.
Both IPv4 addresses and IPv6 addresses support the configuration of static routes. The Static routes are very useful when connecting to a specific remote network. So, the following types of IPv4 and IPv6 static routes we can use in different situations.