Routers add directly connected subnets to their routing table if the interface has an IP address in the up-up state. Static routes can be added to a router's table to learn routes to non-connected networks. Dynamic routing protocols allow routers to automatically exchange route information so that routes are learned without manual configuration.