06-08-2006 06:16 AM
I am trying to map the physical interfaces on a router with their IP adresses.
I am looking for the MIB object-tables to use for this - can anyone help me ?
Solved! Go to Solution.
06-08-2006 11:13 PM
For this you will need to use the ipAddrTable (1.3.6.1.2.1.4.20) and cross-reference the ifIndex value from ipAdEntIfIndex to, for example, ifDescr. So, on a 7206, you could get:
RFC1213-MIB::ipAdEntAddr.10.10.100.75 = IpAddress: 10.10.100.75
RFC1213-MIB::ipAdEntIfIndex.10.10.100.75 = INTEGER: 3
Meaning ifIndex 3 has an IP address of 10.10.100.75. If that is cross-referenced to ifDescr, we see:
IF-MIB::ifDescr.3 = STRING: FastEthernet0/0
Therefore, interface FastEthernet0/0 has IP address 10.10.100.75.
06-08-2006 07:23 AM
You can look at the RFC1213-MIB, specifically:
.1.3.6.1.2.1.4.22
ipNetToMediaTable OBJECT-TYPE
-- FROM RFC1213-MIB
DESCRIPTION "The IP Address Translation table used for mapping from IP addresses to physical addresses."
06-08-2006 11:06 PM
I think this table maps IP addresses to MAC-adresses.
What I need is :
My GigabitEThernet 0/0 has IP address ?
Serial0/0/0 has IP address ?
and so on for alle interfaces on my router
06-08-2006 11:13 PM
For this you will need to use the ipAddrTable (1.3.6.1.2.1.4.20) and cross-reference the ifIndex value from ipAdEntIfIndex to, for example, ifDescr. So, on a 7206, you could get:
RFC1213-MIB::ipAdEntAddr.10.10.100.75 = IpAddress: 10.10.100.75
RFC1213-MIB::ipAdEntIfIndex.10.10.100.75 = INTEGER: 3
Meaning ifIndex 3 has an IP address of 10.10.100.75. If that is cross-referenced to ifDescr, we see:
IF-MIB::ifDescr.3 = STRING: FastEthernet0/0
Therefore, interface FastEthernet0/0 has IP address 10.10.100.75.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: