09-22-2008 02:13 AM - edited 03-06-2019 01:30 AM
Hi, i have a 3750 switch. I want to monitor an ip address and based on that change the route. how it is achievable in 3750 switches.
lets say i have 2 routes with different metrics.
1) 10.2.1.0/16 via 10.1.1.1
2) 10.2.1.0/16 via 10.1.1.2
I want to track an object that is not directly connected or same vlan. lets say it is 192.168.1.1.
and i have the route 192.168.1.1 via 10.1.1.3. how can i select the route bases on that object status through the ICMP or other mechanisms in cisco 3750 switch.
Thanks
09-22-2008 12:54 PM
I've used this in routers, but I'm not sure if it's available in Cisco Catalyst series switches. Reliable Static Route Backup using Object Tracking.
http://www.cisco.com/en/US/docs/ios/12_3/12_3x/12_3xe/feature/guide/dbackupx.html#wp1072790
Or, you can try route-maps w/ set ip next-hop verify-availability. Again, never tried on a switch but used on routers.
Lastly, if neither work, why not use static floating routes for that specific subnet? If one link fails, the other will take over automatically.
ip route 192.168.0.0 255.255.255.0 10.1.1.1 200
ip route 192.168.0.0 255.255.255.0 10.1.1.2 210
09-23-2008 12:24 AM
I know this will work but (this is not required) i want to track the ip address in another subnet which is 2/3 hops away to change the route. want to use the tracking objects.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide