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

Adding static routes with SNMP

Dear All,

I have been working for some time now on how to install a static IP route entry into a Cisco router via SNMP.

I had no access. Is it possible that Cisco routers do not support writable routing table via SNMP?

For example, the command

snmpset -v 2c -c xyz myciscoipaddr IP-FORWARD-MIB::ipCidrRouteTable.ipCidrRouteEntry.ipCidrRouteStatus.1.1.1.1.255.255.255.0.0.159.107.196.1 i 4

gives back

Error in packet.

Reason: notWritable (That object does not support modification)

Failed object: IP-FORWARD-MIB::ipCidrRouteStatus.1.1.1.1.255.255.255.0.0.159.107.196.1

Can anyone help in this? (Note that I know how to give a static route via CLI but I need SNMP for a specific purpose...)

1 REPLY
Cisco Employee

Re: Adding static routes with SNMP

I don't believe the routing table has RW access as of yet to add a static route to via snmp.

There is an enhancement request filed for this support - CSCeb69154

You could try using the following as a workaround:

http://www.cisco.com/warp/public/477/SNMP/copy_configs_snmp.shtml

838
Views
0
Helpful
1
Replies