default-route

Use default-route to configure all interfaces running a RIP process to advertise a default route with a specified metric to RIP neighbors.

Use undo default-route to restore the default.

Syntax

default-route { only | originate } [ cost cost-value | route-policy route-policy-name ] *

undo default-route

Default

No default route is sent to RIP neighbors.

Views

RIP view

Predefined user roles

network-admin

Parameters

only: Advertises only a default route.

originate: Advertises both a default route and other routes.

cost-value: Specifies a cost for the default route, in the range of 1 to 15. The default is 1.

route-policy route-policy-name: Specifies a routing policy by its name, a case sensitive string of 1 to 63 characters. If you specify this option, the command advertises a default route only when a route in the routing table matches the routing policy.

Usage guidelines

A RIP router configured with this feature does not receive any default route from RIP neighbors.

Examples

# Configure all interfaces running RIP process 100 to send only a default route with a metric of 2 to RIP neighbors.

<Sysname> system-view
[Sysname] rip 100
[Sysname-rip-100] default-route only cost 2

Related commands

rip default-route