beautypg.com

3 distance (rip) – CANOGA PERKINS 9175 Command Reference User Manual

Page 195

background image

CanogaOS Command Reference

14-2

Default

Built-in, automatic metric translations, as appropriate for each routing protocol.


Command Mode

Router configuration


Usage

The

Default

-metric command is used in conjunction with the redistribute router configuration

command to cause the current routing protocol to use the same metric value for all redistributed routes.

A default metric helps solve the problem of redistributing routes with incompatible metrics. Whenever

metrics do not convert, using a default metric provides a reasonable substitute and enables the

redistribution to proceed.


Examples

The following example shows a switch using both the RIP and the Open Shortest Path First (OSPF)

routing protocols. The example advertises OSPF-derived routes using RIP and assigns the

OSPF-derived routes a RIP metric of 10.

router rip

default-metric 10

redistribute ospf

!


Related Commands

redistribute (RIP)

14.3 distance (RIP)

To define an administrative distance for routes that are inserted into the routing table, use the distance

command in router configuration mode. To return the administrative distance to its default distance

definition, use the no form of this command.


Command Syntax

distance distance prefix/prefix-length [access-list-name]

no distance

distance

Administrative distance. An integer from 1 to 255. (Routes with a

distance value of 255 are not installed in the routing table.)

prefix

IP prefix for the originator of the imcoming routing updates.

prefix-length

Prefix length for the originator.

access-list-name

(Optional) Named access list to be applied to incoming routing

updates.


Default

For more information on default administrative distances, see the Usage Guidelines section.