Tech Support > Computer Hardware > Routers > Switching VLAN configuration with a script from within the net
Switching VLAN configuration with a script from within the net
Posted by Andreas Seeking on January 29th, 2005


I teach operating systems and software development in the same
classroom.

So I want to change the VLAN configuration sometimes:

* In the software development lessons I want all stundents to have
access to our servers.
* In the operating system lessons I want them to have small LANs with
access to the Internet but no access to other computers on the
network, so the students can set up a DHCP server for example without
disturbing the normal DHCP service at our place.

Since we want to buy networking hardware and software in the near
future I'd like to know

* where to find technical information about such problems
* what hardware to buy
* which software I need to manage it and
* how to write a script that I can invoke from the instructor's
computer to change the configuration - so colleagues can change the
configuration easily.

Thanks for all ideas and pointers!

Andreas

Posted by Arnold Nipper on January 29th, 2005


On 29.01.2005 18:07 Andreas Seeking wrote

http://www.cisco.com

e.g. a WS-C3550-24-SMI 24-10/100 + 2 GBIC ports: SMI
or a WS-C3550-48-SMI 48-10/100 + 2 GBIC ports: SMI

will do depending on size of your classes. Of course there also other
models as well as other vendors.

IOS is already on the switches.

Get RANCID (http://www.shrubbery.net/rancid/) and changing vlan can be
as easily as:

given you have a switch myswitch running CatOS and Vlan 2 for OS and
Vlan 3 for SD, switching from OS to SD would be

clogin -c "set vlan 2 1/1-48" myswitch

For IOS the example might be a bit longer but also straightforward


Arnold


Similar Posts