cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
54869
Views
0
Helpful
6
Replies

how to change a port from one vlan to another

ksakrunner
Level 1
Level 1

Hi,

I am a complete noob on the subject of Cisco switches. I have WS-C3560-48TS-S switch. Someone preconfigured ports 1-48 to be in vlan 172. I want to change some of the ports to be in vlan 192. (This vlan already exists.) And I don't want to goof the whole switch up. I can telnet in to the switch but don't know the specific commands. Can anyone help? Thanks.

6 Replies 6

Jon Marshall
Hall of Fame
Hall of Fame

Hi

To configure a port into a vlan

3560(config)# int gi1/25

3560(config-if)# switchport access vlan 192

Do the above for each of your ports.

HTH

Jon

Thanks,

so the switch I have is named Tswitch, and I am at the prompt.

so I have: Tswitch>

So the commands would be:

I am not sure how to get into the config prompt.

Tswitch(config)# int Fa0/5 I want (port 5)

Tswitch(config-if)# switchport access vlan 192

do I have to save it?

Okay, you need to go into enable mode and then into config mode. So type the following in and hit return at the end of each line

Tswitch> en

Password: < enter your enable password here >

** Note if an enable password has not been sent it will take you straight through to the enable prompt - which is

Tswitch#

then

Tswitch# conf t

Tswitch(config)#

Follow previous instructions from earlier post then

Tswitch(config-if)# exit

Tswitch(config)# exit

Tswitch# wr mem <-- this will save your config.

then

Tswitch# sh vlan

this will show which ports are in which vlan.

HTH

Jon

Great - it worked.

************

to change port 5 from vlan 172 to 192

Telnet into switch

Tswitch> en

Tswitch# conf t

Tswitch(config)# int Fa0/5

Tswitch(config-if)# switchport access 192

Tswitch(config-if)# exit

Tswitch(config)# exit

Tswitch# wr mem <-this will save your config.

Tswitch# sh vlan (this shows which ports are in which vlan)

******

to do multiple ports I would do

Tswitch(config)# int Fa0/1-25 ???

to do multiple ports:

interface range fa0/1-25

switchport access vlan 192

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: