Distance (ospf) – Brocade Network OS Command Reference v4.1.0 User Manual
Page 270
232
Network OS Command Reference
53-1003115-01
distance (OSPF)
2
distance (OSPF)
Configures an administrative distance value for OSPF routes.
Synopsis
distance {external | inter-area | intra-area} distance
no distance
Operands
external
Sets the distance for routes learned by redistribution from other routing
domains.
inter-area
Sets the distance for all routes from one area to another area.
intra-area
Sets the distance for all routes within an area.
distance
Administrative distance value assigned to OSPF routes. Valid values range
from 1 through 255. The default is 110.
Defaults
The administrative distance value for OSPF routes is 110.
Command Modes
OSPF VRF router configuration mode
Description
Use this command to specify the administrative distance for different OSPF route types. You can
configure a unique administrative distance for each type of OSPF route.
The distances you specify influence the choice of routes when the device has multiple routes from
different protocols for the same network. The device prefers the route with the lower
administrative distance. However, an OSPF intra-area route is always preferred over an OSPF
inter-area route, even if the intra-area route’s distance is greater than the inter-area route’s
distance.
Usage Guidelines
Enter no distance to return to the default setting.
Examples
To set the distance value for all external routes to 125:
switch# configure
switch(config)# rbridge-id 5
switch(config-rbridge-id-5)#router ospf
switch(config-router-ospf-vrf-default-vrf)# distance external 125
See Also
None