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.