cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
524
Views
0
Helpful
2
Replies

Question concerning Port-Indexing on a Cisco 2960

derplord1234
Level 1
Level 1

My task is to find out the neighbors of the 2960 on the port with SNMP.

iso.0.8802.1.1.2.1.4.1.1.7 ->

     iso.0.8802.1.1.2.1.4.1.1.7.0.25.1 = STRING: "1/g23"

As far as I understand that does mean that on local port 25 there is a connection to 1/g23 of the connected switch.

But...

IF-MIB::ifIndex

     ...    

     IF-MIB::ifIndex.10123 = INTEGER: 10123

     IF-MIB::ifIndex.10124 = INTEGER: 10124

     IF-MIB::ifIndex.10125 = INTEGER: 10125

     IF-MIB::ifIndex.10126 = INTEGER: 10126

     IF-MIB::ifIndex.10127 = INTEGER: 10127

     ...

Is the port with the index 10125 the same as just 25 above?

1 Accepted Solution

Accepted Solutions

Rolf Fischer
Level 9
Level 9

Hi,

you can validate the different interface enumeration types with

1) LLDP-MIB::lldpLocPortId

Example:

iso.0.8802.1.1.2.1.3.7.1.3.1 = "Fa0/1"

iso.0.8802.1.1.2.1.3.7.1.3.2 = "Fa0/2"

(...)

2) CISCO-STACK-MIB::portIfIndex

Example: 

enterprises.9.5.1.4.1.1.11.1.1 = 10001

enterprises.9.5.1.4.1.1.11.1.2 = 10002

(...)

ifName.10001 = Fa0/1

ifName.10002 = Fa0/2

(...)

Hope that helps

Rolf

View solution in original post

2 Replies 2

Rolf Fischer
Level 9
Level 9

Hi,

you can validate the different interface enumeration types with

1) LLDP-MIB::lldpLocPortId

Example:

iso.0.8802.1.1.2.1.3.7.1.3.1 = "Fa0/1"

iso.0.8802.1.1.2.1.3.7.1.3.2 = "Fa0/2"

(...)

2) CISCO-STACK-MIB::portIfIndex

Example: 

enterprises.9.5.1.4.1.1.11.1.1 = 10001

enterprises.9.5.1.4.1.1.11.1.2 = 10002

(...)

ifName.10001 = Fa0/1

ifName.10002 = Fa0/2

(...)

Hope that helps

Rolf

Thank you, that was exactly what I needed :)

Review Cisco Networking products for a $25 gift card