Default route · Floating route · Recursive route · Fully specified route.

What is a static route?

A static route is manually configured by the administrator. The router does not learn it dynamically and does not update it automatically.

ip route <destination-net> <subnet-mask> <next-hop | interface>

Default route (0.0.0.0/0)

Used when the router has no more specific route in the routing table. Matches all destinations – also called gateway of last resort.

ip route 0.0.0.0 0.0.0.0 192.168.1.1

When to use: toward the internet, in stub networks, when there is only one way out of the network.

Floating static routes

A floating static route is a backup route that is only used if the primary route disappears – achieved by configuring a higher Administrative Distance than the primary route.

ip route 10.10.0.0 255.255.0.0 192.168.1.2 5

Recursive vs fully specified

Recursive: the router must resolve the next-hop recursively in the routing table.

ip route 10.20.0.0 255.255.255.0 192.168.1.2

Fully specified: the router gets both next-hop IP and interface.

ip route 10.20.0.0 255.255.255.0 GigabitEthernet0/0 192.168.1.2
Type Next-hop IP Interface Extra lookup
Recursive
Fully specified

CCNA memory rule

Default route     → 0.0.0.0/0
Floating route    → higher AD
Recursive         → next-hop only
Fully specified   → everything at once

Verification

show ip route
show running-config | section ip route