OSPF Configuration Commands
567
default-cost
Syntax
default-cost value
undo default-cost
View
OSPF area view
Parameter
■
value: Specifies the cost value of the default route transmitted by OSPF to the
STUB or NSSA area, ranging from 0 to 16777214. The default value is 1.
Description
Using the default-cost command, you can configure the cost of the default route
transmitted by OSPF to the STUB or NSSA area. Using the undo default-cost
command, you can restore the cost of the default route transmitted by OSPF to
the STUB or NSSA area to the default value.
This command is applicable for the border routers connected to STUB or NSSA
area.
The stub and default-cost commands are necessary in configuring STUB area. All
the routers connected to STUB area must use stub command to configure the stub
attribute to this area. Using the default-cost command, you can specify the cost of
the default route transmitted by ABR to STUB or NSSA area.
This command is only valid for this process if multiple OSPF processes are enabled.
For the related commands, see stub and nssa.
Example
Set the area 1 as the STUB area and the cost of the default route transmitted to
this STUB area to 60.
[3Com-ospf-1] area 1
[3Com-ospf-1-area-0.0.0.1] network 20.0.0.0 0.255.255.255
[3Com-ospf-1-area-0.0.0.1] stub
[3Com-ospf-1-area-0.0.0.1] default-cost 60
default-route-advertise
Syntax
default-route-advertise [ always ] [ cost cost-value ] [ type type-value ] [
route-policy route-policy-name ]
undo default-route-advertise [ always ] [ cost ] [ type ] [ route-policy ]
View
OSPF view
Parameter
■
always: Only available for the ASBR. If the parameter is selected, a default route
which is advertised via LSAs will be generated no matter whether there is a
default route in the routing table. For the ASBR in an general area, the default
route is advertised via Type-5 LSA, while in NSSA, the default route is advertised
via Type-7 LSA.
Содержание Router 3031
Страница 6: ......
Страница 396: ...396 CHAPTER 4 LINK LAYER PROTOCOL Example Set the parameter of X 29 to 10 seconds 3Com x29 timer inviteclear time 10...
Страница 686: ...686 CHAPTER 6 ROUTING PROTOCOL...
Страница 758: ...758 CHAPTER 7 MULTICAST COMMON CONFIGURATION COMMANDS...