Need 2 creat backup link

Dear friends

I have 2 connection from one ISP

1 is on fiber optic
2 is on wireless ubnt radio

what kind of configuration should i made in my RB that if 1st link get down second will come automatically switch over the link

thanks for help in advance

Setup simple routing,

  • add default gateway with check-gateway=ping option;
  • add second gateway with distance=2

If first [default] gateway goes down, router would switch to second gateway.