Well costing it relative to the routing tables, meaning most OS's won't know or care about it. The routers however will route packets based on weights and link state.
If you can't ping the remote sides gateways, it means your routing isn't converged and likely doesn't have routes to those hosts. My guess is this is what is happening:
Ping [packet path]
"192.168.1.10" -> "192.168.1.254 [router]" -> "192.168.2.254 [router]" -> "192.168.2.2 [remote gateway]" {ping received}
response: "192.168.2.2" "I have no idea where 192.168.1.x is so 0.0.0.0/0 -> "Internet private class C? -> /dev/null [trash]
IE there is likely no return path.
It depends on how the environment is setup. This can happen when you have multiple routers on one IP segment. Odds are the client default gateways are the routers on the wireless bridges and not the internet router. The router often has a different 0.0.0.0/0 than the client OS's so it needs explicit routes, dynamic or static to handle returning packets.
Yup, I wasn't sure what the problem was, but I suspected the ping was reaching the gateway, but it wasnt able to get back.
I'll see if I can add a route to get back out of curiosity.
What model routers do you have?
If Cisco, simple IP SLA failover would handle it.
Basically, the idea is that you create a track object which attempts to ping an Internet address. You then tie that track object to your static route out to the Internet. You'd create a SECOND default route with a higher administrative distance pointing toward the other gateway. If the track object fails, the route its tied to (which is a lower AD) is removed from the routing table and the route with the higher AD becomes active.
Need more information on whether or not this is something that could easily be set up on your network, though. Your diagram doesn't identify if the wireless link is L2 or L3 or how you route between the two subnets.
Our Internet Gateway Routers are actually Untangle boxes. They do have failover but its a paid for app, and I suspect it only fails over to another NIC in the box (I guess we could set up a VLAN and fail over to the other gateway via a VLAN.. dirty!)
I believe the wireless link is L2.. just a dumb little antenna with nothing to it.. the only management interface is via a serial cable and they have no IP's.
So my computer uses one of our 'switches' as its default gateway.. (172.25.200.4) which is set to send 0.0.0.0 out to our local gateway 172.25.200.2 (with a metric of 1). Would it then make sense that if I added 0.0.0.0 to 172.25.211.2 with a metric of 5 (?), would these switches be smart enough to switch over if 172.25.200.2 wasn't responding?
Edit: after further research, looks like this switch might not be able to do it.. just does basic routing. As was mentioned, I'd probably need a switch with something like OSPF to learn dynamically that the one gateway is down. Just setting a 2nd gateway with a higher metric on this switch probably wont cut it?
Thanks guys.. still in the learning process here..! trying!