On our HP and Cisco devices, we had two static routes:
0.0.0.0/0 gateway 10.10.10.1
10.10.90.0/24 gateway 10.10.90.1
...both with a metric of 1.
I went to send some traffic to 10.10.90.x (from a not-mentioned subnet) and the layer 3 switch with these two static routes of course would pick either one since the metric is equal. Of course it happened to pick the 0.0.0.0/0 match which caused connection troubles.
I updated the metric on the 0.0.0.0/0 (internet at 10.10.10.1) to be a higher metric, as I expect many do and was an error on our part.
However, the switch continued to forward all traffic to that path.
What is the command to view/reset route selections? I wanted the switch to re-check routes.
"show ip route" indeed works and shows the routes.
My curiosity is; say that I changed that route table. How do I get the switch to check these routes again? Should it automatically?
Say I had a packet destined to 10.10.10.5
These two routes were available:
0.0.0.0/0 gateway 192.168.1.1 metric 1 -and- 10.10.10.0/24 gateway 192.168.50.50 metric 1
... and the switch was sending that "10.10.10.5"-bound packet via the 22.214.171.124 gateway. However, say I changed that route to have a metric of 2. I would now expect that "10.10.10.5"-bound packet to be routed 192.168.1.1, correct? Since it has the lower metric? However, my switch never makes that change until power cycled or I pull cables for a few seconds. It's not, what I am calling, "re-evaluating" the route table.