How can I setup a layer2 failover configuration?
My Network setup:
The distance between Site A and Site B is 2 km. Both sites are connected via a wireless link. As a backup line, we also have a layer2 fiber link between these two sites.
Primarily I want to transfer all traffic on the wireless link only, and do not use fiber link at all, if the wireless link is working well.
I want to activate the fiber link automatically, but only if the wireless link is down. And when the wireless link is restored, automatically deactivate fiber link port.
Ether-port A (wireless) needs to continuously ping the other side, and if no there is no ping reply, then activate Ether-port B(Fiber), so all traffic routes without any interference.
When Ether-port A(wireless) ping gets a reply, cut off PortB.
If you ask why not to use fiber always when fiber is better then wireless: I my ISP charges per GB for data traffic. So it is expensive when wireless link is running.