Routing - default routing using DHCP

When configuring Routing on a Cisco router, it is possible to create a static default route that will use information from a DHCP server to define the next hop IP address. This can be done using the following command:

R1(config)#ip route 0.0.0.0 0.0.0.0 dhcp

This command will create a static default route using the next hop IP address that is received via DHCP. This is an acceptable way of configuring the default route of a particular device assuming a DHCP server is available. This will often be seen on routers that connect to the internet, where the ISP provides a DHCP service to inform the router of its next hop IP.

Now this assumes that a DHCP server is available to deliver a default route as part of its DHCP offering, beyond just an IP address.

Links:

https://forum.networklessons.com/t/how-to-configure-static-route-on-cisco-ios-router/872/52?u=lagapides

https://www.cisco.com/c/en/us/td/docs/ios/iproute_pi/command/reference/iri_book/iri_pi1.html#wp1037816