Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PC connected directly to a voice port

Status
Not open for further replies.

nabs79

Technical User
Nov 16, 2006
44
FR
Hi

If i connect a PC directly to a port configured for an ipphone and a pc would it be affected to the data vlan or the native vlan 1

int fa0/2
switchport mode vlan 11
switch mode access
switchmode voice vlan 22

thanks
 
Hi this is what we use for switch configuration:

interface FastEthernet X/X
switchport mode access
switchport access vlan Y
switchport voice vlan X
auto qos voip cisco-phone
spanning-tree portfast
spannings-tree bpdugard enable

When a IP Phone is connected on the port a trunk is created placcing the IP Phone in the Voice VLAN and the PC in the data VLAN (Native VLAN). When you connect a PC to the switchport he will end in the data VLAN (Native VLAN).

If I'm not mistraking Cisco uses CDP to detect that it is an IP Phone and to setup a trunk between the switchport and the IP Phone.
 
You should specify that the native vlan is the vlan data or not? because i think that the VLAN 1 is the native VLAN by default
 
If you the port was a trunk then the Native VLAN would by default be VLAN 1. However you are configuring the port as an Access Port (switch mode access) so the commands - 'switchport access vlan 11' and 'switchport voice vlan 12' are applied. If you hard-coded the port as a trunk 'switchport mode trunk' then the Access VLAN or Native VLAN (whichever but it is the Un-Tagged VLAN) would by default be VLAN 1.
For consistency you can apply the following on Voice/Data Access ports:

interface FastEthernet0/1
switchport access vlan 11
switchport trunk native vlan 11
switchport mode access
switchport voice vlan 12

However since the port is configured as an access port the command 'switchport trunk native vlan 12' is ignored.

HTH

Andy

p.s. There is usually LOTS more configuration applied per port such as QoS (switch dependant), port-security, DHCP snooping etc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top