C613-50170-01 Rev B
Command Reference for x510 Series
999
AlliedWare Plus™ Operating System - Version 5.4.7-1.x
OSPF C
OMMANDS
DISTANCE
(OSPF)
distance (OSPF)
Overview
This command sets the administrative distance for OSPF routes based on the route
type. Your device uses this value to select between two or more routes to the same
destination from two different routing protocols. The route with the smallest
administrative distance value is added to the Forwarding Information Base (FIB).
See the
Route Selection Feature Overview and Configuration Guide
for more
information.
Use the command
distance ospf
to set the distance for an entire category of OSPF
routes, rather than the specific routes that pass an access list.
Use the command
distance <1-255>
, with no other parameter, to set the same
distance for all OSPF route types.
The
no
variant of this command sets the administrative distance for all OSPF routes
to the default of 110.
Syntax
distance
<1-255
>
distance ospf {external <
1-255
>|inter-area <
1-255
>|intra-area
<
1-255
>}
no distance {ospf|<
1-255
>}
Default
The default OSPF administrative distance is 110. The default Administrative
Distance for each type of route (intra, inter, or external) is 110.
Mode
Router Configuration
Usage
The administrative distance rates the trustworthiness of a routing information
source. The distance could be any integer from 0 to 255. A higher distance value
indicates a lower trust rating. For example, an administrative distance of 255
indicates that the routing information source cannot be trusted and should be
ignored.
Use this command to set the distance for an entire group of routes, rather than a
specific route that passes an access list.
Examples
To set the following administrative distances for route types in OSPF 100:
•
20 for inter-area routes
Parameter
Description
<
1-255
>
Specify the Administrative Distance value for OSPF routes.
external
Sets the distance for routes from other routing domains, learned by
redistribution. Specify an OSPF external distance in the range <
1-255
>.
inter-area
Sets the distance for all routes from one area to another area.
Specify an OSPF inter-area distance in the range <
1-255
>.
intra-area
Sets the distance for all routes within an area.
Specify an OSPF intra-area distance in the range <
1-255
>.