All MIBs › DLINKPRIME-VLAN-MIB › dpVlanPortIfMode
dpVlanPortIfMode
Module: DLINKPRIME-VLAN-MIB
OID (symbolic): DLINKPRIME-VLAN-MIB::dpVlanPortIfMode
OID (numeric): 1.3.6.1.4.1.171.28.26.1.1.1.1
Node type: OBJECT-TYPE
Type: INTEGER
Access: read-write
Description: This object indicates VLAN mode for the port. access - this port will be untagged member of the access VLAN configured for the port. hybrid - the port can be untagged or tagged member of all VLANs configured by the user. The purpose of this VLAN mode is to support protocol VLAN, MAC-based VLAN, voice VLAN and dot1q VLAN tunnel application in access side. trunk - this port is either tagged or untagged member port of its native VLAN and can be tagged member of other VLANs configured by the user. The purpose of a trunk port is to support the switch-to-switch connection. dot1qTunnel - the port behaves as an UNI port of a service VLAN. privateVlanHost - the port behaves as private VLAN host port. privateVlanPromiscuous - the port behaves as private VLAN promiscuous port. privateVlanTrunkPromiscuous - the port behaves as private VLAN trunk promiscuous port. privateVlanTrunkSecondary - the port behaves as private VLAN trunk secondary port.
When VLAN mode is changed, the VLAN related setting associated with previous mode will be lost.
What is dpVlanPortIfMode?
This read-write INTEGER object sets the VLAN mode of a switch port, choosing among access, hybrid, trunk, dot1qTunnel, and four private-VLAN roles (host, promiscuous, trunk-promiscuous, trunk-secondary). The mode governs how the port handles tagged versus untagged frames -- an access port carries only its own untagged VLAN, a trunk port tags all but its native VLAN, and switching modes discards the port's prior VLAN-specific settings such as tag lists and native VLAN. For example, an admin connecting a switch-to-switch uplink would set dpVlanPortIfMode to trunk(3) so the port passes multiple tagged VLANs while remaining an untagged member of its native VLAN.
Examples
Walk all instances (SNMPv2c):
snmpwalk -v2c -c public <target> 1.3.6.1.4.1.171.28.26.1.1.1.1 snmpwalk -v2c -c public <target> DLINKPRIME-VLAN-MIB::dpVlanPortIfMode
Get a specific instance (index 1):
snmpget -v2c -c public <target> 1.3.6.1.4.1.171.28.26.1.1.1.1.1 snmpget -v2c -c public <target> DLINKPRIME-VLAN-MIB::dpVlanPortIfMode.1
Set instance 1 (SNMPv2c):
snmpset -v2c -c private <target> 1.3.6.1.4.1.171.28.26.1.1.1.1.1 i <value>
SNMPv3 example:
snmpget -v3 -l authPriv -u snmpv3-user -a SHA -A "AuthPassword1" -x AES -X "PrivPassword1" <target> dpVlanPortIfMode.1
Start monitoring D-Link Prime series switches with a free 30-day trial of IPNetwork Monitor. Create custom SNMP monitor using the DLINKPRIME-VLAN-MIB::dpVlanPortIfMode OID value, configure state conditions and alerts, and monitor any D-Link Prime series switches from a single console.
OID Breakdown
Upper-level ancestors (8 from the standard OID tree / other modules)
| Numeric OID | Name | Module |
|---|---|---|
| 1 | iso | LANART-AGENT |
| 1.3 | org | AirPair-MIB |
| 1.3.6 | dod | AirPair-MIB |
| 1.3.6.1 | internet | AirPair-MIB |
| 1.3.6.1.4 | private | AirPair-MIB |
| 1.3.6.1.4.1 | enterprises | AirPair-MIB |
| 1.3.6.1.4.1.171 | d_link | DE1500-MIB |
| 1.3.6.1.4.1.171.28 | dlinkPrimeCommon | DLINK-ID-REC-MIB |
| Numeric OID | Name | Module |
|---|---|---|
| 1.3.6.1.4.1.171.28.26 | dlinkPrimeVlanMIB | DLINKPRIME-VLAN-MIB |
| 1.3.6.1.4.1.171.28.26.1 | dpVlanMIBObjects | DLINKPRIME-VLAN-MIB |
| 1.3.6.1.4.1.171.28.26.1.1 | dpVlanPortIfCtrlTable | DLINKPRIME-VLAN-MIB |
| 1.3.6.1.4.1.171.28.26.1.1.1 | dpVlanPortIfCtrlEntry | DLINKPRIME-VLAN-MIB |
| 1.3.6.1.4.1.171.28.26.1.1.1.1 | dpVlanPortIfMode | DLINKPRIME-VLAN-MIB |