Я пытаюсь настроить vlan на netgear GS752TSX из командной строки Linux с помощью netsnmp. Я создал vlan 99 в веб-интерфейсе, и теперь хочу управлять настройками pvid, выходом и тегами. Я определил, что это MIB, которые мне нужно изменить:
dot1qPvid.<port>
dot1qVlanStaticEgressPorts.99
dot1qVlanStaticUntaggedPorts.99
Pvid работает так, как я ожидал:
$ snmpset -r 1 -t 20 -v 2c -c private <switch> dot1qPvid.17 u 99
Q-BRIDGE-MIB::dot1qPvid.17 = Gauge32: 99
$ snmpget -r 1 -t 20 -v 2c -c private <switch> dot1qPvid.17
Q-BRIDGE-MIB::dot1qPvid.17 = Gauge32: 99
как и выходные порты:
$ snmpset -r 1 -t 20 -v 2c -c private <switch> dot1qVlanStaticEgressPorts.99 x 'ff ff ff ff ff ff 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'
Q-BRIDGE-MIB::dot1qVlanStaticEgressPorts.99 = Hex-STRING: FF FF FF FF FF FF 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00
$ snmpget -r 1 -t 20 -v 2c -c private <switch> dot1qVlanStaticEgressPorts.99
Q-BRIDGE-MIB::dot1qVlanStaticEgressPorts.99 = Hex-STRING: FF FF FF FF FF FF 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00
Но снятие тегов с портов, похоже, не помнит мою настройку:
$ snmpset -r 1 -t 20 -v 2c -c private <switch> dot1qVlanStaticUntaggedPorts.99 x 'ff ff ff ff ff ff 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'
Q-BRIDGE-MIB::dot1qVlanStaticUntaggedPorts.99 = Hex-STRING: FF FF FF FF FF FF 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00
$ snmpget -r 1 -t 20 -v 2c -c private <switch> dot1qVlanStaticUntaggedPorts.99
Q-BRIDGE-MIB::dot1qVlanStaticUntaggedPorts.99 = Hex-STRING: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00
Я пробовал netsnmp 5.4.1 и 5.7.2.
Что-то я делаю не так?