how to change a port from one vlan to another
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-29-2008 10:21 AM - edited 03-05-2019 09:28 PM
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.
- Labels:
-
LAN Switching
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-29-2008 10:23 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-29-2008 11:29 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-29-2008 11:35 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-29-2008 12:39 PM
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 ???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-29-2008 10:25 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-29-2008 12:42 PM
to do multiple ports:
interface range fa0/1-25
switchport access vlan 192
