
24-33
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
24.8 distance
Command:
distance <
number
> [<
A.B.C.D/M>
] [
<access-list-name | access-list-number >
]
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 to 255.
<
A.B.C.D/M>
specifies the network prefix and its length.
<access-list-name | access-list-number >
specifies the access-list number or name applied.