Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

how to change a port from one vlan to another

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
Hall of Fame Super Blue

Re: how to change a port from one vlan to another

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

Community Member

Re: how to change a port from one vlan to another

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?

Hall of Fame Super Blue

Re: how to change a port from one vlan to another

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

Community Member

Re: how to change a port from one vlan to another

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

Community Member
Gold

Re: how to change a port from one vlan to another

to do multiple ports:

interface range fa0/1-25

switchport access vlan 192

5021
Views
0
Helpful
6
Replies
CreatePlease to create content