6 default-metric, 7 distance – Accton Technology ES4626 User Manual
Page 400

400
Example:
Switch# config terminal
Switch(config)# router rip
Switch(config-router)# default-information originate
13.4.3.6 default-metric
Command: default-metric
<value>
no default-metric
Function:
Set the default metric value of the introduced route. The “no default-metric”
command restores the default value to 1.
Parameter: <value>
is the metric value to be set, ranging between 1~16.
Default:
Default route metric value is 1
Command Mode:
Router mode and address-family mode
Usage Guide: default-metric
command is used for setting the default route metric value
of the routes from other routing protocols when distributed into the RIP routes. When
using the redistribute commands for introducing routes from other protocols, the default
route metric value specified by default-metric will be adopted if no specific route metric
value is set.
Example:
Set the default route metric value to 3 for introducing routes from other routing
protocols into the RIP routes.
Switch(config-router)#default-metric 3
Relevant Commands: redistribute
13.4.3.7 distance
Command: distance <number> [<A.B.C.D/M> ]
[
no distance [<A.B.C.D/M> ]
Function:
Set the managing distance with this command. The “no distance
[<A.B.C.D/M> ]
” command restores the default value to 120
Parameter: <number>
specifies the distance value, ranging between
1-255.<A.B.C.D/M> specifies the network prefix and its length.
specifies the access-list number or name
applied
Default:
The default managing distance of RIP is 120
Command Mode:
Router mode and address-family mode
Usage Guide:
In case there are routes from two different routing protocols to the same
destination, the managing distance is then used for selecting routes. The less the
managing distance of the route protocol is , the more reliable will be the route acquired
from the protocol.