What is the command to show the static router with the metric is 0 and distance is 1

What is the command to show the static router with the metric is 0 and distance is 1?

The correct answer and explanation is:

The correct command to show a static route with a metric of 0 and a distance of 1 is:

show ip route static

Explanation:

In networking, particularly with Cisco routers, the “show ip route” command is used to display the routing table, which includes all known routes that the router uses to forward packets. When a static route is configured, it is manually set by the network administrator, and the router uses this route to reach specific destinations.

Static routes are usually configured with a metric and a distance. The metric refers to the “cost” of using a particular route, and the distance refers to the administrative distance (AD). The administrative distance is a measure of the trustworthiness of a route. A lower AD value means the route is considered more reliable.

For static routes, the default administrative distance is 1, meaning that static routes are highly trusted. The metric for a static route is typically 0 because the administrator has manually configured the path, and there is no dynamic calculation involved.

To see the static routes in the router’s routing table, the command show ip route static is used. This displays all static routes along with their metrics and administrative distances. If a static route has a metric of 0 and an AD of 1, it will be listed under the static route section, showing that the router considers it a highly trusted, low-cost route to reach specific destinations.

By using this command, you can easily verify the presence and configuration of static routes on the router, especially in troubleshooting or ensuring network routing correctness.

Scroll to Top