Reference Guide
distance ospf
Configure an OSPF distance metric for different types of routes.
S4820T
Syntax
distance ospf [external dist3] [inter-area dist2] [intra-area 
dist1]
To delete these settings, use the no distance ospf command.
Parameters
external 
dist3
(OPTIONAL) Enter the keyword external then a number to specify 
a distance for external type 5 and 7 routes. The range is from 1 to 255. 
The default is 110.
inter-area 
dist2
(OPTIONAL) Enter the keywords inter-area then a number to 
specify a distance metric for routes between areas. The range is from 
1 to 255. The default is 110.
intra-area 
dist1
(OPTIONAL) Enter the keywords intra-area then a number to 
specify a distance metric for all routes within an area. The range is 
from 1 to 255. The default is 
110.
Defaults
• external 
dist3
 = 110
• inter-area 
dist2
 = 110
• intra-area 
dist1
 = 110
Command Modes ROUTER OSPF
Command History
This guide is platform-specific. For command information about other platforms, refer to the 
relevant 
FTOS Command Line Reference Guide
.
The following is a list of the FTOS version history for this command.
Version 8.3.19.0 Introduced on the S4820T.
Version 8.3.11.1 Introduced on the Z9000.
Version 8.3.7.0 Introduced on the S4810.
Version 7.8.1.0 Added support for the Multi-Process OSPF.
Version 7.6.1.0 Introduced on the S-Series.
Version 7.5.1.0 Introduced on the C-Series.
pre-Version 
6.1.1.1
Introduced on the E-Series.
Usage 
Information
To specify a distance for routes learned from other routing domains, use the redistribute 
command.
937










