type2
Specifies the external metric for an external route.
Default: type2
Example:
To change from the default setting on an ASBR to type 1, enter the following command:
switch(config)# router ospf metric-type type1
Configuring ranges on an ABR to reduce advertising to
the backbone
Syntax:
area [[ospf-area-id] | [backbone]] range [[ip-addr/mask-length]] [no-advertise]
[type summary [[cost 1-16777215] | [nssa] | [cost 1-16777215]]]
area
ospf-area-id
range ip-addr/mask-length [no-advertise] [type summary [[cost 1-16777215] | nssa]]
Use this command on a routing switch intended to operate as an ABR for the specified area to do either of the
following:
• Simultaneously create the area and corresponding range setting for routes to summarize or block.
• For an existing area, specify a range setting for routes to summarize or block.
Options
ospf-area-id
Same area ID as in
Configuring an OSPF backbone or normal area
on page 199, except you cannot assign a
backbone area number (
0
or
0.0.0.0
) to a stub or NSSA area.
range ip-addr/mask-length
Defines the range of route advertisements to either summarize for injection into the backbone area or to prevent
from being injected into the backbone area. The
ip-addr
value specifies the IP address portion of the range, and
mask-length
specifies the leftmost significant bits in the address. The ABR for the specified area compares the
IP address of each outbound route advertisement with the address and significant bits in the mask to determine
which routes to select for either summarizing or blocking. For example, a range of 10.10.32.1/14 specifies all
routes in the range of 10.10.32.1 - 10.10.35.254.
[no] advertise
Use this keyword only if you want to configure the ABR to prevent advertisement to the backbone of a specified
range of routes. (This has the effect of "hiding" the specified range from the backbone area.) If you do not use this
option, the ABR advertises the specified range of routes according to the
type summary | nssa
selection
described below.
[type summary [[cost 1-16777215] | nssa]]
Configures the type of route summaries to advertise or block.
If the option
type
is not used in the command, the ABR defaults this setting to summary.
Chapter 11 Open Shortest Path First Protocol (OSPF)
207