Reference Guide
Open Shortest Path First (OSPFv2) | 1057
Parameters
Defaults
110
Command Modes
ROUTER OSPF
Command
History
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
weight
Specify an administrative distance.
Range: 1 to 255.
Default: 110
ip-address
(OPTIONAL) Enter a router ID in the dotted decimal format.
If you enter a router ID, you must include the mask for that router
address.
mask (OPTIONAL) Enter a mask in dotted decimal format or /n format.
access-list-name
(OPTIONAL) Enter the name of an IP standard access list, up to 140
characters.
Version 8.3.7.0 Introduced on S4810
Version 7.8.1.0 Introduced support for Multi-Process OSPF.
Increased name string to accept up to 140 characters. Prior to 7.8.1.0, names
are up to 16 characters long.
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
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.










