Re: changing the ipAdEntAddr and ifPhysAddress entry order

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On Sun, 2006-02-12 at 21:47 +0100, Taner mehmetali wrote:
> i need the change the order of the Entries for the Loopback ip Adress and
> the network address of the Ethernet Card.
> 
> my ipAddrTable looks like this
> 
> IP-MIB::ipAdEntAddr.127.0.0.1 = IpAddress: 127.0.0.1 //ipAdEntifIndex 1
> IP-MIB::ipAdEntAddr.192.168.2.101 = IpAddress: 192.168.2.101 //ipAdEntifindex
> 65539

Yes - that will always be the case, due to the indexing of the rows.
The rows of this table are ordered by IP address, so 127.0.0.1 will
always come before 192.168.2.101 (since 127 < 192)

If you used a different IP address for your local network,
such as 10.168.2.101, then this entry would come *before* 127.0.0.1
(since 10 < 127)




> and the ifTable looks like this
> 
> IF-MIB::ifIndex.1 = INTEGER: 1
> IF-MIB::ifIndex.65539 = INTEGER: 65539
> IF-MIB::ifDescr.1 = STRING: MS TCP Loopback Interface
> IF-MIB::ifDescr.65539 = Broadcom 440x 10/100 Integrated Controller

What SNMP agent are you querying?
This doesn't look like the Net-SNMP agent, since we'd typically
use ifIndex values of 1, 2, 3, etc

My suspicion is that you're using the standard Microsoft SNMP agent,
as I seem to recall reading that it uses this form of "base+offset"
indexing for network interfaces.

In which case, you'd need to speak to Microsoft about whether/how
to renumber the interfaces.  But I strongly suspect they'll tell
you it's not possible.


What are you actually trying to do?

Dave


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.