H3C S7500E Series Command Manual page 314

Hide thumbs Also See for S7500E Series:
Table of Contents

Advertisement

Command Manual – IPv4 Routing
H3C S7500E Series Ethernet Switches
Examples
# Configure Area 1 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
3.1.8 default-route-advertise
Syntax
default-route-advertise [ [ always | cost cost | type type | route-policy
route-policy-name ] * | summary cost cost ]
undo default-route-advertise
View
OSPF view
Parameters
always: If the local routing table has no default route, using this keyword generates a
default route in an ASE LSA into the OSPF routing domain. Without this keyword used,
the router can generate the default route only when the local routing table has a default
route.
cost cost: Specifies a cost for the default route, in the range 0 to 16777214. The default
is 1.
type type: Specifies a type for the ASE LSA: 1 or 2, which defaults to 2.
route-policy route-policy-name: Specifies a route policy name, a string of 1 to 19
characters. If the default route matches the specified route policy, the route policy
modifies some values 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 no default route is available in the local routing
Chapter 3 OSPF Configuration Commands
3-7

Advertisement

Table of Contents
loading

Table of Contents