3com 8807 참조 가이드

다운로드
페이지 1099
420
C
HAPTER
 25: OSPF C
ONFIGURATION
 C
OMMANDS
Use the undo default type command to restore the default type when OSPF 
imports external routes.
By default, the external routes of type 2 are imported.
OSPF specifies the two types of external routing information. The command 
described in this section can be used to specify the default type when external 
routes are imported.
Related command: default tag.
Example
# Specify the default type as type 1 when OSPF imports an external route.
[3Com-ospf-1] default type 1 
default-cost
Syntax
default-cost value
undo default-cost
View
OSPF Area view
Parameter
value: Specifies the cost value of the default route transmitted by OSPF to the Stub 
or NSSA area, ranging from 0 to 16,777,214. The default value is 1.
Description
Use the default-cost command to configure the cost of the default route 
transmitted by OSPF to the Stub or NSSA area.
Use the undo default-cost command to restore the cost of the default route 
transmitted by OSPF to the Stub or NSSA area to the default value.
This command only applies to the border routers connected to the Stub or NSSA 
areas.
To configure a Stub area, you need to use two commands: stub and default-cost
The stub command is used to configure the Stub attribute for this area.
Related command: stubnssa.
Example
# Set the area 1 as the Stub area and the cost of the default route transmitted to 
this Stub area to 60.
[3Com-ospf-1] area 1
 
[3Com-ospf-1-area-0.0.0.1] network 20.0.0.0 0.255.255.255
 
[3Com-ospf-1-area-0.0.0.1] stub
 
[3Com-ospf-1-area-0.0.0.1] default-cost 60