
114
Example:
Switch(config-router)#redistribute ospf
1.6.3.42 router ospf
Command: router ospf <process_id>
no router ospf <process_id>
Function:
This command is for relating the OSPF process. The “
no router ospf <process_id>
”
command deletes the config.
Parameter: <process_id>
specifies the id of the OSPF process to be created.
Command Mode:
Global mode.
Example:
Switch# config terminal
Switch(config)# router ospf 100
Switch(config-router)#network 10.1.1.0/24 area 0
1.6.3.43 default-information originate
Command: default-information originate [always|METRIC|METRICTYPE|ROUTEMAP]
no default-information originate
Function:
This command create a default external route to OSPF route area; the “
no
default-information originate
” closes this feature.
Parameter: always:
Whether default route exist in the software or not, the default route is
always advertised.
METRIC = metric <value>:
Set the metric value for creating default route,
<value>
ranges
between 0~
16777214
, default metric value is 0.
METRICTYPE = metric-type {1|2}
set the OSPF external link type of default route.
1 Set the OSPF external type 1 metric value.
2 Set the OSPF external type 2 metric value.
ROUTEMAP = route-map <WORD>.
<WORD>
specifies the route map name to be applied.
Default:
Default metric value is 10, default OSPF external link type is 2.
Command Mode:
OSPF protocol mode.
Usage Guide:
When introducing route into OSPF route area with this command, the system will
behaves like an ASBR.
Example:
Switch#config terminal
Switch(config)#router ospf 100
Switch(config-router)#default-information originate always metric 23 metric-type 2 route-map
myinfo