After directly connected interfaces are configured and added to the routing table, then static or dynamic routing can be implemented.

Static routes are manually configured. They define an explicit path between two networking devices. Unlike a dynamic routing protocol, static routes are not automatically updated and must be manually reconfigured if the network topology changes. The benefits of using static routes include improved security and resource efficiency. Static routes use less bandwidth than dynamic routing protocols, and no CPU cycles are used to calculate and communicate routes. The main disadvantage to using static routes is the lack of automatic reconfiguration if the network topology changes.

There are two common types of static routes in the routing table:

A static route can be configured to reach a specific remote network. IPv4 static routes are configured using the ip route network mask {next-hop-ip | exit-intf}global configuration command. A static route is identified in the routing table with the code ‘S’.

A default static route is similar to a default gateway on a host. The default static route specifies the exit point to use when the routing table does not contain a path for the destination network.

A default static route is useful when a router has only one exit point to another router, such as when the router connects to a central router or service provider.

To configure an IPv4 default static route, use the ip route 0.0.0.0 0.0.0.0 {exit-intf | next-hop-ip} global configuration command.

The figure provides a simple scenario of how default and static routes can be applied.