Creating VLAN


We are setting up Cisco IP Phones along with our data network and we wanted advice on how best to seperate thru VLANs. We havent had to setup VLANs in a while and wanted to confirm the Cisco IOS commands needed to setup a VLAN/truck port etc. Can someone help?

Secondly, we are looking to setup Cisco IP Phones and wanted to know if their are any differences in the Cisco IOS VLAN/port trucking commands becuase a certain VLAN would be used for voice traffic?

Vincent DAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.


create vlan
configure terminal
vlan 16
name VOIP

For trunk port:
Switchport trunk encapsulation dot1q
switchport mode trunk
switchport nonegotiate

for Switchport in Vlan
Switchport access vlan 8
switchport mode access
switchport nonegotiate
switchport voice vlan 16

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Istvan KalmarHead of IT Security Division Commented:
Don't forget you able to configure it if the switch in vtp transparent or vtp server mode!

vlan data
 vtp transparent
vlan data
 vtp server
The port of a cisco switch connected to a cisco IP phone is not a classic trunk port.
Configuration wise it's an access port with a voice vlan assigned.

interface FastEthernet1/0/10
 switchport mode access
 switchport protected
 switchport voice vlan 10
 switchport access vlan 5

On the cisco swithes you have a macro to configure automagically the port with the proper parameters

For the rest the Data and Voice vlan need to be created and will be managed as all the other vlans.

interface FastEthernet1/0/10
  macro apply cisco-phone

It will set for your the spanning tree config, + the autoqos policy

Syed_M_UsmanSystem AdministratorCommented:
Dear Below article may help you VLAN and Intervlan routing

i would suggest before you implement vlan please go through bleow links
Nayyar HH (CCIE RS)Network ArchitectCommented:

Native VLAN needs to be set also
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Switches / Hubs

From novice to tech pro — start learning today.