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

{ 48 comments… read them below or add one }

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: