Switch 7700 Command reference Guide, v2.0

Table Of Contents
136 CHAPTER 5: USING ROUTING PROTOCOL COMMANDS
View
OSPF Area view
Parameter
value Enter the cost value of the default route transmitted by OSPF to the STUB
or NSSA area, in the range 0 to 16777215. The default value is 1.
Description
Using the default-cost command, you can configure the cost of the route
transmitted by OSPF to the STUB or NSSA area.
Using the undo default-cost command, you can restore the default cost of the
default route transmitted by OSPF to the STUB or NSSA.
Related commands: stub, nssa.
Example
To set area 1 as the STUB area, and to set the cost of the default route transmitted
to this STUB area to 60, enter the following commands:
[SW7700-ospf]area 1
[SW7700-ospf-area-0.0.0.1]network 20.0.0.0 0.255.255.255
[SW7700-ospf-area-0.0.0.1]stub
[SW7700-ospf-area-0.0.0.1]default-cost 60
default-route-advertise Syntax
default-route-advertise [ always ] [ cost value ] [ type type_value ]
[ route-policy route_policy_name ]
undo default-route-advertise [ always ] [ cost ] [ type ] [
route-policy ]
View
OSPF view
Parameter
always This parameter will generate an ASE LSA which describes the default route
and advertise it if the local router is not configured with the default route. If this
parameter is not set, the local router cannot import the ASE LSA, which generates
the default route only when it is configured with the default route.
cost value: Enter the cost value of the ASE LSA, in the range 0 to 16777215.
The default value is 1.
type type_value Enter the cost type of this ase lsa, which can be either 1 or 2.
The default value is 2.
route-policy route_policy_name: if the default route match the route-policy
specified by route-policy-name, route-policy will affect the value in ase lsa. The
length of
route_policy_name parameter ranges from 1 to 16 character string.