F3726, F3211, F3174, R5135, R3816-HP Firewalls and UTM Devices Network Management Command Reference-6PW100

Table Of Contents
298
<Sysname> system-view
[Sysname] interface gigabitethernet 1/1
[Sysname-GigabitEthernet1/1] rip bfd enable destination 202.38.165.1
rip default-route
Use rip default-route to configure a RIP interface to advertise a default route with a specified metric.
Use undo rip default-route to disable the RIP interface from sending a default route.
Syntax
rip default-route { { only | originate } [ cost cost ] | no-originate }
undo rip default-route
Default
A RIP interface can advertise a default route if the RIP process runs is enabled to advertise a default route.
Views
Interface view
Default command level
2: System level
Parameters
only: Advertises only a default route.
originate: Advertises 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 route.
Usage guidelines
A RIP interface that is enabled to advertise a default does not receive any default routes from RIP
neighbors.
Examples
# Configure GigabitEthernet 0/1 to advertise only a default route with a metric of 2.
<Sysname> system-view
[Sysname] interface gigabitethernet 0/1
[Sysname-GigabitEthernet0/1] rip default-route only cost 2
Related commands
default-route
rip input
Use rip input to enable an interface to receive RIP messages.
Use undo rip input to disable an interface from receiving RIP messages.
Syntax
rip input
undo rip input