cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
382
Views
5
Helpful
3
Replies

How Do I Create a vLan?

LRITTTech870
Level 1
Level 1

                   How do I create a VLan and migrate PC1 and PC2 to my new VLAN?

3 Replies 3

InayathUlla Sharieff
Cisco Employee
Cisco Employee

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:

http://www.cisco.com/en/US/docs/switches/lan/catalyst2950/software/release/12.1_9_ea1/configuration/guide/swvlan.html

HTH.

REgards

Inayath

*Plz rate if this helpfull.



LRITTTech870
Level 1
Level 1

Thank you!!!!

Thanks for the update Lionel.

Please do remember to rate the content if that helps.

Regards

Inayath

Review Cisco Networking for a $25 gift card