12-29-2008 10:02 PM - edited 03-04-2019 03:16 AM
hi every body!
The context is a switch port is connected to ip phone.
please consider the following configuration
switch(config-if)switchport trunk native vlan 2
swith(config-if) switchport voice vlan untagged
switch(config-if) switchport access vlan 3
Now would the ip phone use native vlan 2 or access vlan 3 for voice and pc data?
thanks a lot!
Solved! Go to Solution.
01-01-2009 09:31 PM
Hi Sarah,
Just thought you might like this one
http://cciepursuit.wordpress.com/2009/01/01/group-study-good-explanation-of-the-voice-vlan/
Lejoe
12-29-2008 10:19 PM
Hi Sarah,
That depends on whether the port is configured as an access port or trunk port. It's an access port (switchport mode access), all traffic will end up being in vlan 3. If it's a trunk, it will be in vlan 2.
HTH
Lejoe
12-29-2008 11:06 PM
Thanks for your reply!
My book says untagged option use 802.1q trunk
So if use the command with untagged option, the port is configured for tunk. Am i correct?
thanks a lot!
12-29-2008 11:18 PM
Hi Sarah,
I guess they are presuming the port is already configured as a trunk. When the untagged option is used the phone no longer tags voice traffic. So it would fall into the native vlan configured with (switchport trunk native vlan x)
HTH
Lejoe
12-30-2008 08:56 AM
Thanks for your reply Lejoe!
The command switchport voice{ vlan id/ untagged etc}
itself enable trunking on the port so there is no need to explicitly configure the trunk by switch port trunk encapsulation dot1q.
12-30-2008 12:42 PM
I want to add something.
In order for trunk to work, both ends should be configured( manually or by DTP) for trunk operation. Trunk would not form if one end is in access mode and the other end is configured for trunk. The end result would be access mode on both ends.
For a switch port to receives frames from multiple vlans,, the port must be in trunk mode.
So it is impossible for a switch port to be in access mode say vlan 2 and receives the frame with vlan 3( for example) because it suggests the link is trunk link. Trunk link is only possible if both ends agrees to be trunk.
Having said that let revisit the scenario below.
sw1------------ip phone
switch port voice vlan 3
switchport mode access vlan 4
It is impossible for sw1 to receives vlan 3 frames and vlan 4 frames if the port is in access mode.That stipulates both ports on switch and ip phone must be in trunk mode.
Thanks a lot!
12-30-2008 02:41 PM
Hi Sarah,
It is perfectly working configuration. The switchport need not be configured a trunk for an IP phone and PC connected to the ip phone to work.
sw1------------ip phone
switch port voice vlan 3
switchport access vlan 4
switchport mode access
The command switchport voice{ vlan id/ untagged etc}
itself enable trunking on the port so there is no need to explicitly configure the trunk by switch port trunk encapsulation dot1q.
No this command still does not define trunk mode on the switchport.
HTH
Lejoe
12-30-2008 03:31 PM
No this command still does not define trunk mode on the switchport.
This command is not defining trunk but it is defining a Multivlan access port to carry voice and data.
12-30-2008 05:27 PM
thanks for your reply!
According to cisco press book, switchport voice vlan with option untagged,dot1p,vlan id all use dot1q trunk by default. If dtp is enabled, trunk will negotiate.
01-01-2009 09:31 PM
Hi Sarah,
Just thought you might like this one
http://cciepursuit.wordpress.com/2009/01/01/group-study-good-explanation-of-the-voice-vlan/
Lejoe
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide