3Com MSR 50 Network Router User Manual


  Open as PDF
of 2742
 
1112 CHAPTER 76: OSPF CONFIGURATION COMMANDS
Related commands: stub (OSPF area view), nssa.
Examples # Configure Area1 as a stub area, and specify the cost of the default route
advertised to the stub area as 20.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] area 1
[Sysname-ospf-100-area-0.0.0.1] stub
[Sysname-ospf-100-area-0.0.0.1] default-cost 20
default-route-advertise (OSPF view)
Syntax default-route-advertise [[always | cost cost | type type | route-policy
route-policy-name ] * | summary cost cost ]
default-route-advertise summary cost cost
undo default-route-advertise
View OSPF view
Parameters always: Generates a default external route in an ASE LSA into the OSPF routing
domain, if the router has no default route configured. Without this keyword, the
local router can generate a Type-5 LSA describing the default route for
advertisement only if the router has the default route configured.
cost cost: Specifies the cost for the default route, in the range 0 to 16777214. The
default is 1.
type type: Specifies the ASE LSA type: 1 or 2, which defaults to 2.
route-policy route-policy-name: Specifies the route policy name, a string of 1 to
19 characters. If the default route matches the specified route policy, the route
policy affects some value in the ASE LSA.
summary: Advertises the Type-3 summary LSA of the specified default route.
Description Use the
default-route-advertise command to generate a default route into the
OSPF routing domain.
Use the
undo default-route-advertise command to disable OSPF from
distributing a default external route.
By default, no default route is distributed.
Using the import-route command cannot redistribute a default route. To do so,
use the default-route-advertise command. If the default route is not configured
on the local router, to generate a Type-5 LSA describing the default route, use the
default-route-advertise always command.