0

I have a 2620 Cisco Router with only one Fastethernet port Now I have two internet gateways. I want to config my router as when primary routing fails second routing automatically start to route all my packets. When I set 2 IP route command in my router then I check I see it work well but when peer IP on primary routing is down it can not change to second routing until I remove first route command.In the following I write my setting. How can I set it?

interface FastEthernet0/0
  ip address 81.12.21.100 255.255.255.248 secondary
  ip address 62.220.97.14 255.255.255.252

ip route 0.0.0.0 0.0.0.0 62.220.97.13
ip route 0.0.0.0 0.0.0.0 1.12.21.97 100

2 Answers2

2

If you are not running BGP and annoucing your own routes to both ISPs (This is quite involved) then you can look into using IP SLA. Basically you would ping both default gateways, if one can't be pinged it fails over.

There is an example configuration here on the cisco support forums.

Kyle Brandt
  • 83,619
  • 74
  • 305
  • 448
1

A little while ago, I was looking at doing something similar with a cisco technology known as Optimized Edge Routing (OER), but I never actually got as far as configuring it. It looks like that's the right kind of thing to do, but without more certainty on the technical implementation, it's difficult to say. Certainly one possible starting point though.

I'd be tempted to knock up a simulation in GNS3 to begin with, and try out some of the OER configurations, before implementing it on real hardware (Assuming your IOS version supports that feature set.)

Tom O'Connor
  • 27,480
  • 10
  • 73
  • 148