![](https://pdfstore-manualsonline.prod.a.ki/pdfasset/1/8b/18b1e1e7-4363-4706-bb94-6eba3a993996/18b1e1e7-4363-4706-bb94-6eba3a993996-bg48a.png)
1162 CHAPTER 77: RIP CONFIGURATION COMMANDS
By default, the default metric of redistributed routes is 0.
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.
Related commands: import-route (RIP view).
Examples # Set the default metric for redistributed routes to 3.
<Sysname> system-view
[Sysname] rip 100
[Sysname-rip-100] default cost 3
default-route originate
Syntax default-route originate cost value
undo default-route originate
View RIP view
Parameters value: Cost of the default route, in the range of 1 to 15.
Description Use the
default-route originate cost command to advertise a default route
with the specified metric to RIP neighbors.
Use the
undo default-route originate command to disable the sending of a
default route.
By default, no default route is sent to RIP neighbors.
The RIP router with this feature configured will not receive any default routes from
RIP neighbors.
Examples # Send a default route with a metric of 2.
<Sysname> system-view
[Sysname] rip 100
[Sysname-rip-100] default-route originate cost 2
# Disable default route sending.
[Sysname-rip-100] undo default-route originate
display rip
Syntax display rip [ process-id | vpn-instance vpn-instance-name ]
View Any view