02-11-2013 11:02 PM - edited 03-07-2019 11:39 AM
How do I create a VLan and migrate PC1 and PC2 to my new VLAN?
02-12-2013 12:18 AM
Hi Lionel,
Its pretty easy. Please find below the procedure to create the vlan and migrate the interface on to that vlan.
Eg:
PC1---F0/1---Switch------------F0/2--PC2
Think PC1 and PC2 are in the same vlan. (Vlan 10)
Switch#vlan 10
Switch(config-vlan)#name vlan10
Switch#end
% Applying VLAN changes may take few minutes. Please wait
Or you can enter into the vlan database and create the vlan there.
Switch#vlan data
Switch(vlan)#vlan 10
Switch(vlan)#exit
2)
Now go the interface and apply the vlan to it.
Switch# config t
Switch# int f0/1
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 20
Switch(config-if)#end
Switch# int f0/2
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 20
Switch(config-if)#end
thats it.
Please find link below which explains about vlan configuration:
HTH.
REgards
Inayath
*Plz rate if this helpfull.
02-12-2013 04:46 PM
Thank you!!!!
02-12-2013 11:28 PM
Thanks for the update Lionel.
Please do remember to rate the content if that helps.
Regards
Inayath
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide