× NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Orbi WiFi 7 RBE973
Reply

Change VLAN Port Membership via SNMP

MJB97031
Follower

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

 

vlan_status.jpg

The PVID assignments are as follows:

 

vlan_pvids.png

 

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?

Model: GS728TPv2|24-Port Gigabit Ethernet PoE+ Smart Managed Pro Switch with 4 SFP Ports (190W)
Message 1 of 1
Top Contributors
Discussion stats
  • 0 replies
  • 902 views
  • 0 kudos
  • 1 in conversation
Announcements