H3C S7500 Series Ethernet Switches Command Manual

Table Of Contents
Command Manual – Routing Protocol
H3C S7500 Series Ethernet Switches Chapter 3 OSPF Configuration Commands
3-9
Description
Use the default-cost command to configure the cost of the default route transmitted by
OSPF to the Stub or NSSA area.
Use the undo default-cost command to restore the default value.
This command only applies to an ABR in a Stub area or NSSA area.
To configure a Stub area, you need to use the stub and default-cost commands.
You must use the stub command on all the routers connected to a STUB area to
configure the area with the STUB attribute. And use the default-cost command to
configure the cost of the default route transmitted by an ABR to the STUB area or
NSSA area.
Related commands: stub, nssa.
Examples
# Set area 1 as the Stub area and the cost of the default route transmitted to this Stub
area to 60.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] ospf 1
[H3C-ospf-1] area 1
[H3C-ospf-1-area-0.0.0.1] network 20.0.0.0 0.255.255.255
[H3C-ospf-1-area-0.0.0.1] stub
[H3C-ospf-1-area-0.0.0.1] default-cost 60
3.1.11 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
Parameters
always: Generates and advertises an ase lsa describing the default route if the local
router is not configured with the default route. If this keyword is not provided, the local
router must be configured with the default route before it can import the ase lsa, which
generates the default route.
cost value: Specifies the cost value of this ase lsa. The value ranges from 0 to
16777214 and defaults to 1.