126 CHAPTER 6: IP ROUTING PROTOCOL OPERATION
route, RIP will set the cost to the default cost, specified by the default cost
parameter.
Perform the following configurations in RIP View.
By default, the cost
value
for the RIP imported route is 1.
Setting the RIP Preference
Each routing protocol has its own preference by which the routing policy selects
the optimal route from the routes of different protocols. The greater the
preference value, the lower the preference. The preference of RIP can be set
manually.
Perform the following configurations in RIP View.
By default, the preference of RIP is 100.
Setting Additional Routing Metrics
The additional routing metric is the input or output routing metric added to an RIP
route. It does not change the metric value of the route in the routing table, but
adds a specified metric value when the interface receives or sends a route.
Perform the following configuration in Interface View:
By default, the additional routing metric added to the route when RIP sends the
packet is 1. The additional routing metric when RIP receives the packet is 0.
The metricout configuration takes effect only on the RIP routes learnt by the
router and RIP routes generated by the router itself, which means that it has no
effect on the routes imported to RIP by other routing protocols.
Table 124 Configuring the Default Cost for the Imported Route
Operation Command
Configure default cost for the imported route default cost
value
Restore the default cost of the imported route undo default cost
Table 125 Setting the RIP Preference
Operation Command
Set the RIP Preference preference
value
Restore the default value of RIP preference undo preference
Table 126 Setting Additional Routing Metrics
Operation Command
Set the additional routing metric of the route when the
interface receives an RIP packet
rip metricin
value
Disable the additional routing metric of the route when the
interface receives an RIP packet
undo rip metricin
Set the additional routing metric of the route when the
interface sends an RIP packet
ip metricout
value
Disable the additional routing metric of the route when the
interface sends an RIP packet
undo rip metricout