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 SearchNetworking.com. 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 HERE TO LEARN ABOUT OUR CISCO CCNA VIDEO TRAINING!
Click Play to begin the video or Click Here to see the video in its full-size

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

David Davis (CCIE #9369, VCP, CISSP, MCSE) has been in the IT industry for 15+ years. He has authored over 300 articles, 6 video training courses, and co-authored one book. Learn about David's certifications, video courses, and where you can find his content on our 
{ 97 comments… read them below or add one }
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,
-Suhas.
hello,
great work,buddy the information on VLANS was really very helpful to me.thanx .kep it up.god bless u.
regard’s
cyril
the guide about the vlan is prefect,
Thanks alot David Davis 
all the best in your future acticles
Hello sir,
I am Modou from The Gambia the VLAND configuration was relly helpful to me . thanks keep it up
i have create vlan my diffrent vlan ping to each other but
my default gateway is not ping default gateway is use for internet
purchase
devices
Router
Cisco ASA CSC SSM firewall
Cisco 3750 Switch
i have configar all in layer 3 switch (3750-24ts)
my vlan1 -192.168.2.241
vlan2-192.168.1.100
vlan 3-192.168.3.100
default gateway is 192.168.2.100
Thanks so much I have really gained an incredible idea on VLAN config after this wonderful demonstration
Hi
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
james
from kenya
really thank you very much to gain knowledge in vlan.it really help a lot.
yes very good comments
could u sent me router configuration video file send me my mail id
Thanks ya
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.
Hello sir,
i am preparing to write a ccna exam ,i need some ideas.the vlan configuration very nice
Hello
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?
It is very nice i would like this video site and i understand how to configure VLAN
awesome demo! Thanks for clarifying vlans!!
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)
Content help me a lot thnax
Dear Sir Thank you very much for your Great Video. I Salute You
Please don’t stop
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
Sugeetha
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,
Shahbaz.
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
Thanks
Steve
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
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.
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.
HI, YOU R ACTUALLY VERY GOOG IN EXPLAINIG HOW TO CONFIGURE VLANDS BUT PLEASE COULD U ADD ANOTHER 15 MINUTES OF CONFIG.
THANGS
Your video was of great help in getting an understanding of VLANS even though we are not a Cisco house. Thankyou
NT360
Hei,
Nice work Pal, It works even for Beginners.
Regards
Jayesh
Hi Sir,
today i watched your movie. Great job, helped me a lot to understand vlan.
Thank you sir,
best regards
Hi David,
Brillaint work…u taught me VLANS in15:06 mins….great job..
God bless you..
-Bosco.
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 .
Hi David,
This is quite good video representation for understanding of Vlan and trunk configuration.
Many many thanks,
S.Sugumar
yes it really works
thank you very much
i can’t found comm Encapsulation dot1q 10
on router 1603r
! !! ! ! ! !
supperb it helps alot for begginers also.
sir
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
thanks for it sir
it is supperb
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
Thanks
thanks alot for such a good works
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
your vlans video is best for learning thanks.
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.
hi sir
i like to ask if pc 1 from vlan 10 have a ip address 142.3.1.1 while pc 2 have from vlan 20 have a ip address of 142.41.1.21 ,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 255.255.255.240 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
Professional and worthy piece of video clip on Vlan. Really usuful and Not have seen anywhere so far.
Thank You Sir!
Dear Sir
Thank you very much for your VLAN vedio. Great work.
Best regards
Wije
thank you sir
Thanks for the demo, especially on the sub-interfaces portion….very helpful, looking forward to more from you!
good sir
thanks for your VLAN explanation ,,,,, but i’d like to know how to configure my VLAN to comunicate each other
thanks
Thanks for this site so good
thnx david davis it was a very helpfull to me keep it up
regards,
vikram.
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)………
Sir,
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.
Boss,
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
Delhi-110092
India.
sir,
Thank you very very much. You saved my day.
Nice work, Its so interesting to listen and for freshers it will be very helpful
Very nice tutorial
i normally learn in the hard way, but your video made my day! it makes it too easy mi amigo.
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.
thanks very mutch
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?
Regards
Noo
thank you very much and may the god bless you and your family….
hi i wish information to VLAN if send in formation to me than you
thanks sir it was very simple to understand.
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.
Thanks,,,,,,,,,,,,,,,,,
David Davis thank you very much for this video,,,,tha is perfect abt the Vlan…
Thanks alot……..
Best Regard
Nadeem Mallick
Network Engineer
SaudiArabiya
Hello,sir thank you…..It is very nice i would like this video site and i understand how to configure VLAN….
Great video about VLan
Thanks for your help
Hi,
Thanks a lot. I finally understood the VLANS. It was quick and sweet.
Regards,
Abhishek Srivastava
Linux L2, IBM India
nice video tutorial and want a free copy of the video
Hi, Thanks for sharing this knowledge.
i m finding configuring router and switches
i needed complete video / how can we create 9 vlan and what is static routing
Thank David for your helpful vlan share. This is what I have been looking for.
Blessings.
Best,
Neil
thanks a lot for brief vlan tutorial..thanksa lot..
thank for the video i’m tried for learn about vlan and cisco
hi! sir,
thank a lot for guide us through ur excellent video presentation .
hope you’ll carry on.
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.
hello sir,
i am from Bhutan, student of computer science and want to about CCNA part…
Pls could you help me sir,
hello sir,
could you help in configure of VLANs.
pls help me
Thaks Mr.David Davis ,,,,,,,
This is very use full for us……
Dear David
that video is so fantastic and appreciable.
Hi i am from India the presentation is vry good and also like the way he was showing…..keep it going..
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
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
Super video …very helpful…
Thanks a ton
hell sir,
thank you i have been helped alot by this
robert
kampala
uganda
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
thankyou…
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
Great job keep it up
Thanks, wonderful demostration
Hi
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
Hi,
This is perfect
Thanks David.
hello i am rakesh parsuing ccna.
so sir tell me how to configure vlan in switch
Good and very clear sound vedio
thanks
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.
I need to know how to change access point name?????
very nice lessons on vlans