- Community Home
- >
- Networking
- >
- Legacy
- >
- Switches, Hubs, Modems
- >
- snmp: ifIndex to vlan mapping for internal interfa...
Switches, Hubs, and Modems
1824487
Members
3509
Online
109672
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2009 01:30 AM
тАО08-20-2009 01:30 AM
Hi,
I'm working on some management scripts using snmp for our Procurve switches. I've run into a problem that I don't seem to find a good solution for...
Example: On our core switch (which is also doing most internal routing) we have a VLAN id 10. The switches interface on this VLAN has IP address 10.0.1.1/24, and seem to have ifIndex 419. However, the dot1qPvid table does not seem to contain the switches internal interfaces, only the physical ports on the switch. So, how can I find these mappings?
Best regards,
/Martin
I'm working on some management scripts using snmp for our Procurve switches. I've run into a problem that I don't seem to find a good solution for...
Example: On our core switch (which is also doing most internal routing) we have a VLAN id 10. The switches interface on this VLAN has IP address 10.0.1.1/24, and seem to have ifIndex 419. However, the dot1qPvid table does not seem to contain the switches internal interfaces, only the physical ports on the switch. So, how can I find these mappings?
Best regards,
/Martin
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-04-2009 01:50 PM
тАО10-04-2009 01:50 PM
SolutionTo do this, we use the vlan name, to
cross reference between:
Q-BRIDGE-MIB::dot1qVlanStaticName
and
interfaces.ifTable.ifEntry.ifDescr
(scan all of them in both tables, and
connect them up by name, in an array)
e.g.
Q-BRIDGE-MIB::dot1qVlanStaticName.643 = STRING: as-wifi-v1
IF-MIB::ifDescr.1052 = STRING: as-wifi-v1
This vlan 643 is ifindex 1052, because
the names match. (yes, this is kludgey)
Then, look at all entries in:
IP-MIB::ipAdEntIfIndex
and find the one with value 1052, e.g.
IP-MIB::ipAdEntIfIndex.172.16.6.145 = INTEGER: 1052
and look at:
IP-MIB::ipAdEntNetMask
e.g.
IP-MIB::ipAdEntNetMask.172.16.6.145 = IpAddress: 255.255.255.240
Thus, vlan with tag 643 has ip/mask of
172.16.6.145 / 255.255.255.240
Check in the config, it is correct:
vlan 643
ip address 172.16.6.145 255.255.255.240
Bruce Campbell
Director, Network Services
Information Systems and Technology
MC 1018
(519)888-4567 x38323
University of Waterloo, Waterloo, ON
Director, Network Services
Information Systems and Technology
MC 1018
(519)888-4567 x38323
University of Waterloo, Waterloo, ON
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-16-2009 06:34 AM
тАО10-16-2009 06:34 AM
Re: snmp: ifIndex to vlan mapping for internal interfaces?
Ok, thanks. I figured that you could do it this way, but I was not sure that it was the right way to do it. But now I know. :-)
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP