Jump to content
Калькуляторы

SNR-S2950-24G SNMP Vlan management HOWTO Управление VLANами по SNMP

Коллеги, хотелось бы получить небольшое howto по управлению принадлежностью порта вланам на s2950 по SNMP.

 

Стандартные oid из qBridgeMIB работают только на чтение, на запись получаем ошибку:

 

nm# snmpget -v2c -c <community> 192.168.100.1 .1.3.6.1.2.1.17.7.1.4.3.1.4.1
SNMPv2-SMI::mib-2.17.7.1.4.3.1.4.1 = Hex-STRING: 7F FF FF C0

nm# snmpset -v2c -c <community> 192.168.100.1 .1.3.6.1.2.1.17.7.1.4.3.1.4.1 x ffffffc0
Error in packet.
Reason: undoFailed
Failed object: SNMPv2-SMI::mib-2.17.7.1.4.3.1.4.1

 

Тоже-самое касается и dot1qVlanStaticEgressPorts (.1.3.6.1.2.1.17.7.1.4.3.1.2).

 

Сильно подозреваю, что управление ведется через другие vendor-specific oid, а oid из qBridgeMIB оставлены в RO для обратной совместимости по мониторингу, но не менеджменту.

Share this post


Link to post
Share on other sites

MIBы тут http://data.nag.ru/SNR%20Switches/MIBs/

Берем S2950-24G.mib

--xxx.100.3.2.1.15
           portMode  OBJECT-TYPE
               SYNTAX      INTEGER
               {
                       access(1),
                   	trunk(2),
                   	hybrid(3)                   	
               }                                   
        MAX-ACCESS  read-write
	        STATUS      current
        DESCRIPTION 
        	"port mode: 1 is access,2 is trunk,3 is hybrid"
        ::= { priPortEntry 15 }	

--xxx.100.3.2.1.16
           pvid  OBJECT-TYPE
               SYNTAX      INTEGER                                   
        MAX-ACCESS  read-write
	        STATUS      current
        DESCRIPTION 
        	"port of native vlan No."
        ::= { priPortEntry 16 }	

Где xxx - это enterprises.6339

 

Allowed vlans и т.п. сам можешь найти.

Edited by zorn

Share this post


Link to post
Share on other sites

Установить native VLAN на порту (switchport access vlan xxx):

snmpset -v2c -c private x.x.x.x .1.3.6.1.4.1.6339.100.3.2.1.16.N i M

где:

x.x.x.x - IP коммутатора,

N - номер порта

M - PVID VLAN’a

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.