- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Change VLAN Port Membership via SNMP
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Change VLAN Port Membership via SNMP
I’m trying to change the VLAN port membership of a couple ports via SNMP on a Netgear GS728TPV2 switch without success. I’ve also tried on a Netgear 308T switch without success.
With the 308T switch, I created two VLANS with IDs 10 and 20. Here is the initial configuration:
VLAN 1
g1-g2, g7-g8 untagged
VLAN 10
g3, g5-g6 untagged, g7 tagged
VLAN 20
g4 untagged, g8 tagged
The PVID assignments are as follows:
I want to move untagged ports g5-g6 from VLAN 10 to VLAN 20. I use these commands. (In the following commands, the “…” represents all zeros for a total of 128 bytes.)
# Change dot1qVlanStaticEgressPorts for VLAN 20.
snmpset -v 2c -c COMMUNITY 192.168.1.2 1.3.6.1.2.1.17.7.1.4.3.1.2.20 x "1D …"
# Change dot1qVlanStaticUntaggedPorts for VLAN 20.
snmpset -v 2c -c COMMUNITY 192.168.1.2 1.3.6.1.2.1.17.7.1.4.3.1.4.20 x "1C …"
# Set PVID of ports g5-g6 to 20.
snmpset -v 2c -c COMMUNITY 192.168.1.2 1.3.6.1.2.1.17.7.1.4.5.1.1.5 u 20
snmpset -v 2c -c COMMUNITY 192.168.1.2 1.3.6.1.2.1.17.7.1.4.5.1.1.6 u 20
# Change dot1qVlanStaticEgressPorts for VLAN 10.
snmpset -v 2c -c COMMUNITY 192.168.1.2 1.3.6.1.2.1.17.7.1.4.3.1.2.10 x "22 …"
# Change dot1qVlanStaticUntaggedPorts for VLAN 10.
snmpset -v 2c -c COMMUNITY 192.168.1.2 1.3.6.1.2.1.17.7.1.4.3.1.4.10 x "20 …"
After the above commands, everything is as expected except ports g5-g6 are still untagged members of VLAN 10. I’ve tried switching the order of the last two commands (set untagged then egress) but still end up with unexpected results.
Any idea what I’m doing wrong?