beautypg.com

12 distance (ospf) – CANOGA PERKINS 9175 Command Reference User Manual

Page 220

background image

CanogaOS Command Reference

15-11

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

redistributed connected and static routes is set to 0.


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 router in autonomous system using both the Routing Information

Protocol (RIP) and the OSPF routing protocols. The example advertises OSPF-derived routes using RIP

and assigns the Internal Gateway Protocol (IGP)-derived routes a RIP metric of 10.

router rip

default-metric 10

redistribute ospf


Related Commands

redistribute (OSPF)

15.12 distance (OSPF)

To define Open Shortest Path First (OSPF) route administrative distances based on route type, use the

distance command in router configuration mode. To restore the default value, use the no form of this

command.


Command Syntax

distance {distance | ospf [external dist1] [inter-area dist2] | [intra-area dist3]}

no distance {distance | ospf}

distance

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

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

external dist1

(Optional) Sets the distance for routes from other routing domains,

learned by redistribution. Range is 1 to 255. The default value is 110.

inter-area dist2

(Optional) Sets the distance for all routes from one area to another

area. Range is 1 to 255. The default value is 110.

intra-area dist3

(Optional) Sets the distance for all routes within an area. Range is 1 to

255. The default value is 110.


Default

dist1: 110