4-7
cost
value
: Specifies the cost value of the default route. The default route with the lowest cost value is
preferred. The value of
value
ranges from 0 to 16777214. If no
cost
is specified, the default cost
specified by the
default cost
command applies.
type type-value:
Specifies the type of the route. If
type-value
is 2, the cost value of the default route is
equal to that specified by
cost
value
, and all the routers in the OSPF domain use the same cost. If
type-value
is 1, the cost value of the default route is equal to the sum of the cost from the local router to
the corresponding ASBR and the cost specified by
cost
value
. The value of
type-value
is 1 or 2. If no
type-value
is specified, the default route type specified by the
default type
command applies.
route-policy
route-policy-name:
Specifies a route policy. .The
route-policy-name
argument is a string
of 1 to 19 characters.
Description
Use the
default-route-advertise
command to generate a default route in the OSPF routing domain.
Use the
undo default-route-advertise
command to disable OSPF from redistributing a default route.
By default, OSPF does not redistribute any default route.
The
import-route
command cannot redistribute any default route. To redistribute the default route to
the route area, the
default-route-advertise
command must be used. If the local router is not
configured with a default route, the keyword
always
must be specified so that a default route can be
generated in an ASE LSA.
Related commands:
import-route
.
Examples
# Generate a default route in an ASE LSA into the OSPF routing domain if a default route is configured
on the local router.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] ospf 1
[Sysname-ospf-1] default-route-advertise
# Generate a default route in an ASE LSA into the OSPF routing domain if no default route is configured
on the local router.
[Sysname-ospf-1] default-route-advertise always
display router id
Syntax
display router id
View
Any view
Parameters
None
Description
Use the
display router id
command to display the router ID.
Summary of Contents for 5500-EI PWR
Page 43: ...2 6...
Page 76: ...1 17...
Page 228: ...ii stp transmit limit 1 44 vlan mapping modulo 1 45 vlan vpn tunnel 1 46...
Page 477: ...5 24 Sysname vlan 2 Sysname vlan2 service type multicast...
Page 503: ...2 3 System View return to User View with Ctrl Z Sysname dot1x url http 192 168 19 23...
Page 519: ...iii...
Page 597: ...2 2 security policy server 192 168 0 1 user name format without domain...
Page 648: ...1 9 Examples Clear static ARP entries Sysname reset arp static...
Page 663: ...4 3 Sysname resilient arp interface vlan interface 2...
Page 767: ...1 28 From 12 00 Jan 1 2008 to 12 00 Jun 1 2008...
Page 1111: ...ii xmodem get 3 18...
Page 1314: ...A 44 Z...