It was previously mistaken to assume that direct-link routing is preferred if the metric is larger than the host route metric. However, it is forgotten that routing matching should be prioritized with a detail route, so the host route is selected first, although the hosting route metric value is smaller than the direct-attached route because the host route is the most verbose (no more detailed than it is).
Quote the description that Baidu knows:
Each routing protocol has a management distance, and the management distance determines which protocol to use first. Of course, the management distance is in a destination address has a variety of protocols can be reached when the effect.
The process for general route matching is:
A. Match mask first, the most exact mask matching route is preferred
B. If there is more than one route, then the management distance is matched, and the route with small distance is preferred.
C. If the management distance is the same, in the matching measure, the measure is small priority
D. If the measurements are the same, select load balancing, in the specific way you see which routing protocol and the associated configuration are used.
This article comes from "Httpyuntianjxxll.spac" blog, please be sure to keep this source http://333234.blog.51cto.com/323234/1036375