Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Mapping physical interface and IP address ?

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
Cisco Employee

Re: Mapping physical interface and IP address ?

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.

3 REPLIES
Cisco Employee

Re: Mapping physical interface and IP address ?

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

New Member

Re: Mapping physical interface and IP address ?

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

Cisco Employee

Re: Mapping physical interface and IP address ?

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.

606
Views
15
Helpful
3
Replies
CreatePlease login to create content