Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510
Chapter 3 OSPF Configuration Commands
Huawei Technologies Proprietary
3-10
Parameter
always
: Generates an ase lsa describing the default route and advertises it 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 of
value
ranges from 0 to
16777214 and defaults to 1.
type type-value:
Specifies the cost type of this ase lsa. The value of
type-value
ranges
from 1 to 2 and defaults 2.
route-policy
route-policy-name:
If the default route matches the route-policy specified
by
route-policy-name
, the route-policy will affect the value in ase lsa. The
route-policy-name
argument is a string containing 1 to 19 characters.
Description
Use the
default-route-advertise
command to import the default route to OSPF route
area.
Use the
undo default-route-advertise
command to cancel the import of the default
route.
By default, OSPF does not import the default route.
The
import-route
command cannot import the default route. To import the default route
to the route area, the
default-route-advertise
command must be used. If the local
router is not configured with the default route, the keyword
always
should be specified
so that ase lsa of the default route is generated.
Related command:
import-route
.
Example
# The ase lsa of the default route is generated only if the local router has the default
route.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] ospf 1
[Quidway-ospf-1] default-route-advertise
# The ase lsa of default route will be generated and advertised to OSPF route area
even the local router has no default route.
[Quidway-ospf-1] default-route-advertise always