Creating a static route to network 0.0.0.0 0.0.0.0 is another way to set the gateway of last resort on a router. As with the ip default-network command, using the static route to 0.0.0.0 is not dependent on any routing protocols. However, ip routing must be enabled on the router.
Note: IGRP does not understand a route to 0.0.0.0. Therefore, it cannot propagate default routes created using the ip route 0.0.0.0 0.0.0.0 command. Use the ip default-network command to have IGRP propagate a default route.
EIGRP propagates a route to network 0.0.0.0, but the static route must be redistributed into the routing protocol.
In earlier versions of RIP, the default route created using the ip route 0.0.0.0 0.0.0.0 was automatically advertised by RIP routers. In Cisco IOS Software Release 12.0T and later, RIP does not advertise the default route if the route is not learned via RIP. It may be necessary to redistribute the route into RIP.
The default routes created using the ip route 0.0.0.0 0.0.0.0 command are not propagated by OSPF and IS-IS. Additionally, this default cannot be redistributed into OSPF or IS-IS using the redistribute command. Use the default-information originate command to generate a default route into an IS-IS or OSPF routing domain. For more detailed information on behavior of default routes with OSPF, refer to How Does OSPF Generate Default Routes?
Configure BGP to advertise a Default Route on Cisco Nexus Switches
Redistribute and Default-Information Originate Commands
The redistribute command configured under the BGP process injects all the routes that exist in the Routing Table by a specific source routing protocol (and permitted by a route-map) in the BGP RIB with the exception of the default route.
To additional allow the default route to be installed from the source routing protocol in the BGP RIB, the command default-information originate is required.
Once in the BGP RIB, the default route is advertised to all BGP neighbors unless specifically denied by an outbound filter configured per neighbor.
BGP configuration section shows redistribute eigrp and default-information originate in place.
Note: Before NX-OS version 6.2(2) for Nexus 7000 series and version 6.0(2)N3(1) for Nexus 5000 series, the command default-information originate was not required. Default route used to be also injected in BGP RIB only by the redistribute command.