articles:portvlanid
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
articles:portvlanid [2021/04/21 17:07] – created veera | articles:portvlanid [2021/04/21 17:20] (current) – [MIBS needed] veera | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== How to map port name from ifTable to a dot1QVLAN ID ====== | + | ====== How to map port name from ifTable to a dot1QVLAN ID and Name ====== |
Line 5: | Line 5: | ||
- | - Retrieve the full dot1dBasePortTable (.1.3.6.1.2.1.17.1.4 ) - __snmpwalk | + | - Retrieve the full dot1dBasePortTable (.1.3.6.1.2.1.17.1.4 ) '' |
- Lookup the ifIndex in the column | - Lookup the ifIndex in the column | ||
- | - Retrieve the full dot1qPortVlanTable(.1.3.6.1.2.1.17.7.1.4.5) | + | - Retrieve the full dot1qPortVlanTable(.1.3.6.1.2.1.17.7.1.4.5) |
- 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). | - 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 | - This is the VLANID for the ifIndex | ||
+ | - To retrieve the name of the VLAN . get the full .dot1qVlanStaticTable (.1.3.6.1.2.1.17.7.1.4.3) | ||
+ | - Get the dot1qVlanStaticName .1.3.6.1.2.1.17.7.1.4.3.1.1 against the table index. | ||
+ | |||
+ | |||
+ | ===== MIBS needed ===== | ||
+ | |||
+ | The following MIB modules are referenced. You can use Unbrowse SNMP to load them all from the [[https:// | ||
+ | |||
+ | * IF-MIB | ||
+ | * Q-BRIDGE-MIB | ||
+ | * BRIDGE-MIB | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
articles/portvlanid.1619005043.txt.gz · Last modified: 2021/04/21 17:07 by veera