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.