Cisco – Switch Interface Config for IP Phones

cisco-catalystvoice

I have seen both of the following methods of switch interface configuration for supporting IP Phones.

 switchport access vlan <data-vlan>
 switchport voice vlan <voice-vlan>
 switchport mode access

and

 switchport trunk native vlan <data-vlan>
 switchport trunk allowed vlan <data-vlan>,<voice-vlan>
 switchport mode trunk

Can anyone provide a good pro or con of standardizing on either method or does it just come down to a matter of personal preference which one you should choose to implement?

Best Answer

The first method also works for Avaya phones - only they must have the proper DHCP option strings on the data vlan to know which voice vlan it should try and tag its traffic to afterwards.

I usually add #sw host (which adds spanning-tree portfast and sw mode access automatically when configuring ports)

Portfast allows the port to go directly into forwarding state when the interface is up - otherwise you're going to be waiting 45 seconds per port!