beautypg.com

9 distance, Distance – PLANET XGS3-24042 User Manual

Page 506

background image


33-145

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

33.9 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 to 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.

Example:

This manual is related to the following products: