OcNOS-RON-6.3.1 : Layer 3 Guide : Open Shortest Path First Command Reference : OSPFv3 Commands : distance
distance
Use this command to define OSPFv3 route administrative distances based on route type. This command sets the distance for an entire group of routes rather than a specific route that passes an access list.
The administrative distance rates the trustworthiness of a routing information source. A higher distance value means a lower trust rating. For example, an administrative distance of 254 means that the routing information source cannot be trusted and should be ignored.
Use the no form of this command to restore the default value.
Command Syntax
distance <1-254>
distance ospfv3 {intra-area <1-254>|inter-area <1-254>|external <1-254>}
no distance (<1-254>|)
no distance ospfv3
Parameters
<1-254>
Used alone, this parameter specifies a default administrative distance used when no other specification exists for a routing information source.
intra-area
Routes within an area.
<1-254>
Distance for all routes within an area
inter-area
Routes from one area to another area.
<1-254>
Distance for all routes from one area to another area.
external
Routes from other routing domains learned by redistribution.
<1-254>
Distance for routes from other routing domains learned by redistribution.
Default
By default, distance value for each type of route is 110
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#configure terminal
(config)#router ipv6 ospf 100
(config-router)#distance ospfv3 inter-area 20 intra-area 10 external 40
Last modified date: 07-13-2023