cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
652
Views
0
Helpful
3
Replies

Setup ports that belongs to a certain VLAN

Luminaire
Level 1
Level 1

Hi everyone, 

As I'm a bit new at configuring switches, I now have a task to perform quickly on several switches we have in the company.

Here's what I do:

sh int status | i ( 20 )

I need to setup all ports that belongs to a VLAN (VLAN ID 20 here) but doing ranges can be a source of error in my case.

Is there a fastest way to do that?

Equipement used is Catalyst 3560 PoE-48

Thanks in advance.

3 Replies 3

Iulian Vaideanu
Level 4
Level 4

You could prepare the config changes "offline" (in a text file for example - either by hand or by some scripting based on that port list) and double-check it before copy-pasting the commands in a telnet or console session...

Thanks Iulian for your input.

So if I understand well, there's nothing I can do with CLI's 'but just to apply your suggestion?

No easy way that I'm aware of - it may be possible to write a TCL script (and run it on the switch using tclsh) to do it, but I have absolutely no experience with that...

Review Cisco Networking for a $25 gift card