Layer 3 Routing Commands 1653Syntaxdistance ospf {[intra-area dist1] [inter-area dist2] [external dist3]}no distance ospf {intra-area | inter-area | external}• intra-area dist1—Used to select the best path within an area when thereare two or more routes to the same destination from two different routingprotocols (Range: 1–255).• inter-area dist2—Used to select the best path from one area to anotherarea when there are two or more routes to the same destination from twodifferent routing protocols (Range: 1–255).• external dist3—Used to select the best path for routes from other routingdomains, learned by redistribution when there are two or more routes tothe same destination from two different routing protocols (Range: 1–255).Default ConfigurationThe default preference value is 110 for dist1, dist2 and dist3.Command ModeRouter OSPF Configuration mode.Router OSPFv3 Configuration mode.User GuidelinesThere are no user guidelines for this command.ExamplesThe following examples set route preference values of OSPF in the router.console(config-router)#distance ospf intra 4console(config-router)#distance ospf type1 19distribute-list outUse the distribute-list out command in Router OSPF Configuration mode tospecify the access list to filter routes received from the source protocol. Usethe no form of the command to remove the specified source protocol fromthe access list.