R3303-HP HSR6800 Routers Layer 3 - IP Routing Command Reference
33
Default command level
2: System level
Parameters
value: Specifies a default metric for redistributed routes, in the range of 0 to 16.
Usage guidelines
When you use the import-route command to redistribute routes from other protocols without specifying
a metric, the metric specified by the default cost command applies.
Examples
# Configure the default metric for redistributed routes as 3.
<Sysname> system-view
[Sysname] rip 100
[Sysname-rip-100] default cost 3
Related commands
import-route
default-route
Use default-route to configure all the interfaces under the RIP process to advertise a default route with the
specified metric to RIP neighbors.
Use undo default-route to disable all the interfaces under the RIP process from sending a default route.
Syntax
default-route { only | originate } [ cost cost ]
undo default-route
Default
No default route is sent to RIP neighbors.
Views
RIP view
Default command level
2: System level
Parameters
only: Advertises only a default route.
originate: Advertises both a default route and other routes.
cost: Specifies a cost for default route, in the range of 1 to 15. The default is 1.
Usage guidelines
The RIP router with this feature configured does not receive any default routes from RIP neighbors.
Examples
# Configure all the interfaces under RIP process 100 to send only a default route with a metric of 2 to RIP
neighbors.
<Sysname> system-view