Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Monitoring changes to static routes

I've recently begun utilizing ip sla monitoring and track statements on my routers to watch the availability of the next hop past my firewall. If the next hop is not available, the static route is updated per the following:

ip route 0.0.0.0 0.0.0.0 1.2.3.4 track 10

ip route 0.0.0.0 0.0.0.0 5.6.7.8 200 track 20

So when all is well and my local ISP is reachable, the 0.0.0.0 route points to my local firewall 1.2.3.4. If my local ISP is not reachable, the 0.0.0.0 route points to a different firewall located at 5.6.7.8. Because it has a higher administrative distance (200) if the primary comes back online, the primary takes over.

The question I have is there a way for me to send an SNMP trap or log to a syslog server if there is a change in what is considered to be the 0.0.0.0 route?

Searching these forums I learned that OID 1.3.6.1.2.1.4.21 will have all my route entries in it so I might be able to gather this from some sort of script but my preference would be to send a syslog or SNMP trap.

IOS is Version 12.4(4)T1

Thanks for your input.

2 REPLIES

Re: Monitoring changes to static routes

Hi,

Looks like you can enable traps for RTR events:

R1(config)#snmp-server enable traps ?

(output removed)

rtr Enable SNMP Response Time Reporter traps

BTW, the output is from a 2611 running version 12.3(17a).

Pls. rate all helpful posts.

Sundar

New Member

Re: Monitoring changes to static routes

Thanks for the reply. I'll dig into this tomorrow.

I've also been able to pull some information via a snmp command:

[matt@fc4]$ snmpwalk -c ######### -v1 172.16.1.1 1.3.6.1.2.1.4.21.1.7.0.0.0.0 | awk -F: '{print $4 }'

172.16.1.254

193
Views
4
Helpful
2
Replies
CreatePlease login to create content