This command sets the route preference value of OSPF in the router. Lower route preference values are preferred when determining the best route. The type of OSPF route can be intra, inter, or external. All the external type routes are given the same preference value. The range of preference value is 1 to 255.
| Default | 110 |
| Format | distance ospf {intra-area 1-255 | inter-area 1-255 | external 1-255} |
| Mode | Router OSPF Config |