04-28-2008 11:46 PM - edited 03-05-2019 10:40 PM
Hi,
I would like to know how do I change a vlan on Cisco 3550 using snmp command? Anyone able to do that?
Solved! Go to Solution.
04-29-2008 01:50 PM
I have never used SNMP before but I found the answer after 3 hours of diging.
I only had a lab enviroment with no real switch, but it worked.
Here it is what you have to do:
Download NET-SNMP-XTRA from http://www.openxtra.co.uk/downloads/net-snmp-download.php
It is free and it has full installer package of the "net-snmp" tool.
Install it on a Windows box, and start Net-SNMP from command prompt (you will see how after the install)
On the switch:
SW(config)#interface vlan1
SW(config-if)#ip address 192.168.100.222 255.255.255.0
SW(config-if)#exit
SW(config)#snmp-server community lab rw
SW#vlan database
SW(vlan)#vlan 10 name Eng
SW(vlan)#exit
From the command prompt use the command below to find the snmp port number on the switch.
C:\Program Files\OPENXTRA\NET-SNMP\usr\bin>snmpwalk -v 2c -c lab 192.168.100.222 1.3.6.1.4.1.9.9.68.1.2.2.1.2
From the command prompt use the command below to set the vlan membership for a port (vlan 10 for port 3 in this example).
C:\Program Files\OPENXTRA\NET-SNMP\usr\bin>snmpset -v 2c -c lab 192.168.100.222 1.3.6.1.4.1.9.9.68.1.2.2.1.2.3 i 10
That's it. Please let me know how did it work out for you.
04-29-2008 01:50 PM
I have never used SNMP before but I found the answer after 3 hours of diging.
I only had a lab enviroment with no real switch, but it worked.
Here it is what you have to do:
Download NET-SNMP-XTRA from http://www.openxtra.co.uk/downloads/net-snmp-download.php
It is free and it has full installer package of the "net-snmp" tool.
Install it on a Windows box, and start Net-SNMP from command prompt (you will see how after the install)
On the switch:
SW(config)#interface vlan1
SW(config-if)#ip address 192.168.100.222 255.255.255.0
SW(config-if)#exit
SW(config)#snmp-server community lab rw
SW#vlan database
SW(vlan)#vlan 10 name Eng
SW(vlan)#exit
From the command prompt use the command below to find the snmp port number on the switch.
C:\Program Files\OPENXTRA\NET-SNMP\usr\bin>snmpwalk -v 2c -c lab 192.168.100.222 1.3.6.1.4.1.9.9.68.1.2.2.1.2
From the command prompt use the command below to set the vlan membership for a port (vlan 10 for port 3 in this example).
C:\Program Files\OPENXTRA\NET-SNMP\usr\bin>snmpset -v 2c -c lab 192.168.100.222 1.3.6.1.4.1.9.9.68.1.2.2.1.2.3 i 10
That's it. Please let me know how did it work out for you.
05-01-2008 09:33 PM
Thanks, your advice worked.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide