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 command to show static routes with a metric of 0 and a distance of 1 is:

show ip route static

Explanation:
In networking, static routes are manually configured routes in a router’s routing table. These routes do not change unless explicitly modified by the network administrator. Each route entry in the routing table typically includes information like the destination network, the subnet mask, the next-hop address, and the administrative distance, which is a measure of the trustworthiness of the route.

  • Metric of 0: In most routing protocols, the metric represents the cost to reach a destination. A metric of 0 typically indicates a direct connection or the lowest possible cost to reach the destination. For static routes, this means that the router considers the destination directly reachable or on the same local network.
  • Distance of 1: The administrative distance (AD) is a value assigned to routes based on their source. For static routes, the default administrative distance is 1. A lower administrative distance means that the route is preferred over others. Static routes with an AD of 1 are typically considered the most trusted route to reach a destination.

When a static route is configured, the router places the route in its routing table. The command show ip route static is used to display these routes. It filters the routing table to only show entries that are static in nature, rather than dynamically learned routes (e.g., from protocols like OSPF or RIP).

For example, if you configured a static route to a network 192.168.1.0/24 via a next-hop IP of 192.168.0.1, this static route would show up in the output of the command with a metric of 0 and an administrative distance of 1, indicating that it is a direct, highly trusted route to reach that network.

Scroll to Top