Command Reference
OSPFv2 Commands
trustworthy than that of type 2.
route-map
map-name
Associated route map name. No route map is associated by default.
Defaults
No default route is generated by default.
The default value of metric is 1.
The default value of metric-type is 2.
Command
Mode
Routing process configuration mode
Usage Guide
When the
redistribute
or
default-information
command is executed, the OSPF-enabled device
automatically turns into the ASBR. The ASBR cannot generate the default route automatically or
advertise it to all the devices in the OSPF routing domain. The ASBR can generate the default route
with the
default-information originate
command in routing process configuration mode.
If the always parameter is used, the OSPF routing process advertises an external default route to
neighbors, no matter the default route exists or not. However, the local device does not display the
default route. To make sure whether the default route is generated, use the
show ip ospf database
command to display the OSPF link state database. The external link identified with 0.0.0.0 indicates
the default route. You can use the show ip route command on the OSPF neighbor to display the
default route.
The metric of the external default route can be defined only with the
default-information originate
command.
There are two types of OSPF external routes: type 1 external routes have changeable routing
metrics, while type 2 external routes have constant routing metrics. For two parallel routes with the
same route metric to the same destination network, the type 1 route takes precedence over the type 2
route. As a result, the
show ip route
command displays only the type 1 route.
This command generates a default route of Type-5 LSA, which will not be flooded to the NSSA area.
To generate a default route in the NSSA area, use the
area nssa default-information-originate
command.
The routers in the stub area cannot generate external default routes.
The range of set metric is 0 to 16777214 for the associated route map. If the value exceeds the
range, introducing a route fails.
Configuration
Examples
The following example configures that OSPF generates an external default route and injects it to the
OSPF routing domain. The default route is of type 1 and the metric 50.
Ruijie(config)#routerospf 1
Ruijie(config-router)#network
172.16.24.0 0.0.0.255
area 0
Ruijie(config-router)#default-information originate
alwaysmetric50metric-type1
Related
Commands
Command
Description
show ip ospf database
Displays OSPF link state database.
Содержание RG-S29 Series
Страница 1: ...RG S29 Series Switch RGOS Command Reference Release 11 4 1 B12...
Страница 10: ...Command Reference Command Line Interface Commands Platform Description N A...
Страница 93: ...Command Reference Line Commands Description...
Страница 236: ...Command Reference PoE Management Commands Related Commands Command Description N A N A Platform Description N A...
Страница 248: ...Command Reference PKG_MGMT Commands...
Страница 332: ...Command Reference Protocol VLAN Commands Commands N A N A Platform Description...
Страница 350: ...Command Reference Voice VLAN Commands Description...
Страница 430: ...Command Reference LLDP Commands Description...
Страница 467: ...Command Reference ERPS Commands Commands N A N A Platform Description N A...
Страница 541: ...Command Reference IPv6 Commands Platform Description N A...
Страница 858: ...Command Reference NSM Commands Description N A N A Defaults N A Command Mode Privileged EXEC mode Usage guideline N A...
Страница 914: ...Multicast Commands 1 IPv4 Multicast Routing Commands 2 IGMP Snooping Commands...
Страница 1092: ...Configuration Guide SCC Commands Platforms N A...
Страница 1196: ...Configuration Guide IPv6 Source Guard Commands Platform Description N A...
Страница 1290: ...ACL QoS Configuration Commands 1 ACL Commands 2 QoS Commands...