articles:portvlanid
This is an old revision of the document!
How to map port name from ifTable to a dot1QVLAN ID
THe following steps can be used to map an ifIndex to a dot1QVLAN ID. This helps with ISP customers of Trisul who also want to see the VLAN ID in the same table as the interface names.
- Retrieve the full dot1dBasePortTable (.1.3.6.1.2.1.17.1.4 ) - snmpwalk .17.1.4
- Lookup the ifIndex in the column dot1dBasePortIfIndex (.1.3.6.1.2.1.17.1.4.1.2) and locate the table index dot1dBasePort(.1.3.6.1.2.1.17.1.4.1.1)
- Retrieve the full dot1qPortVlanTable(.1.3.6.1.2.1.17.7.1.4.5) snmpwalk 17.1.4.1.1
- Lookup the dot1dBasePort from step 2 as the index and get the dot1qPvid (.1.3.6.1.2.1.17.7.1.4.5.1.1).
- This is the VLANID for the ifIndex
articles/portvlanid.1619005043.txt.gz · Last modified: 2021/04/21 17:07 by veera