3com S7906E Guía De Referencia
1-7
Default Level
2: System level
Parameters
always: Generates a default route in an ASE LSA into the OSPF routing domain regardless of whether
a default route exists in the routing table. Without this keyword used, the command can distribute a
default route in a Type-5 LSA into the OSPF routing domain only when a default route exists in the
routing table.
cost cost: Specifies a cost for the default route, in the range 0 to 16777214. If no cost is specified, the
default cost specified by the default cost command applies..
type type: Specifies a type for the ASE LSA: 1 or 2. If type is not specified, the default type for the ASE
LSA specified by the default type command applies..
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 exists in the router's routing table, use the
default-route-advertise always command to generate a default route in a Type-5 LSA.
The default-route-advertise summary cost command is applicable only to VPNs, and the default
route is redistributed in a Type-3 LSA. The PE router advertises the redistributed default route to the CE
router.
Related commands: import-route, default.
Examples
# Generate a default route in an ASE LSA into the OSPF routing domain (no default route configured on
the router), regardless of whether the default route is available in the routing table.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] default-route-advertise always
description (OSPF/OSPF area view)
Syntax
description description
undo description
View
OSPF view/OSPF area view