Configuring Route Iteration to the Default Route
Route iteration to the default route allows the unicast static routes, BGP routes, or multicast static routes whose next hops are not directly reachable to be iterated to the default route.
Usage Scenario
The next hops of unicast static routes, BGP routes, or multicast static routes may not be directly reachable. In this case, iteration is required so that such routes can be used for traffic forwarding. To allow the unicast static routes, BGP routes, or multicast static routes whose next hops are not directly reachable to be iterated to the default route, run the { ip | ipv6 } route recursive-lookup default-route command.
Procedure
- Run system-view
The system view is displayed.
- Run ip route recursive-lookup default-route protocol { static | bgp | msr } or ipv6 route recursive-lookup default-route protocol { static | bgp }
Route iteration to the default route is enabled.
By default, route iteration to the default route is not enabled.
- Run commit
The configuration is committed.
Checking the Configurations
After configuring route iteration to the default route, run the display current-configuration command in the system view to check configurations. The command output shows that route iteration to the default route is configured.
<HUAWEI> display current-configuration
#
ip route recursive-lookup default-route protocol static