R0106-HP MSR Router Series Layer 3 - IP Routing Command Reference(V7)

79
Views
Interface view
Predefined user roles
network-admin
mdc-admin
Parameters
only: Advertises only a default route.
originate: Advertises both a default route and other routes.
cost: Specifies a cost for the default route, in the range of 1 to 15. The default is 1.
no-originate: Advertises only non-default routes.
Usage guidelines
An interface that is enabled to advertise a default route does not receive any default route from RIP
neighbors.
Examples
# Configure GigabitEthernet 2/1/1 to advertise only a default route with a metric of 2.
<Sysname> system-view
[Sysname] interface gigabitethernet 2/1/1
[Sysname-GigabitEthernet2/1/1] rip default-route only cost 2
# Configure GigabitEthernet 2/1/1 to advertise a default route with a metric of 4 and other routes.
<Sysname> system-view
[Sysname] interface gigabitethernet 2/1/1
[Sysname-GigabitEthernet2/1/1] rip default-route originate cost 4
Related commands
default-route
rip enable
Use rip enable to enable RIP on an interface.
Use undo rip enable to disable RIP on an interface.
Syntax
rip process-id enable [ exclude-subip ]
undo rip enable
Default
RIP is disabled on an interface.
Views
Interface view
Predefined user roles
network-admin