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
This command is used to display the routing table entries for static routes on a router. Static routes are manually configured by a network administrator to define a specific path for traffic to follow, often used for directing packets to a particular network when dynamic routing protocols are not desirable or necessary.
In Cisco routers, static routes have a default administrative distance of 1, which is the distance that indicates the trustworthiness of the route. A lower distance is preferred over a higher distance. This administrative distance is used to prioritize the routes when multiple routes exist to the same destination network.
The metric for a static route is always set to 0. This is because static routes are considered the most reliable, and the metric 0 indicates no “cost” or preference is needed for that route. Unlike dynamic routes, which use metrics such as hop count, bandwidth, or delay to determine the best path, static routes are predefined, and the router will always prefer them over other routes with higher administrative distances.
When the “show ip route static” command is entered, the router will display all static routes configured on the device, showing their destination network, subnet mask, next-hop address, and other relevant information, including the administrative distance and metric. If you want to verify that the static route has a distance of 1 and a metric of 0, this command will show those values clearly. These values can also be confirmed by looking at the routing table and checking that the static routes are listed with the proper distance and metric.