Unsolved
This post is more than 5 years old
8 Posts
0
9247
November 9th, 2012 10:00
PowerConnect2824: cannot configure VLAN via SNMP
My task is to configure dynamically VLAN assignment for the switch ports.
All VLANs are created in the initial switch configuration. I am using OIDs from Q-BRIDGE-MIB: dot1qPvid, dot1qVlanStaticEgressPorts, dot1qVlanStaticUntaggedPorts to assign particular VLAN for particular port. Port PVID is set successfully like this for port 20 and VLAN 123:
$ snmpset -v2c -cprivate switch.lab .1.3.6.1.2.1.17.7.1.4.5.1.1.20 u 123
$ snmpget -v2c -cprivate switch.lab .1.3.6.1.2.1.17.7.1.4.5.1.1.20
SNMPv2-SMI::mib-2.17.7.1.4.5.1.1.20 = Gauge32: 123
dot1qVlanStaticEgressPorts and dot1qVlanStaticUntaggedPorts are updated for VLAN123 automatically:
$ snmpget -v2c -cprivate switch.lab .1.3.6.1.2.1.17.7.1.4.3.1.2.123
SNMPv2-SMI::mib-2.17.7.1.4.3.1.2.20 = Hex-STRING: 00 00 10 00 00 00 ...
$ snmpget -v2c -cprivate switch.lab .1.3.6.1.2.1.17.7.1.4.3.1.4.123
SNMPv2-SMI::mib-2.17.7.1.4.3.1.2.20 = Hex-STRING: 00 00 10 00 00 00 ...
But there is a problem with removing from dot1qVlanStaticEgressPorts and dot1qVlanStaticUntaggedPorts the VLAN that was there before:
$ snmpget -v2c -cprivate switch.lab .1.3.6.1.2.1.17.7.1.4.3.1.2.100
SNMPv2-SMI::mib-2.17.7.1.4.3.1.2.20 = Hex-STRING: FF FF 10 00 00 00 ...
$ snmpset -v2c -cprivate switch.lab .1.3.6.1.2.1.17.7.1.4.3.1.2.100 x 0xFFFF0000...
Error in packet.
Reason: (genError) A general failure occured
Failed object: SNMPv2-SMI::mib-2.17.7.1.4.3.1.2.100
According to tcpdump SNMP set sends the data exactly in the same format as it is returned by SNMP get.
Firmware: 1.0.0.44
Please advice.
P.S. I am using similar technology on other switches (Cisco, Linksys, SMC) without any problem.
Thanks



robertogoaraujo1981
1 Message
0
January 13th, 2021 07:00
I have a Powerconnect 2824
Software Version 1.0.0.45
Boot Version 1.0.0.12
Hardware Version 00.00.02
My NAC Tool reads all configurations, but cannot write new pvid to Switch interface, both in snmp v1 or v2c. Is there any fix for that?
DELL-Josh Cr
Moderator
•
9.4K Posts
0
January 13th, 2021 10:00
Hi robertogoaraujo1981,
Are you able to manually change the configuration from the switch?