Hi,
I did the following:
1. Modified ip.c file to make sure that IP sub tree is registered as RWRITE.
2. Modified ipaddr_variables changing to RWRITE for IPADDR and IPADNETMASK
3. Modified IP-MIB.txt file
4. configured by the giving the option "--enable-mfd_rewrites" and installed


I could change ipForwarding, but it is not getting effected.
When I tried to change IP Address :

snmpset -v2c -c public 172.16.15.18 .1.3.6.1.2.1.4.20.1.1.172.16.15.18 a 1.1.1.1
Error in packet.
Reason: notWritable (That object does not support modification)
Failed object: IP-MIB::ipAdEntAddr.172.16.15.18



snmpset -v2c -c public 172.16.15.18 ip.ipForwarding.0 i 1 IP-MIB::ipForwarding.0 = INTEGER: forwarding(1)

snmpget -v2c -c public 172.16.15.18 ip.ipForwarding.0
IP-MIB::ipForwarding.0 = INTEGER: notForwarding(2)

Am i correct?

-Bhaskar
Thomas Anders wrote:

Bhaskar wrote:

Can anyone help me out? I could trace the code for setting IP address but when I traced it out it is not hitting at all.


You need to recompile and configure with "--enable-mfd-rewrites" to enable the new-style code.


+Thomas



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders




------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to