cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
586
Views
0
Helpful
2
Replies

Configuring a VLAN using SNMP 3550

alanchia2000
Level 1
Level 1

Hi,

I would like to know how do I change a vlan on Cisco 3550 using snmp command? Anyone able to do that?

1 Accepted Solution

Accepted Solutions

pisti_pp
Level 1
Level 1

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.

View solution in original post

2 Replies 2

pisti_pp
Level 1
Level 1

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.

Thanks, your advice worked.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card