area default-metric

Syntax

areadefault-metricno areadefault-metric

Description

Sets the cost of the default route announced to NSSA or stub areas.

Thenoform of this command resets the cost of the default route announced to NSSA or stub areas, to the default value of 1.

Command context

config-ospf -

Parameters

Specifies area ID in one of the following formats.
  • OSPF area identifier in IPv4 format (x.x.x.x), wherexis a decimal number from 0 to 255.

  • OSPF区域标识符在十进制形式t. Range: 0 to 4294967295.

default-metric

Sets the cost of default-summary LSAs announced to NSSA or stub areas, to the specified value. Default cost: 1. Range: 0 to 16777215.

Authority

Administrators or local user group members with execution rights for this command.

Examples

Setting cost for default LSA summary:

switch(config)#router ospf 1switch(config-ospf-1)#area 1 default-metric 2switch(config-ospf-1)#area 0.0.0.1 default-metric 2

Setting cost for default LSA summary to default:

switch(config)#router ospf 1switch(config-ospf-1)#no area 1 default-metricswitch(config-ospf-1)#no area 0.0.0.1 default-metric