I have an situation where we use a satellite link and wireless link for internet access.
The scenario includes a "ship". When the ship is out at the see than it uses a satellite modem for internet access, and once the ship is near the land and gets the "wireless" signals it switch over to Wireless.
We have configured it via OSPF, so this part is working just fine. But what causes a problem is:
When the ship is comming near the land, there is some small islands between the ship and the land, so it have a signals for wireless but they are not that good, so what happens when the radio gets the signals the OSPF switch the route on Wireless so about couple seconds the signals are gone and the OSPF does not switch back once that happens, and in this time the ship is without the internet access, because of bad signals which are going up-down while the ship is passing between the small islands.
So what I need is SLA tracking on the router, I have an example below which I am planning to use, but I am not sure is this a solution. I think I need the configuration which will "ping" wireless for maybe 5 minutes and if the ping response is OK, than it need to switch over on wireless and not before. Than I`ll be sure that signals are good all the time.
Tha config I should use is below:
interface ethernet 0
ip address 10.1.1.1 255.0.0.0
interface ethernet 1
ip address 10.2.2.2 255.0.0.0
ip sla monitor 1
type echo protocol ipIcmpEcho 172.16.23.7
ip sla monitor schedule 1 life forever start-time now
track 123 rtr 1 reachability
access list 101 permit icmp any host 172.16.23.7 echo
route map MY-LOCAL-POLICY permit 10
match ip address 101
set ip next-hop 10.1.1.242
set interface null 0
ip local policy route-map MY-LOCAL-POLICY
ip route 0.0.0.0 0.0.0.0 10.1.1.242 track 123
ip route 0.0.0.0 0.0.0.0 10.2.2.125 254