The administrative distance of a default route is typically 1. This means that it is considered the most reliable and preferred route for forwarding traffic when no other more specific route is available in the routing table.
The administrative distance for a static route is typically 1, meaning it is very reliable and preferred over routes learned from dynamic routing protocols. The metric for a static route is typically one hop, meaning it has a fixed cost regardless of network conditions or traffic load.
default
The route via Path B is installed because the EIGRP route has the best metric to network 10.2.0.0/16. The route via Path A is installed because the static route has the best metric to network 10.2.0.0/16. The route via Path B is installed because the EIGRP route has the lowest administrative distance to network 10.2.0.0/16. The route via Path A is installed because the static route has the lowest administrative distance to network 10.2.0.0/16.
default-information originate
This is where administrative distance comes into play. The lowest one gets used in the routing table. A static route always has a lower AD than dynamic routing processes. So the static route will be used.
A Admin can set the Administrative Distance (AD) on a static route to tell the router how reliable the route is. Dynamic routing protocols use metrics to determine route reliability.
The "show ip route" command in Cisco devices will display the administrative distance of routes along with other routing information.
router(config)#ip route 0.0.0.0 0.0.0.0 10.1.1.1
the default gateway is the most common static route used in a host computer. netstat -r is the command line command to obtain the routing table.
Administrative distance is a way to prioritize routing information from different routing protocols; a lower administrative distance is preferred. The metric, on the other hand, is a value that represents the cost of a particular route, aiding in selecting the best path to a destination.
Compared to RIP, EIGRP has a lower administrative distance.