How to modify switch (ECS3510-28T) IP address via SNMP ?

Steven_zhangCreated at:Dec 11, 2019 14:17:42Updated at:Dec 11, 2019 14:17:50

Notes: New software enhancement is only available for firmware version 1.5.2.7 or above.

 

The current Switch IP address is 192.168.1.1.

mceclip0.png

To use SNMP OID to modify IP address to 192.168.22.1.

[SNMPSET command format]

snmpset -v 2c -c private {original switch ip} { netConfigStatus | netConfigPrimaryInterface }.{ netConfigIfIndex }.{ netConfigIPAddress }.{ netConfigSubnetMask } {integer} {value}

 

For netConfigStatus, OID 1.3.6.1.4.1.259.10.1.27.1.10.1.1.6

 The status of this conceptual row entry.

 active(1), notInService(2), notReady(3), createAndGo(4), createAndWait(5), destroy(6)

 

For netConfigPrimaryInterface, OID 1.3.6.1.4.1.259.10.1.27.1.10.1.1.4

 Set OID 1.3.6.1.4.1.259.10.1.27.1.10.1.1.4 to primary(1) means primary interface.

 Set OID 1.3.6.1.4.1.259.10.1.27.1.10.1.1.4 to secondary(2) means secondary interface.

 

For netConfigIfIndex,

 The VLAN interface being used by this table entry.(VLAN_ID+1000)

 

For netConfigIPAddress,

 The IP address of this Net interface.

 

For netConfigSubnetMask,

 The subnet mask of this Net interface.

 

C:\>snmpset -v 2c -c private 192.168.1.1 1.3.6.1.4.1.259.10.1.27.1.10.1.1.6.1001.192.168.22.1.255.255.255.0 i 5
C:\>snmpset -v 2c -c private 192.168.1.1 1.3.6.1.4.1.259.10.1.27.1.10.1.1.4.1001.192.168.22.1.255.255.255.0 i 1
C:\>snmpset -v 2c -c private 192.168.1.1 1.3.6.1.4.1.259.10.1.27.1.10.1.1.6.1001.192.168.22.1.255.255.255.0 i 1

mceclip1.png

 

Result

mceclip2.png