FREE VIDEO: How to Configure VLAN s in the Cisco IOS

by David Davis on January 1, 2008

Recently, I created a short video that shows you how to configure and use VLAN s on a Cisco IOS Router & Switch. It is a step-by-step 15 minute video. It was originally published over at A virtual LAN (VLAN) is a broadcast domain created by switches. VLANs are a convenient way to connect ports from different switches and different buildings onto the same network and broadcast domain, preventing the need for a complex system of subnets.

In this video, you will learn how to configure a VLAN in this step-by-step, automated, 15-minute demo. I am a CCIE Cisco networking expert and I will walk you through the steps you’ll need to configure your routers and switches, set up and assign the trunk ports, and perform the necessary tests to get traffic moving across your VLAN successfully. You can view the configuration commands I used in the video at the bottom of this page.

Oh – if you would like to see an EXCELLENT video training course that covers all aspects of VLAN configuration, switch configuration, and prepares you for the CCNP, please check out the Train Signal Cisco CCNP Training Video Series – 642-812 BCMSN


Click Play to begin the video or Click Here to see the video in its full-size - Sample VLAN Configuration

Configuration commands

Router commands
Interface fastethernet 4.1
Encapsulation dot1q 10

Interface fastethernet 4.2
Encapsulation dot1q 20

Interface fastethernet 4
No shutdown

Show ip interface brief
Show vlans

Switch commands
Interface fastethernet 2/0
Switchport access vlan 10
No shutdown

Interface fastethernet 5/0
Switchport access vlan 20
No shutdown

Interface vlan 10
Ip address x.x.x.x y.y.y.y
No shutdown

Interface vlan 20
Ip address x.x.x.x y.y.y.y
No shutdown

Show vlan brief
Show interfaces switchport
Show ip interface brief
Show int trunk

{ 98 comments… read them below or add one }

Suhas 04.22.08 at 5:18 am

Hello Sir,
I am Suhas from Bangalore,INDIA. I am planning to write a CCNA exam next month (may,2008). I have come accross your CCNA material (VLAN configuration) todya and found that very informative.

Could you please give me some pointers to prepare my CCNA exam? Thanks a lot for your help,

cyril 04.26.08 at 8:26 pm


great work,buddy the information on VLANS was really very helpful to me.thanx .kep it up.god bless u.


raja 05.09.08 at 3:35 pm

the guide about the vlan is prefect, :) Thanks alot David Davis :)
all the best in your future acticles

Modou Sowe 05.12.08 at 9:42 am

Hello sir,
I am Modou from The Gambia the VLAND configuration was relly helpful to me . thanks keep it up

sunil 05.12.08 at 12:34 pm

i have create vlan my diffrent vlan ping to each other but
my default gateway is not ping default gateway is use for internet
Cisco ASA CSC SSM firewall
Cisco 3750 Switch

i have configar all in layer 3 switch (3750-24ts)

my vlan1 -
vlan 3-

default gateway is

Prabhaheren 05.23.08 at 10:35 pm

Thanks so much I have really gained an incredible idea on VLAN config after this wonderful demonstration

kilungya 05.27.08 at 8:25 am

I wish to thank for accepting to share your knowledge with us,am now a step ahead towards my preparations for CCNA exams any other link to more details will be highly appreciated

from kenya

arjun 06.01.08 at 1:16 pm

really thank you very much to gain knowledge in really help a lot.

irfan khan 07.17.08 at 5:48 am

yes very good comments

sathish 07.28.08 at 12:25 pm

could u sent me router configuration video file send me my mail id

Thanks ya

PRUDENCE 08.21.08 at 2:52 pm

Am preparing to write my CCNA exams and i need help from you to prepare me well for my exam.Your Vlan is superb,i want you to duell more on all aspect of Vlan thanx.

shiva 09.23.08 at 2:55 pm

Hello sir,
i am preparing to write a ccna exam ,i need some ideas.the vlan configuration very nice

hamma 10.06.08 at 4:42 am

I am in afghanistan working with secureCRT on the system using it to navigate to the routers and switches, but have limited experince with the program, do you have any suggestions fro me?

Sakona 10.15.08 at 9:01 am

It is very nice i would like this video site and i understand how to configure VLAN

Alonzo 11.08.08 at 8:51 am

awesome demo! Thanks for clarifying vlans!!

Bennet 12.09.08 at 5:01 am

Dear David,

I like your video about VLANS.I found it very interesting to listen,But pls add some more information related to security issues that VLANS have.

Thanks 4 ur guidence
Benet Christian(INDIA)

Nitesh 01.18.09 at 11:11 pm

Content help me a lot thnax

Biswajit Das 01.28.09 at 1:33 pm

Dear Sir Thank you very much for your Great Video. I Salute You

Please don’t stop

Sugeetha Gunasekara 02.15.09 at 11:44 am

It is very nice to understand what is vlan and how it works. Yr explanation is good to know everyone who has doubt about Vlans. Thanks


Muhammad Shahbaz Naeem 03.08.09 at 3:49 am

Dear Mr. David Davis,

It’s very easy, simple and nice video to learn for VLAN Configuration.
I really appreciated to you sharing for this.
thank you very much.
With best Regards,

Steve 03.11.09 at 12:58 am

Hi Sir,

Thanks for this video.

I have a question. i have been trying to set me fa ports to “switchport mode access” but when i use “sh run” my port is not set to mode access.

Aooreciate if you could advise


Andy Desai 04.08.09 at 7:12 pm

Hello David,
This is the best explanation I have found. Very well explained. Two thumbs up, Five Star. It helped me at right time. Hope to learn more from you.

Andy Desai

gagamboy 04.10.09 at 9:35 am

Great video and thanks for sharing. But I have a comment, in putting ip address in vlan, you’ve mention that it is for management only? as far as I know it should be a gateway of the client pc (ex.vlan10) in order to travel to different vlan or maybe the router itself(subinterface) is the gateway for 2 vlans.

Thanks and more power to you David.

mujib 04.26.09 at 1:12 am

hi, sir
thank you for guide to all of us to guaide ccna. i hope in thise fild so vacancis. 7 very attractive job’s. once agian thnk you for you.

IBAHIM 05.06.09 at 5:14 pm


Neilt of 360 05.18.09 at 9:26 am

Your video was of great help in getting an understanding of VLANS even though we are not a Cisco house. Thankyou

jayesh 05.23.09 at 10:57 pm


Nice work Pal, It works even for Beginners.

Björn 05.29.09 at 3:18 am

Hi Sir,
today i watched your movie. Great job, helped me a lot to understand vlan.
Thank you sir,

best regards

Bosco 06.03.09 at 2:17 pm

Hi David,
Brillaint work…u taught me VLANS in15:06 mins….great job..
God bless you..

waqar 06.06.09 at 1:02 am

hey .
m waqar from Pakistan. M preparing for my CCNA .This video about VLAN turned out to be very useful for me.Now ican easily conf. the VLAN’s ,manage them create trunk port.This is so ko0l .Thanks David for free video tutorial.
you r so genius .

SUGUMAR 06.10.09 at 3:45 am

Hi David,
This is quite good video representation for understanding of Vlan and trunk configuration.

Many many thanks,


kilof 06.21.09 at 6:46 am

yes it really works
thank you very much

MOhamed 07.07.09 at 8:15 am

i can’t found comm Encapsulation dot1q 10
on router 1603r
! !! ! ! ! !

pankaj mishra 07.31.09 at 12:35 am

supperb it helps alot for begginers also.

NIRANJAN 08.01.09 at 11:28 pm

thanks u. I have learn vlan and try on 2950 switch all is going properly when I want to
ping pc/router/default gateway frm switch a error come ” unrecognized command and
protocol is not running all 12 ports show administratively down but they r up. how
will i do

GAURI SHANKER 08.08.09 at 4:40 am

thanks for it sir
it is supperb

Bashir 08.14.09 at 9:41 pm

Hi sir i am Bashir from Afghanistan i have watching this viedo but i have didnt catch any thing from it please sir tell me about vlan haow it use what is tthe need of it


TAMIM Ghazi 08.18.09 at 3:18 am

thanks alot for such a good works

phosika 09.05.09 at 10:20 pm

How can i configure VLAN for cisco ME3400 (ME-3400-24TS-A) IOS is Cisco ME 3400 Series METROBASE work as trunk for cisco router

umesh 09.07.09 at 8:12 am

your vlans video is best for learning thanks.

Shaikh Asma 09.09.09 at 5:08 am

hi, sir
thank you for guide to all of us to guide CCNA. I hope in this field so vacancies & very attractive job’s. once again thank you for you.

andy 09.12.09 at 12:37 pm

hi sir
i like to ask if pc 1 from vlan 10 have a ip address while pc 2 have from vlan 20 have a ip address of ,from what i know all i need to do is change the ip address on the router itself .but for my router have only 2 interface port and one of interface port FA 0/1 is connect into my vlan switch while the other FA 0/0 is connected into my firewall .right now from my router i can ping to my pc2 but cant to my pc 1 ,i like to ask is it my subnet mask got a problem as i using for both pc1 and pc 2 or could it be the configuration got a problem ???as i believe is my subnet mask got a problem .i can’t seem get the both PC to talk to each other

Ugith Jayamanna 09.27.09 at 3:01 am

Professional and worthy piece of video clip on Vlan. Really usuful and Not have seen anywhere so far.

Thank You Sir!

Wijenanda 10.01.09 at 10:38 pm

Dear Sir

Thank you very much for your VLAN vedio. Great work.

Best regards

balaji 12.03.09 at 8:02 am

thank you sir

Jake 12.23.09 at 10:48 am

Thanks for the demo, especially on the sub-interfaces portion….very helpful, looking forward to more from you!

jayakumar.p 01.11.10 at 8:54 am

good sir

belarmino nms 01.17.10 at 8:20 pm

thanks for your VLAN explanation ,,,,, but i’d like to know how to configure my VLAN to comunicate each other


Shoaib Haydari 01.23.10 at 10:21 pm

Thanks for this site so good

vikram 02.01.10 at 5:26 am

thnx david davis it was a very helpfull to me keep it up


abhi 03.08.10 at 6:08 am

Hello sir,
Good expaination given by you…………..i am using packet tracer 5.0 and have configured as above but two hosts are not able to ping each other(request timed out)………

Nehal 03.08.10 at 11:10 am

Realy i got a informative vedio of Vlan configuration.I hope you will load such type of vedio which would be very important for growth the career in technical field.

Thanks a lot.

Nehal Ahmad Sabri 03.08.10 at 11:27 pm

Actullay i have packet tracer 5.2 version,I wanted to configure a small lab for testing where router,switch,firewall,pc would communicate to each other but unable to do the same and need help from your side,if you provide the related i would be oblise to you.

Thanks & Regards
Nehal Ahmad Sabri

Tiru 03.18.10 at 8:13 am

Thank you very very much. You saved my day.

mohsin 03.28.10 at 2:10 am

Nice work, Its so interesting to listen and for freshers it will be very helpful

Jay 03.29.10 at 11:56 pm

Very nice tutorial :)

ptrancaZo-dela-milpa 04.19.10 at 4:11 pm

i normally learn in the hard way, but your video made my day! it makes it too easy mi amigo.

Klauss 05.04.10 at 9:11 am

I am new to Cisco. I followed the entire setup step by step and still having trouble pinging from one vLAN to the other. In fact, I cannot have both vLAN 10 and vLAN 20 up at the same time. What extra work did you do to make this work? Thank you.

jitendra puri 05.16.10 at 11:52 pm

thanks very mutch

Nooroa 05.27.10 at 6:47 pm

Hi David,
Very informative video tutorial..appreciate it. can you help me pse?
I have setup our Network using Fiber connections with 2 x 3750 Cisco switches and 3 x 2960 Cisco with POE features .Integrating Airlines systems , Agencies- Police, Customs, Immigrations,Health, Agriculture ,and duty frees at our new terminal.
The question now is how to configure each of the ports for respective VLANS?


Shyju Antony 06.22.10 at 12:53 am

thank you very much and may the god bless you and your family….

paricha 06.22.10 at 12:02 pm

hi i wish information to VLAN if send in formation to me than you

nitin 06.28.10 at 1:20 pm

thanks sir it was very simple to understand.

Gregory 07.04.10 at 5:58 pm

On the first slide “Any connection that carries traffic from more than 1 VLAN is called a trunk port” -> a VLAN port can be assigned to 2 VLANS (ip telephony + normal traffic) without being trunk port.

Nadeem Mallick 08.04.10 at 3:24 am

David Davis thank you very much for this video,,,,tha is perfect abt the Vlan…
Thanks alot……..
Best Regard
Nadeem Mallick
Network Engineer

Hawkar 08.09.10 at 12:13 am

Hello,sir thank you…..It is very nice i would like this video site and i understand how to configure VLAN….

Walter Johnson 08.10.10 at 9:44 pm

Great video about VLan
Thanks for your help

Abhishek Srivastava 08.27.10 at 3:35 am


Thanks a lot. I finally understood the VLANS. It was quick and sweet.

Abhishek Srivastava
Linux L2, IBM India

olova 09.06.10 at 8:42 pm

nice video tutorial and want a free copy of the video

Hoklean 09.21.10 at 10:31 pm

Hi, Thanks for sharing this knowledge.

Joe B. Tarpeh 10.18.10 at 4:27 pm

i m finding configuring router and switches

Jazi 11.06.10 at 7:07 am

i needed complete video / how can we create 9 vlan and what is static routing

Neil 11.08.10 at 3:56 am

Thank David for your helpful vlan share. This is what I have been looking for.



DEEPAK JANGID 12.13.10 at 4:24 pm

thanks a lot for brief vlan tutorial..thanksa lot..

networking-dummies 01.02.11 at 5:39 am

thank for the video i’m tried for learn about vlan and cisco

sunil prasad 03.03.11 at 11:36 pm

hi! sir,
thank a lot for guide us through ur excellent video presentation .
hope you’ll carry on.

Ernest 05.23.11 at 8:20 am

your video is very interesting and i really enjoy watching. i also jot something down but please can i get a free copy and other ones as well thank you very much.

Hem Kumar 05.24.11 at 7:56 am

hello sir,
i am from Bhutan, student of computer science and want to about CCNA part…
Pls could you help me sir,

Hemanth 05.24.11 at 8:01 am

hello sir,
could you help in configure of VLANs.
pls help me

ajithvijay 06.02.11 at 9:43 pm

Thaks Mr.David Davis ,,,,,,,

This is very use full for us……

Iftekhar Danish,patna 06.06.11 at 6:03 am

Dear David
that video is so fantastic and appreciable.

Arvind 06.14.11 at 12:54 am

Hi i am from India the presentation is vry good and also like the way he was showing…..keep it going..

MAC 06.19.11 at 9:52 am

when i configure vlan in one switch its work great , but when i attached 2nd switch with 1st switch, the vlan database is not updating on 2nd switch , while i already make 1st switch as domain and running VTP, plz help

kalai 07.14.11 at 6:52 am

hello sir,
just i we have a cisco small management switch with 24 ports in our concern college at tamilnadu.our office is located @ bangalore.i had created 4 vlans for the systems placed there i want to know how to assign ip address for the vlans assigned.pls help me in this situation.thank you sir

ricky 07.16.11 at 12:02 pm

Super video …very helpful…

Thanks a ton

kwizera robert 08.22.11 at 9:26 am

hell sir,
thank you i have been helped alot by this

ryan 08.25.11 at 1:24 am

Hello Mr David, I’m Ryan from Indonesia, I’d like to ask you about cisco 7606 VLAN configuration….
I have a job to configure VLAN on a cisco 7606 router….in the example you give above….you use switch and cisco router….the question is…what if we only use a cisco 7606 router to configure VLAN ? can i use same commands as command you mentioned in the above example ? Sorry if my english is not good :)

shekar 09.08.11 at 10:30 pm

I am Shekar reddy from Bangalore,INDIA. I am planning to write a CCNA exam next month (November ,2011). I have come accross your CCNA material (VLAN configuration and More ) todya and found that very informative.

Could you please give me some pointers to prepare my CCNA exam? Thanks a lot for your help,

Shekar Reddy

Arif 09.13.11 at 4:24 am

Great job keep it up

Erivaldo Will 10.20.11 at 9:59 am

Thanks, wonderful demostration

Sandip gupta 10.22.11 at 6:34 am

I wish to thank for accepting to share your knowledge with us,am now a step ahead towards my preparations for CCNA exams any other link to more details will be highly appreciated

Bhuwan 01.24.12 at 4:40 am

This is perfect

Thanks David.

rakesh 01.25.12 at 3:56 am

hello i am rakesh parsuing ccna.
so sir tell me how to configure vlan in switch

J T 01.30.12 at 10:52 am

Good and very clear sound vedio

meghnath 02.07.12 at 12:22 pm

hi ,
can you tell me what is use vlan 1 in router and should i create different vlans in router and if yes then for what purpose .
please tell me.

omid 03.14.12 at 12:52 pm

I need to know how to change access point name?????

lerionka 05.02.12 at 6:29 am

very nice lessons on vlans

gogsi 07.22.12 at 5:08 pm

Well the tutorial did not work for me ! I did it step by step on Packet Tracer 4.1 software but when the configuration is done I can not ping the vlan 10 (it shows it is down). And when I bring it up vlan 20 goes down… Did I do something wrong ?

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Previous post:

Next post: