Hi,

 

I have to configure the IP address of eth1 interface of a network
device.

That device have 2 interfaces - eth0 and eth1.

 

My app will send snmp set to eth0 and try to set the IP of eth1.

For time being I am using snmpv2, but later I will use v3.

And added "rwcommunity public" in snmpd.conf

I can get the IP address of the eth1 interface by

 

[root@localhost ~]# snmpget -v 2c -c public 10.20.20.20
ipAdEntAddr.10.10.10.10

IP-MIB::ipAdEntAddr.10.10.10.10 = IpAddress: 10.10.10.10 

 

If I have to change the ip address to, say 10.10.10.30, what I have to
do?

The permission for that OID is read-only.

So I can't issue a set command.

If  I am querying the wrong OID, please tell me the correct OID.

 

And why the name of OID itself contain the IP Address.

I mean why the OID name is like ipAdEntAddr.10.10.10.10 instead
ipAdEntAddr.1

 

And do I have to create a new instance of the Object to set the IP
address.

 

 

I am not sure whether I was able to express my doubt. 

That's why I have drawn a simple picture.

 

                      Eth0               ____________________
Eth1

              10.20.20.20        |
|    10.10.10.10

App     -------------------|          Network Device
|--------------

                  SNMPSET       |____________________|    This IP is to
be changed

 

 

 

Thanks and regards,

Basil Joseph.

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to