Cisco IP Phone Switch Ports
! - Phone & PC Ports interface range FastEthernet1/0/2 - 24 switchport mode access switchport access vlan [[Data VLAN]] switchport voice vlan [[Voice VLAN]] spanning-tree portfast ! - Trunk Ports interface GigabitEthernet1/0/2 description *** Connected to Sw2*** switchport trunk encapsulation dot1q switchport mode trunk

Data VLAN:
Voice VLAN:

Use this code to post the full script to your own page:

Use this code to post only the variables to your own page: