Modifying default metric for routes, Redistributed into ospf version 3 – Brocade Virtual ADX Switch and Router Guide (Supporting ADX v03.1.00) User Manual

Page 175

Advertising
background image

Brocade Virtual ADX Switch and Router Guide

161

53-1003246-01

Enabling OSPFv3

7

The connected | static keywords specify the route source.

The route-map map-name parameter specifies the route map name. The following match
parameters are valid for OSPFv3 redistribution:

match metric number

The following set parameters are valid for OSPF redistribution:

set metric [+ | - ] number | none

set metric-type type-1 | type-2

NOTE

You must configure the route map before you configure a redistribution filter that uses the route
map.

NOTE

When you use a route map for route redistribution, the software disregards the permit or deny action
of the route map.

NOTE

For an external route that is redistributed into OSPFv3 through a route map, the metric value of the
route remains the same unless the metric is set by a set metric command inside the route map or
the default-metric num command. For a route redistributed without using a route map, the metric is
set by the metric parameter if set or the default-metric num command if the metric parameter is not
set.

Modifying default metric for routes redistributed into OSPF version 3

The default metric is a global parameter that specifies the cost applied by default to routes
redistributed into OSPFv3. The default value is 0.

If the metric parameter for the redistribute command is not set and the default-metric command is
set to 0, its default value, then routes redistributed from the various routing protocols have the
metric value of the protocol from which they are redistributed. For information about the
redistribute command, refer to

“Configuring route redistribution into OSPFv3”

on page 159.

NOTE

You also can define the cost on individual interfaces. The interface cost overrides the default cost.
For information about defining the cost on individual interfaces, refer to

“Modifying OSPFv3

interface defaults”

on page 168 and

“Changing the reference bandwidth for the cost on OSPFv3

interfaces”

on page 158.

To assign a default metric of 4 to all routes imported into OSPFv3, enter the following command:

Virtual ADX(config-ospf6-router)# default-metric 4

Syntax: [no] default-metric number

You can specify a value from 0 through 65535. The default is 0.

To restore the default metric to the default value, use the no form of this command.

Advertising