beautypg.com

Distance ospf, Distribute-list out – Dell PowerEdge M600 User Manual

Page 682

background image

688

OSPF Commands

www

.dell.com | support.dell.com

Example

The following example sets a value of 50 for the default metric.

console(config-router)#default-metric 50

distance ospf

Use the distance ospf command in Router OSPF Configuration mode to set the route preference
value of OSPF in the router. The range for the spectrum intra/inter/type1/type2 is 2-255, but values
must be assigned so that intrathe specified metric to its default value.

Syntax

distance ospf {intra |inter \ type1 | type2} integer

no distance ospf {intra |inter \ type1 | type2}

integer—The preference of the route. Lower route preference values are preferred when
determining the best route. (Range: 2-255)

Default Configuration

intra: 8, inter: 10, type1: 13, type2: 150

Command Mode

Router OSPF Configuration mode

User Guidelines

The OSPF specification (RFC 2328) requires that preferences must be given to the routes
learned via OSPF in the following order: intra < inter < type-1 < type-2.

Examples

The following examples set route preference values of OSPF in the router.

console(config-router)#distance ospf intra 4

console(config-router)#distance ospf type1 19

distribute-list out

Use the distribute-list out command in Router OSPF Configuration mode to specify the access list
to filter routes received from the source protocol. Use the no form of the command to remove the
specified source protocol from the access list.

Syntax

distribute-list accesslistname out {rip|static \ connected}