OSPF Network Design Solutions

Previous Table of Contents Next

set metric-type

To set the metric type for the destination routing protocol, use the set metric-type route map command. To return to the default, use the no form of this command. The syntax for this command (and the no form) is as follows:

set metric-type {internal | external | type-1 | type-2} no set metric-type {internal | external | type-1 | type-2}

Syntax Description:

internal. IS-IS internal metric.
external. IS-IS external metric.
type-1. OSPF external Type 1 metric.
type-2. OSPF external Type 2 metric.

Default: Disabled.

Command Mode: Route map configuration.

Usage Guidelines: Use the route-map global configuration command with match and set route-map configuration commands to define the conditions for redistributing routes from one routing protocol into another. Each route-map command has a list of match and set commands associated with it.

The match commands specify the match criteria—the conditions under which redistribution is allowed for the current route map. The set commands specify the set actions—the particular redistribution actions to perform if the criteria enforced by the match commands are met. The no route-map command deletes the route map.

The set route-map configuration commands specify the redistribution set actions to be performed when all of a route map’s match criteria are met. When all match criteria are met, all set actions are performed.

Example: In the following example, the metric type of the destination protocol is set to OSPF external type 1:

route-map map-type set metric-type type-1

Related Commands:

match as-path set as-path
match community-list set automatic-tag
match interface set community
match ip address set level
match ip next-hop set local-preference
match ip route-source set metric
match metric set next-hop
match route-type set origin
match tag set tag
route-map set weight

summary-address

Use the summary-address router configuration command to create aggregate addresses for IS-IS or OSPF. The no summary-address command restores the default. The syntax for this command (and the no form) is as follows:

summary-address address mask {level-1 | level-1-2 | level-2} prefix mask [not-advertise] [tag tag] no summary-address address mask {level-1 | level-1-2 | level-2}

Syntax Description:

address. Summary address designated for a range of addresses.
mask. IP subnet mask used for the summary route.
level-1. Only routes redistributed into Level 1 are summarized with the configured address/mask value. This keyword does not apply to OSPF.
level-1-2. The summary router is injected into both a Level 1 area and a Level 2 subdomain. This keyword does not apply to OSPF.
level-2. Routes learned by Level 1 routing will be summarized into the Level 2 backbone with the configured address/mask value. This keyword does not apply to OSPF.
prefix. IP route prefix for the destination.
not-advertise. Used to suppress routes that match the prefix/mask pair.
tag tag (optional). Tag value that can be used as a “match” value for controlling redistribution via route maps.

timers spf

To configure the delay time between when OSPF receives a topology change and when it starts a Shortest Path First (SPF) calculation, and the hold time between two consecutive SPF calculations, use the timers spf router configuration command. To return to the default timer values, use the no form of this command. The syntax for this command (and the no form) is as follows:

timers spf spf-delay spf-holdtime no timers spf spf-delay spf-holdtime

Syntax Description:

spf-delay. Delay time, in seconds, between when OSPF receives a topology change and when it starts an SPF calculation. It can be an integer from 0 to 65,535. The default time is 5 seconds. A value of 0 means that there is no delay; that is, the SPF calculation is started immediately.
spf-holdtime. Minimum time, in seconds, between two consecutive SPF calculations. It can be an integer from 0 to 65,535. The default time is 10 seconds. A value of 0 means that there is no delay, that is, two consecutive SPF calculations can be done one immediately after the other.

Defaults: For spf-delay, the default is 5 seconds; for spf-holdtime, the default is 10 seconds.

Router Command Mode: Router configuration.

Usage Guidelines: Setting the delay and hold time low causes routing to switch to the alternate path more quickly in the event of a failure.

Example: The following example changes the delay to 10 seconds and the hold time to 20 seconds.

Timers spf 10 20

OSPF Error Messages

This section consolidates a variety of the available OSPF error messages for Cisco routers and in some cases provides additional support and explanation.


Notes:   The list of system error messages in this section is incomplete. If you encounter an error message for OSPF not listed here, then contact your Cisco representative immediately.

%OSPF-4-BADLENGTH Error Message

The full text for this error message is as follows:

%OSPF-4-BADLENGTH: Invalid length [dec] in OSPF packet from [inet] (ID [inet]], [chars]

Explanation: The system received an OSPF packet with a length field of less than normal header size or inconsistent with the size of the IP packet in which it arrived. This indicates an error in the sender of the packet.

Recommended Action: Copy the error message exactly as it appears, and report it to your technical support representative.

Previous Table of Contents Next

Категории