• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 567
  • Last Modified:

Cisco 3560 Layer 3 Switch - mutiple IP routes?

I am able to add the following to my Cisco 3560 Switch:

ip route 0.0.0.0 0.0.0.0 192.168.2.101
ip route 0.0.0.0 0.0.0.0 192.168.2.102 100

This makes me think should connection be lost to x.101 then traffic should be sent to x.102.  This does not happen.

Why?

Thanks.
0
Adam D
Asked:
Adam D
  • 2
1 Solution
 
Zephyr ICTCloud ArchitectCommented:
0
 
Don JohnstonInstructorCommented:
Your failover approach would only work if each route used a different interface. Even then, the failover would only work if the failure was detectable (interface state changed).

As it is, object tracking (SLA) is your best choice.

Here's another guide: Reliable Static Routing Backup Using Object Tracking
0
 
Adam DIT Solutions DeveloperAuthor Commented:
Thank you both.  I am looking into this option in more detail.  Here is what I have done so far:

ip sla 1
icmp-echo 4.2.2.2
frequency 5
exit
ip sla schedule 1 life start-time now forever
end

This, in theory, will ping 4.2.2.2 (name server) every 5 seconds (just for testing purposes) and in theory if my primary route does not respond then it should go to the secondary route, right?

The switch is connected to two firewalls which are in turn connected to two separate ISP connections.  Each firewall has its own IP address. If the ISP goes down (not the firewall) then my intention is to allow the switch to send traffic to the alternate.

I pulled the internet connection on my primary but it did not "failover." What do you think I am missing?

Thanks.
0
 
Don JohnstonInstructorCommented:
There's a bit more to do. You've identified the object, but not what to do if it's unreachable.

Here's the second part.

http://www.cisco.com/en/US/docs/ios/dial/configuration/guide/dia_rel_stc_rtg_bckup.html#wp1064942
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now