Command Line Reference Guide
Open Shortest Path First (OSPFv2 and OSPFv3) | 1025
distance ospf
c e s
Configure an OSPF distance metric for different types of routes.
Syntax
distance ospf [external dist3] [inter-area dist2] [intra-area dist1]
To delete these settings, enter no distance ospf.
Parameters
Defaults
external dist3 = 110; inter-area dist2 = 110; intra-area dist1 = 110.
Command Modes
ROUTER OSPF
Command
History
Usage
Information
T
o specify a distance for routes learned from other routing domains, use the redistribute command.
distribute-list in
c e s
Apply a filter to incoming routing updates from OSPF to the routing table.
Syntax
distribute-list prefix-list-name in [interface]
To delete a filter, use the no distribute-list prefix-list-name in [interface] command.
external dist3 (OPTIONAL) Enter the keyword external followed by a number to specify a
distance for external type 5 and 7 routes.
Range: 1 to 255
Default: 110.
inter-area dist2 (OPTIONAL) Enter the keyword inter-area followed by a number to specify a
distance metric for routes between areas.
Range: 1 to 255
Default: 110.
intra-area dist1 (OPTIONAL) Enter the keyword intra-area followed by a number to specify a
distance metric for all routes within an area.
Range: 1 to 255
Default: 110.
Version 7.8.1.0 Introduced support for Multi-Process OSPF.
Version 7.6.1.0 Introduced on S-Series
Version 7.5.1.0 Introduced on C-Series
pre-Version 6.1.1.1 Introduced on E-Series










