cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2532
Views
0
Helpful
1
Replies

Adding static routes with SNMP

andras.csaszar
Level 1
Level 1

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 1

David Stanford
Cisco Employee
Cisco Employee

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