I've been writing some scripts that are supposed to allow me to change the VLANs statically assigned to a port using Net SNMP 5.1.1's version of snmpset on the vmVlan object that is part of the CISCO-VLAN-MEMBERSHIP-MIB MIB.
The problem is that I can't seem to change the value of vmVlan.<if index>. I get a response back from snmpset stating that the value has changed, but when I later interrogate the switch (Cat 2950) the VLAN assigned to the port is unchanged. This only seems to be a problem with ports that are currently forwarding though. I can do the same thing on a port that does not have a host connected to it, and it works. To make the problem more confusing, I've tried doing a 'shut' on the port before changing the VLAN, but I get the same result.
Is there something else I have to do to change the static VLAN of a port with a host currently connected? Can anyone shed some light on how I might get around this? Is this maybe a result of a software bug in setsnmp or in the switch?
Any help would be much appreciated...
Regards,
Lyle Cameron