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-policyroute-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-advertisecommand to generate a default route into the

 

OSPF routing domain.

 

Use the undo default-route-advertisecommand to disable OSPF from

 

distributing a default external route.

 

By default, no default route is distributed.

 

Using the import-routecommand cannot redistribute a default route. To do so,

 

use the default-route-advertisecommand. 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.

Page 1112
Image 1112
3Com MSR 30 Default-route-advertise Ospf view, Related commands stub Ospf area view, nssa, Undo default-route-advertise