Using SNMP to add a static route entry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2007 08:49 AM - edited 03-05-2019 02:31 PM
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.192.168.5.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.192.168.5.1
I tried it on a Cisco 2600 and a Cisco 7600 as well, the same answer. SNMP-server communities and views as far as I know are configured OK.
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...)
Thanks in advance,
Andr?s
- Labels:
-
Other Switching
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2007 11:15 AM
The problem here is that you have defined your community as read only. you need to set it as re-writable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2007 01:23 AM
The community has RW access. Any other tips?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2007 04:18 PM
Every now and then I use SNMP to write configuration changes using Solarwinds toolset. So far I have not found any limitations; however, it does not write to those objects directly. It writes configurations to either the startup or merges with the running configuration. When merging with the running config you can change most anything including passwords, or you can remove commands. I am not sure what mib is used for the file transfer commands, but you may want to look in to doing that.
Randy
