Modify redistribution metric type, Modify administrative distance – Brocade Virtual ADX Switch and Router Guide (Supporting ADX v03.1.00) User Manual

Page 147

Advertising
background image

Brocade Virtual ADX Switch and Router Guide

133

53-1003246-01

Configuring OSPF

6

Modify redistribution metric type

The redistribution metric type is used by default for all routes imported into OSPF unless you
specify different metrics for individual routes using redistribution filters. Type 2 specifies a big
metric (three bytes). Type 1 specifies a small metric (two bytes). The default value is type 2.

To modify the default value to type 1, enter the following command.

Virtual ADX(config-ospf-router)# metric-type type1

Syntax: metric-type type1 | type2

The default is type2.

Modify administrative distance

Brocade Layer 3 Switches can learn about networks from various protocols, including OSPF.
Consequently, the routes to a network may differ depending on the protocol from which the routes
were learned. The default administrative distance for OSPF routes is 110.

The router selects one route over another based on the source of the route information. To do so,
the router can use the administrative distances assigned to the sources. You can bias the Layer 3
Switch’s decision by changing the default administrative distance.

Configuring administrative distance based on route type

You can configure a unique administrative distance for each type of OSPF route. For example, you
can use this feature to prefer a static route over an OSPF inter-area route but you also want to
prefer OSPF intra-area routes to static routes.

The distance you specify influences the choice of routes when the Layer 3 Switch has multiple
routes for the same network from different protocols. The Layer 3 Switch prefers the route with the
lower administrative distance.

You can specify unique default administrative distances for the following route types:

Intra-area routes

Inter-area routes

External routes

The default for all these OSPF route types is 110.

NOTE

This feature does not influence the choice of routes within OSPF. For example, an OSPF intra-area
route is always preferred over an OSPF inter-area route, even if the intra-area route’s distance is
greater than the inter-area route’s distance.

To change the default administrative distances for inter-area routes, intra-area routes, and external
routes, enter the following command.

Virtual ADX(config-ospf-router)# distance external 100

Virtual ADX(config-ospf-router)# distance inter-area 90

Virtual ADX(config-ospf-router)# distance intra-area 80

Syntax: distance external | inter-area | intra-area distance

Advertising