cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1655
Views
15
Helpful
3
Replies

Mapping physical interface and IP address ?

ffurholm
Level 1
Level 1

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 ?

ffu@dk.ibm.com

1 Accepted Solution

Accepted Solutions

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.

View solution in original post

3 Replies 3

David Stanford
Cisco Employee
Cisco Employee

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."

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

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.

Getting Started

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: