how to change a port from one vlan to another

Unanswered Question
Feb 29th, 2008


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.

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Jon Marshall Fri, 02/29/2008 - 10:23


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.



ksakrunner Fri, 02/29/2008 - 11:29


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?

Jon Marshall Fri, 02/29/2008 - 11:35

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# conf t


Follow previous instructions from earlier post then

Tswitch(config-if)# exit

Tswitch(config)# exit

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


Tswitch# sh vlan

this will show which ports are in which vlan.



ksakrunner Fri, 02/29/2008 - 12:39

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 ???

srue Fri, 02/29/2008 - 12:42

to do multiple ports:

interface range fa0/1-25

switchport access vlan 192


This Discussion